[ https://issues.apache.org/jira/browse/HIVE-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192710#comment-13192710 ]
Phabricator commented on HIVE-2712: ----------------------------------- ashutoshc has requested changes to the revision "HIVE-2712 [jira] Make ZooKeeper token store ACL configurable". I dont see any test cases. Any way to easily write unit tests for it? INLINE COMMENTS shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DelegationTokenStore.java:35 Since its extending RuntimeException and not java.lang.Error I think it should be named TokenStoreException. shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java:198-221 Since all of these properties can be configured via hive-site.xml shall we document them in hive-default.xml.template too and also their default values? shims/src/common-secure/java/org/apache/hadoop/hive/thrift/ZooKeeperTokenStore.java:130 Shall we open a jira on ZK for them to refactor that code in ZK to make it available as public util method to avoid code duplication here? shims/src/common-secure/java/org/apache/hadoop/hive/thrift/ZooKeeperTokenStore.java:154-155 Use LOG.error instead of System.err.println shims/src/common-secure/java/org/apache/hadoop/hive/thrift/ZooKeeperTokenStore.java:215 If conf is null, you should throw IllegalStateException, no point in continuing without a valid ZK connect string. You are doing those checks later on as well in init() those can be removed then as well. shims/src/test/org/apache/hadoop/hive/thrift/TestHadoop20SAuthBridge.java:86 Why is this required? To have an ability to test with external ZK? REVISION DETAIL https://reviews.facebook.net/D1401 > Make ZooKeeper token store ACL configurable > ------------------------------------------- > > Key: HIVE-2712 > URL: https://issues.apache.org/jira/browse/HIVE-2712 > Project: Hive > Issue Type: Improvement > Components: Metastore, Security, Server Infrastructure > Affects Versions: 0.8.0, 0.8.1, 0.9.0 > Reporter: Thomas Weise > Assignee: Thomas Weise > Fix For: 0.9.0 > > Attachments: HIVE-2712.D1401.1.patch > > > ACL needs to be set to secure the token store with ZK 3.4. > The patch will also include the review changes from HIVE-2467 that were not > committed. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira