-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Hive Meta Store impersonation access #14464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,6 +131,8 @@ Property Name Description | |
| to the Hive metastore service. | ||
|
|
||
| ``hive.metastore.client.keytab`` Hive metastore client keytab location. | ||
| ``hive.metastore.impersonation.enabled`` Enable metastore end-user impersonation. | ||
| ``hive.metastore.impersonation.user`` Default impersonation user when communicating with Hive Metastore | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In what cases we fallback to the default user? It feels like if impersonation is enabled we should never contact the metastore with "default".
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MetastoreHiveStatisticsProvider#getPartitionsStatistics, it gets the paritition stats. |
||
| ================================================== ============================================================ | ||
|
|
||
| ``hive.metastore.authentication.type`` | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,11 @@ set -euo pipefail -x | |
| cleanup_docker_containers | ||
| start_docker_containers | ||
|
|
||
| # restart HMS to pickup memory settings | ||
| exec_in_hadoop_master_container cp /etc/hadoop/conf/hive-env.sh /etc/hive/conf/hive-env.sh | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes should go directly to the docker containers. Here is the repository: https://github.com/prestodb/docker-images |
||
| exec_in_hadoop_master_container supervisorctl restart hive-metastore | ||
| retry check_hadoop | ||
|
|
||
| # generate test data | ||
| exec_in_hadoop_master_container su hive -s /usr/bin/hive -f /files/sql/create-test.sql | ||
| exec_in_hadoop_master_container su hive -s /usr/bin/hive -f /files/sql/create-test-hive13.sql | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export HADOOP_OPTS="$HADOOP_OPTS -Xmx1024m" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use
ApacheCommonsin Presto. Please use Guava instead.