Teradata / docker-images

Docker images used internally by various Teradata projects for automation, testing, etc
Apache License 2.0
40 stars 22 forks source link

Facilitate execution of Hive authorization commands in impersonation profile #8

Closed amrutagokhale closed 7 years ago

amrutagokhale commented 7 years ago

In order to be able run Hive authorization commands (in product tests or otherwise), we need to enable SQL standards based Hive authorization. As per the document here https://cwiki.apache.org/confluence/display/Hive/SQL+Standard+Based+Hive+Authorization#SQLStandardBasedHiveAuthorization-ForHive0.14andNewer, this requires making configuration changes to two files: hive-site.xml and hive-server2.conf.

We want to restrict making these changes only to one profile, singlenode-kerberos-hdfs-impersonation, which is the same profile under which product tests under AUTHORIZATION group run. This will ensure that only the profile specific tests will run with Hive authorization turned ON; all other tests will not be affected.

I will later add a commit to bump the version.

I have manually verified that with the locally built image with these changes, I can run Hive authorization commands from inside Presto product test.

cawallin commented 7 years ago

Please make line breaks in the commit message at ~75 characters.

cawallin commented 7 years ago

Also, the title should be 50 or fewer characters

cawallin commented 7 years ago

Oh sorry, you had two commits so the top explanation there isn't the commit message. you're fine.

sanjay990 commented 7 years ago

LGTM

amrutagokhale commented 7 years ago

@ArturGajowy I added the config file. Thanks for the suggestion. Will squash the fixup commit later.