SlideShare a Scribd company logo
© Hortonworks Inc. 2011
Hive Authorization Models
Thejas Nair
thejas@hortonworks.com
@thejasn
Page 1
© Hortonworks Inc. 2011
Authentication vs Authorization
• Authentication
–Verifying your identity
–Enabled in Hadoop using Kerberos
• Authorization
–Verifying if you have permissions to perform this action
Page 2
Architecting the Future of Big Data
Pic1 – http://www.flickr.com/photos/matsuyuki/2906448025/
Pic2 -
http://www.flickr.com/photos/86818962@N00/3209747460http://www.flickr.com/photos
/matsuyuki/2906448025/
© Hortonworks Inc. 2011
Hive architecture
Page 3
Architecting the Future of Big Data
Hive
client
Metastore
server RDBMS
HDFS
Map Reduce
What are we trying to protect here ?
Data
Metadata
© Hortonworks Inc. 2011
Actions controlled by authorization
Page 4
Architecting the Future of Big Data
• Metadata operations
- Access/changes to RDBMS storing the metadata
• Storage operations
- create, write, read operations
- Storage (HDFS) comes with its own authorization, the challenge
is protecting the metadata.
© Hortonworks Inc. 2011
Existing models of authorization
Page 5
Architecting the Future of Big Data
1. Traditional RDBMS style authorization
–Use Case: Hive is like an RDMBS, managing its own data
2. Storage based authorization
–Use Case: Hadoop is providing shared storage, Hive is one of
the tools to use this
–HCatalog world view
3. No Authorization
–Makes sense in prototype or single user case
–Metadata is not protected
© Hortonworks Inc. 2011
Traditional RDBMS style authorization
Page 6
Architecting the Future of Big Data
• Use grant, revoke statements to manage permissions
• Store permissions in Metastore RDBMS
• But HDFS authorization is separate
–Two sources of truth!
–HDFS permissions can still grant access
• Problems sharing the stored data with other tools
© Hortonworks Inc. 2011
Traditional RDBMS style authorization
Page 7
Architecting the Future of Big Data
• Hive is only tool - use case
–Disable all other tools, set 777 permissions to HDFS files?
–Easy to bypass Hive authorization
–Hive allows arbitrary code in UDFs, or Hive streaming code
–You still need to manage HDFS file permissions
• Permission model is incomplete
–HIVE-3720 has a new proposal
• Does not protect against malicious users
© Hortonworks Inc. 2011
Storage based authorization model
Page 8
Architecting the Future of Big Data
• Use HDFS/storage permissions as only source of truth
–Works well if you have other systems accessing the data
• eg. Table directory permissions determine table
permissions
–To alter table metadata you need write permissions on table
directory
• Problem: Hive concepts such as columns and views
don't map to files.
–Coarse vs fine grained authorization
© Hortonworks Inc. 2011
Potential solution
Page 9
Architecting the Future of Big Data
• Combine the two models?
–Add HDFS permission verification/management to a traditional
RDMBS style authorization
–Use grant/revoke on file system user and groups
–Tables populated by external tools can be marked as ‘external’
– Hive does not manage index, statistics
–(personal opinion – need to make detailed proposal)
© Hortonworks Inc. 2011
Hive secure setup - Metastore
Page 10
Architecting the Future of Big Data
• Don’t trust end clients
• Standalone metastore server to protect access to
metastore RDBMS
–Set hive.metastore.uris in client
• Have metastore do actions as user
–hive.metastore.execute.setugi=true in client and server
–Creates files as the user
• Enable verification on metastore (hive 0.10) (HIVE-3705)
hive.metastore.pre.event.listeners=org.apache.hadoop.hive.ql.security.authorizatio
n
hive.security.metastore.authenticator.manager=org.apache.hadoop.hive.ql.security.
HiveMetastoreAuthenticationProvider
hive.security.metastore.authorization.manager=org.apache.hadoop.hive.ql.security.
authorization.HiveMetastoreAuthorizationProvider
© Hortonworks Inc. 2011
Hive secure setup – auth setup
Page 11
Architecting the Future of Big Data
• Turn on authorization!
• hive.security.authorization.enabled=true
© Hortonworks Inc. 2011
Setting RDBMS style authorization
Page 12
Architecting the Future of Big Data
• This is the default model
• Set hive.security.authorization.createtable.owner.grants=ALL
© Hortonworks Inc. 2011
Setting storage based authorization
Page 13
Architecting the Future of Big Data
• Use custom authorization manager
StorageBasedAuthorizationProvider
hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorizati
on.StorageBasedAuthorizationProvider
• Available in hive since 0.10
• Available in hcatalog earlier
–export HIVE_AUX_JARS_PATH=<hcatalog jar location>
–hive.security.authorization.manager=
org.apache.hcatalog.security.HdfsAuthorizationProvider
© Hortonworks Inc. 2011
Other possibilities
Page 14
Architecting the Future of Big Data
• AccessServer proposal based on HiveServer2
–Clients use JDBC to talk to server that can serve queries from
Hive, Pig or other tools
–Server restricts what can be run
–Use improved version of traditional RDBMS style auth
–Would require UDFs, serdes to be blessed by a Hive DBA
–Disallow arbitrary streaming commands?
© Hortonworks Inc. 2011
Further reading
Page 15
Architecting the Future of Big Data
• https://cwiki.apache.org/confluence/display/Hive/LanguageManual+
Authorization
• https://cwiki.apache.org/confluence/display/HCATALOG/Storage+Ba
sed+Authorization
• https://cwiki.apache.org/confluence/display/Hive/AccessServer+Desi
gn+Proposal
• HIVE-3705 - Adding authorization capability to the metastore
• HIVE-3720 - Expand and standardize authorization in Hive

More Related Content

What's hot

What's hot (20)

Hadoop Security in Big-Data-as-a-Service Deployments - Presented at Hadoop Su...
Hadoop Security in Big-Data-as-a-Service Deployments - Presented at Hadoop Su...Hadoop Security in Big-Data-as-a-Service Deployments - Presented at Hadoop Su...
Hadoop Security in Big-Data-as-a-Service Deployments - Presented at Hadoop Su...
 
Apache Falcon - Data Management Platform For Hadoop
Apache Falcon - Data Management Platform For HadoopApache Falcon - Data Management Platform For Hadoop
Apache Falcon - Data Management Platform For Hadoop
 
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
Apache Ignite vs Alluxio: Memory Speed Big Data AnalyticsApache Ignite vs Alluxio: Memory Speed Big Data Analytics
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
 
S3Guard: What's in your consistency model?
S3Guard: What's in your consistency model?S3Guard: What's in your consistency model?
S3Guard: What's in your consistency model?
 
Hybrid Data Platform
Hybrid Data Platform Hybrid Data Platform
Hybrid Data Platform
 
Built-In Security for the Cloud
Built-In Security for the CloudBuilt-In Security for the Cloud
Built-In Security for the Cloud
 
An Approach for Multi-Tenancy Through Apache Knox
An Approach for Multi-Tenancy Through Apache KnoxAn Approach for Multi-Tenancy Through Apache Knox
An Approach for Multi-Tenancy Through Apache Knox
 
How to manage Hortonworks HDB Resources with YARN
How to manage Hortonworks HDB Resources with YARNHow to manage Hortonworks HDB Resources with YARN
How to manage Hortonworks HDB Resources with YARN
 
Breathing new life into Apache Oozie with Apache Ambari Workflow Manager
Breathing new life into Apache Oozie with Apache Ambari Workflow ManagerBreathing new life into Apache Oozie with Apache Ambari Workflow Manager
Breathing new life into Apache Oozie with Apache Ambari Workflow Manager
 
Ingesting Data at Blazing Speed Using Apache Orc
Ingesting Data at Blazing Speed Using Apache OrcIngesting Data at Blazing Speed Using Apache Orc
Ingesting Data at Blazing Speed Using Apache Orc
 
Introduction to Apache Accumulo
Introduction to Apache AccumuloIntroduction to Apache Accumulo
Introduction to Apache Accumulo
 
Accelerate Your Big Data Analytics Efforts with SAS and Hadoop
Accelerate Your Big Data Analytics Efforts with SAS and HadoopAccelerate Your Big Data Analytics Efforts with SAS and Hadoop
Accelerate Your Big Data Analytics Efforts with SAS and Hadoop
 
Hadoop & Security - Past, Present, Future
Hadoop & Security - Past, Present, FutureHadoop & Security - Past, Present, Future
Hadoop & Security - Past, Present, Future
 
Hadoop Security and Compliance - StampedeCon 2016
Hadoop Security and Compliance - StampedeCon 2016Hadoop Security and Compliance - StampedeCon 2016
Hadoop Security and Compliance - StampedeCon 2016
 
Is your Enterprise Data lake Metadata Driven AND Secure?
Is your Enterprise Data lake Metadata Driven AND Secure?Is your Enterprise Data lake Metadata Driven AND Secure?
Is your Enterprise Data lake Metadata Driven AND Secure?
 
Treat your enterprise data lake indigestion: Enterprise ready security and go...
Treat your enterprise data lake indigestion: Enterprise ready security and go...Treat your enterprise data lake indigestion: Enterprise ready security and go...
Treat your enterprise data lake indigestion: Enterprise ready security and go...
 
Hadoop in the Cloud - The what, why and how from the experts
Hadoop in the Cloud - The what, why and how from the expertsHadoop in the Cloud - The what, why and how from the experts
Hadoop in the Cloud - The what, why and how from the experts
 
Hive - 1455: Cloud Storage
Hive - 1455: Cloud StorageHive - 1455: Cloud Storage
Hive - 1455: Cloud Storage
 
Manage Add-On Services with Apache Ambari
Manage Add-On Services with Apache AmbariManage Add-On Services with Apache Ambari
Manage Add-On Services with Apache Ambari
 
Dynamic DDL: Adding structure to streaming IoT data on the fly
Dynamic DDL: Adding structure to streaming IoT data on the flyDynamic DDL: Adding structure to streaming IoT data on the fly
Dynamic DDL: Adding structure to streaming IoT data on the fly
 

Similar to Apache Hive authorization models

Improvements in Hadoop Security
Improvements in Hadoop SecurityImprovements in Hadoop Security
Improvements in Hadoop Security
DataWorks Summit
 
Hive contributors meetup apache sentry
Hive contributors meetup   apache sentryHive contributors meetup   apache sentry
Hive contributors meetup apache sentry
Brock Noland
 
Hadoop Operations – Past, Present, and Future
Hadoop Operations – Past, Present, and FutureHadoop Operations – Past, Present, and Future
Hadoop Operations – Past, Present, and Future
DataWorks Summit
 
Hadoop Operations - Past, Present, and Future
Hadoop Operations - Past, Present, and FutureHadoop Operations - Past, Present, and Future
Hadoop Operations - Past, Present, and Future
DataWorks Summit
 

Similar to Apache Hive authorization models (20)

Improvements in Hadoop Security
Improvements in Hadoop SecurityImprovements in Hadoop Security
Improvements in Hadoop Security
 
Comprehensive Security for the Enterprise II: Guarding the Perimeter and Cont...
Comprehensive Security for the Enterprise II: Guarding the Perimeter and Cont...Comprehensive Security for the Enterprise II: Guarding the Perimeter and Cont...
Comprehensive Security for the Enterprise II: Guarding the Perimeter and Cont...
 
Hadoop and Data Access Security
Hadoop and Data Access SecurityHadoop and Data Access Security
Hadoop and Data Access Security
 
2014 sept 4_hadoop_security
2014 sept 4_hadoop_security2014 sept 4_hadoop_security
2014 sept 4_hadoop_security
 
Vmware Serengeti - Based on Infochimps Ironfan
Vmware Serengeti - Based on Infochimps IronfanVmware Serengeti - Based on Infochimps Ironfan
Vmware Serengeti - Based on Infochimps Ironfan
 
Hadoop security @ Philly Hadoop Meetup May 2015
Hadoop security @ Philly Hadoop Meetup May 2015Hadoop security @ Philly Hadoop Meetup May 2015
Hadoop security @ Philly Hadoop Meetup May 2015
 
Improvements in Hadoop Security
Improvements in Hadoop SecurityImprovements in Hadoop Security
Improvements in Hadoop Security
 
Webinar: Productionizing Hadoop: Lessons Learned - 20101208
Webinar: Productionizing Hadoop: Lessons Learned - 20101208Webinar: Productionizing Hadoop: Lessons Learned - 20101208
Webinar: Productionizing Hadoop: Lessons Learned - 20101208
 
Discover Enterprise Security Features in Hortonworks Data Platform 2.1: Apach...
Discover Enterprise Security Features in Hortonworks Data Platform 2.1: Apach...Discover Enterprise Security Features in Hortonworks Data Platform 2.1: Apach...
Discover Enterprise Security Features in Hortonworks Data Platform 2.1: Apach...
 
Hdp security overview
Hdp security overview Hdp security overview
Hdp security overview
 
Simplify and Secure your Hadoop Environment with Hortonworks and Centrify
Simplify and Secure your Hadoop Environment with Hortonworks and CentrifySimplify and Secure your Hadoop Environment with Hortonworks and Centrify
Simplify and Secure your Hadoop Environment with Hortonworks and Centrify
 
Apache Argus - How do I secure my entire Hadoop cluster? Olivier Renault @ Ho...
Apache Argus - How do I secure my entire Hadoop cluster? Olivier Renault @ Ho...Apache Argus - How do I secure my entire Hadoop cluster? Olivier Renault @ Ho...
Apache Argus - How do I secure my entire Hadoop cluster? Olivier Renault @ Ho...
 
VMworld 2013: Beyond Mission Critical: Virtualizing Big-Data, Hadoop, HPC, Cl...
VMworld 2013: Beyond Mission Critical: Virtualizing Big-Data, Hadoop, HPC, Cl...VMworld 2013: Beyond Mission Critical: Virtualizing Big-Data, Hadoop, HPC, Cl...
VMworld 2013: Beyond Mission Critical: Virtualizing Big-Data, Hadoop, HPC, Cl...
 
Big data - Online Training
Big data - Online TrainingBig data - Online Training
Big data - Online Training
 
TriHUG October: Apache Ranger
TriHUG October: Apache RangerTriHUG October: Apache Ranger
TriHUG October: Apache Ranger
 
Hive contributors meetup apache sentry
Hive contributors meetup   apache sentryHive contributors meetup   apache sentry
Hive contributors meetup apache sentry
 
Hadoop Operations – Past, Present, and Future
Hadoop Operations – Past, Present, and FutureHadoop Operations – Past, Present, and Future
Hadoop Operations – Past, Present, and Future
 
Project Rhino: Enhancing Data Protection for Hadoop
Project Rhino: Enhancing Data Protection for HadoopProject Rhino: Enhancing Data Protection for Hadoop
Project Rhino: Enhancing Data Protection for Hadoop
 
Hadoop Operations - Past, Present, and Future
Hadoop Operations - Past, Present, and FutureHadoop Operations - Past, Present, and Future
Hadoop Operations - Past, Present, and Future
 
Securing Hadoop with Apache Ranger
Securing Hadoop with Apache RangerSecuring Hadoop with Apache Ranger
Securing Hadoop with Apache Ranger
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 

Apache Hive authorization models

  • 1. © Hortonworks Inc. 2011 Hive Authorization Models Thejas Nair thejas@hortonworks.com @thejasn Page 1
  • 2. © Hortonworks Inc. 2011 Authentication vs Authorization • Authentication –Verifying your identity –Enabled in Hadoop using Kerberos • Authorization –Verifying if you have permissions to perform this action Page 2 Architecting the Future of Big Data Pic1 – http://www.flickr.com/photos/matsuyuki/2906448025/ Pic2 - http://www.flickr.com/photos/86818962@N00/3209747460http://www.flickr.com/photos /matsuyuki/2906448025/
  • 3. © Hortonworks Inc. 2011 Hive architecture Page 3 Architecting the Future of Big Data Hive client Metastore server RDBMS HDFS Map Reduce What are we trying to protect here ? Data Metadata
  • 4. © Hortonworks Inc. 2011 Actions controlled by authorization Page 4 Architecting the Future of Big Data • Metadata operations - Access/changes to RDBMS storing the metadata • Storage operations - create, write, read operations - Storage (HDFS) comes with its own authorization, the challenge is protecting the metadata.
  • 5. © Hortonworks Inc. 2011 Existing models of authorization Page 5 Architecting the Future of Big Data 1. Traditional RDBMS style authorization –Use Case: Hive is like an RDMBS, managing its own data 2. Storage based authorization –Use Case: Hadoop is providing shared storage, Hive is one of the tools to use this –HCatalog world view 3. No Authorization –Makes sense in prototype or single user case –Metadata is not protected
  • 6. © Hortonworks Inc. 2011 Traditional RDBMS style authorization Page 6 Architecting the Future of Big Data • Use grant, revoke statements to manage permissions • Store permissions in Metastore RDBMS • But HDFS authorization is separate –Two sources of truth! –HDFS permissions can still grant access • Problems sharing the stored data with other tools
  • 7. © Hortonworks Inc. 2011 Traditional RDBMS style authorization Page 7 Architecting the Future of Big Data • Hive is only tool - use case –Disable all other tools, set 777 permissions to HDFS files? –Easy to bypass Hive authorization –Hive allows arbitrary code in UDFs, or Hive streaming code –You still need to manage HDFS file permissions • Permission model is incomplete –HIVE-3720 has a new proposal • Does not protect against malicious users
  • 8. © Hortonworks Inc. 2011 Storage based authorization model Page 8 Architecting the Future of Big Data • Use HDFS/storage permissions as only source of truth –Works well if you have other systems accessing the data • eg. Table directory permissions determine table permissions –To alter table metadata you need write permissions on table directory • Problem: Hive concepts such as columns and views don't map to files. –Coarse vs fine grained authorization
  • 9. © Hortonworks Inc. 2011 Potential solution Page 9 Architecting the Future of Big Data • Combine the two models? –Add HDFS permission verification/management to a traditional RDMBS style authorization –Use grant/revoke on file system user and groups –Tables populated by external tools can be marked as ‘external’ – Hive does not manage index, statistics –(personal opinion – need to make detailed proposal)
  • 10. © Hortonworks Inc. 2011 Hive secure setup - Metastore Page 10 Architecting the Future of Big Data • Don’t trust end clients • Standalone metastore server to protect access to metastore RDBMS –Set hive.metastore.uris in client • Have metastore do actions as user –hive.metastore.execute.setugi=true in client and server –Creates files as the user • Enable verification on metastore (hive 0.10) (HIVE-3705) hive.metastore.pre.event.listeners=org.apache.hadoop.hive.ql.security.authorizatio n hive.security.metastore.authenticator.manager=org.apache.hadoop.hive.ql.security. HiveMetastoreAuthenticationProvider hive.security.metastore.authorization.manager=org.apache.hadoop.hive.ql.security. authorization.HiveMetastoreAuthorizationProvider
  • 11. © Hortonworks Inc. 2011 Hive secure setup – auth setup Page 11 Architecting the Future of Big Data • Turn on authorization! • hive.security.authorization.enabled=true
  • 12. © Hortonworks Inc. 2011 Setting RDBMS style authorization Page 12 Architecting the Future of Big Data • This is the default model • Set hive.security.authorization.createtable.owner.grants=ALL
  • 13. © Hortonworks Inc. 2011 Setting storage based authorization Page 13 Architecting the Future of Big Data • Use custom authorization manager StorageBasedAuthorizationProvider hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorizati on.StorageBasedAuthorizationProvider • Available in hive since 0.10 • Available in hcatalog earlier –export HIVE_AUX_JARS_PATH=<hcatalog jar location> –hive.security.authorization.manager= org.apache.hcatalog.security.HdfsAuthorizationProvider
  • 14. © Hortonworks Inc. 2011 Other possibilities Page 14 Architecting the Future of Big Data • AccessServer proposal based on HiveServer2 –Clients use JDBC to talk to server that can serve queries from Hive, Pig or other tools –Server restricts what can be run –Use improved version of traditional RDBMS style auth –Would require UDFs, serdes to be blessed by a Hive DBA –Disallow arbitrary streaming commands?
  • 15. © Hortonworks Inc. 2011 Further reading Page 15 Architecting the Future of Big Data • https://cwiki.apache.org/confluence/display/Hive/LanguageManual+ Authorization • https://cwiki.apache.org/confluence/display/HCATALOG/Storage+Ba sed+Authorization • https://cwiki.apache.org/confluence/display/Hive/AccessServer+Desi gn+Proposal • HIVE-3705 - Adding authorization capability to the metastore • HIVE-3720 - Expand and standardize authorization in Hive

Editor's Notes

  1. Two sources of truth - You grant permissions, but file system permissions are not set.You remove permissions, but user can still access files.