[jira] [Commented] (HIVE-9622) Getting NPE when trying to restart HS2 when metastore is configured to use org.apache.hadoop.hive.thrift.DBTokenStore
[ https://issues.apache.org/jira/browse/HIVE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317415#comment-14317415 ] Hive QA commented on HIVE-9622: --- {color:green}Overall{color}: +1 all checks pass Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12698186/HIVE-9622.2.patch {color:green}SUCCESS:{color} +1 7543 tests passed Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2765/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2765/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2765/ Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12698186 - PreCommit-HIVE-TRUNK-Build > Getting NPE when trying to restart HS2 when metastore is configured to use > org.apache.hadoop.hive.thrift.DBTokenStore > - > > Key: HIVE-9622 > URL: https://issues.apache.org/jira/browse/HIVE-9622 > Project: Hive > Issue Type: Bug >Reporter: Aihua Xu >Assignee: Aihua Xu > Labels: HiveServer2, Security > Fix For: 1.2.0 > > Attachments: HIVE-9622.1.patch, HIVE-9622.2.patch > > > # Configure the cluster to use kerberos for HS2 and Metastore. > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-3-0/CDH4-Security-Guide/cdh4sg_topic_9_1.html > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-6-0/CDH4-Security-Guide/cdh4sg_topic_9_2.html > # Set hive metastore delegation token to > org.apache.hadoop.hive.thrift.DBTokenStore in hive-site.xml > {code} > > hive.cluster.delegation.token.store.class > org.apache.hadoop.hive.thrift.DBTokenStore > > {code} > # Then trying to restart hive service, HS2 fails to start the NPE below: > {code} > 9:43:10.711 AMERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > Error: > org.apache.thrift.transport.TTransportException: Failed to start token manager > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:107) > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:51) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Failed to initialize master key > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:223) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.startDelegationTokenSecretManager(HadoopThriftAuthBridge20S.java:438) > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:105) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:221) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.thrift.DBTokenStore.invokeOnRawStore(DBTokenStore.java:145) > at > org.apache.hadoop.hive.thrift.DBTokenStore.addMasterKey(DBTokenStore.java:41) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.logUpdateMasterKey(TokenStoreDelegationTokenSecretManager.java:203) > at > org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:339) > ... 9 more > 9:43:10.719 AMINFOorg.apache.hive.service.server.HiveServer2 > SHUTDOWN_MSG: > / > SHUTDOWN_MSG: Shutting down HiveServer2 at > a1909.halxg.cloudera.com/10.20.202.109 > / > {code} > The problem appears that we didn't pass a {{RawStore}} object in the > following: > https://github.com/apache/hive/blob/trunk/service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java#L111 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9622) Getting NPE when trying to restart HS2 when metastore is configured to use org.apache.hadoop.hive.thrift.DBTokenStore
[ https://issues.apache.org/jira/browse/HIVE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317113#comment-14317113 ] Aihua Xu commented on HIVE-9622: The first 4 tests passed locally while they gave the error "The forked VM terminated without saying properly goodbye. VM crash or System.exit called" in here. I haven't found out why but seems unrelated. > Getting NPE when trying to restart HS2 when metastore is configured to use > org.apache.hadoop.hive.thrift.DBTokenStore > - > > Key: HIVE-9622 > URL: https://issues.apache.org/jira/browse/HIVE-9622 > Project: Hive > Issue Type: Bug >Reporter: Aihua Xu >Assignee: Aihua Xu > Labels: HiveServer2, Security > Fix For: 1.2.0 > > Attachments: HIVE-9622.1.patch, HIVE-9622.2.patch > > > # Configure the cluster to use kerberos for HS2 and Metastore. > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-3-0/CDH4-Security-Guide/cdh4sg_topic_9_1.html > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-6-0/CDH4-Security-Guide/cdh4sg_topic_9_2.html > # Set hive metastore delegation token to > org.apache.hadoop.hive.thrift.DBTokenStore in hive-site.xml > {code} > > hive.cluster.delegation.token.store.class > org.apache.hadoop.hive.thrift.DBTokenStore > > {code} > # Then trying to restart hive service, HS2 fails to start the NPE below: > {code} > 9:43:10.711 AMERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > Error: > org.apache.thrift.transport.TTransportException: Failed to start token manager > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:107) > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:51) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Failed to initialize master key > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:223) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.startDelegationTokenSecretManager(HadoopThriftAuthBridge20S.java:438) > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:105) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:221) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.thrift.DBTokenStore.invokeOnRawStore(DBTokenStore.java:145) > at > org.apache.hadoop.hive.thrift.DBTokenStore.addMasterKey(DBTokenStore.java:41) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.logUpdateMasterKey(TokenStoreDelegationTokenSecretManager.java:203) > at > org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:339) > ... 9 more > 9:43:10.719 AMINFOorg.apache.hive.service.server.HiveServer2 > SHUTDOWN_MSG: > / > SHUTDOWN_MSG: Shutting down HiveServer2 at > a1909.halxg.cloudera.com/10.20.202.109 > / > {code} > The problem appears that we didn't pass a {{RawStore}} object in the > following: > https://github.com/apache/hive/blob/trunk/service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java#L111 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9622) Getting NPE when trying to restart HS2 when metastore is configured to use org.apache.hadoop.hive.thrift.DBTokenStore
[ https://issues.apache.org/jira/browse/HIVE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317028#comment-14317028 ] Brock Noland commented on HIVE-9622: +1 pending tests, thx AIhua! > Getting NPE when trying to restart HS2 when metastore is configured to use > org.apache.hadoop.hive.thrift.DBTokenStore > - > > Key: HIVE-9622 > URL: https://issues.apache.org/jira/browse/HIVE-9622 > Project: Hive > Issue Type: Bug >Reporter: Aihua Xu >Assignee: Aihua Xu > Labels: HiveServer2, Security > Fix For: 1.2.0 > > Attachments: HIVE-9622.1.patch, HIVE-9622.2.patch > > > # Configure the cluster to use kerberos for HS2 and Metastore. > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-3-0/CDH4-Security-Guide/cdh4sg_topic_9_1.html > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-6-0/CDH4-Security-Guide/cdh4sg_topic_9_2.html > # Set hive metastore delegation token to > org.apache.hadoop.hive.thrift.DBTokenStore in hive-site.xml > {code} > > hive.cluster.delegation.token.store.class > org.apache.hadoop.hive.thrift.DBTokenStore > > {code} > # Then trying to restart hive service, HS2 fails to start the NPE below: > {code} > 9:43:10.711 AMERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > Error: > org.apache.thrift.transport.TTransportException: Failed to start token manager > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:107) > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:51) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Failed to initialize master key > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:223) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.startDelegationTokenSecretManager(HadoopThriftAuthBridge20S.java:438) > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:105) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:221) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.thrift.DBTokenStore.invokeOnRawStore(DBTokenStore.java:145) > at > org.apache.hadoop.hive.thrift.DBTokenStore.addMasterKey(DBTokenStore.java:41) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.logUpdateMasterKey(TokenStoreDelegationTokenSecretManager.java:203) > at > org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:339) > ... 9 more > 9:43:10.719 AMINFOorg.apache.hive.service.server.HiveServer2 > SHUTDOWN_MSG: > / > SHUTDOWN_MSG: Shutting down HiveServer2 at > a1909.halxg.cloudera.com/10.20.202.109 > / > {code} > The problem appears that we didn't pass a {{RawStore}} object in the > following: > https://github.com/apache/hive/blob/trunk/service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java#L111 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9622) Getting NPE when trying to restart HS2 when metastore is configured to use org.apache.hadoop.hive.thrift.DBTokenStore
[ https://issues.apache.org/jira/browse/HIVE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14316788#comment-14316788 ] Hive QA commented on HIVE-9622: --- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12697807/HIVE-9622.2.patch {color:red}ERROR:{color} -1 due to 5 failed/errored test(s), 7534 tests executed *Failed tests:* {noformat} TestHs2HooksWithMiniKdc - did not produce a TEST-*.xml file TestJdbcWithMiniKdc - did not produce a TEST-*.xml file TestJdbcWithMiniKdcSQLAuthBinary - did not produce a TEST-*.xml file TestJdbcWithMiniKdcSQLAuthHttp - did not produce a TEST-*.xml file org.apache.hive.minikdc.TestHiveAuthFactory.testStartTokenManager {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2760/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2760/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2760/ Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 5 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12697807 - PreCommit-HIVE-TRUNK-Build > Getting NPE when trying to restart HS2 when metastore is configured to use > org.apache.hadoop.hive.thrift.DBTokenStore > - > > Key: HIVE-9622 > URL: https://issues.apache.org/jira/browse/HIVE-9622 > Project: Hive > Issue Type: Bug >Reporter: Aihua Xu >Assignee: Aihua Xu > Labels: HiveServer2, Security > Fix For: 1.2.0 > > Attachments: HIVE-9622.1.patch, HIVE-9622.2.patch > > > # Configure the cluster to use kerberos for HS2 and Metastore. > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-3-0/CDH4-Security-Guide/cdh4sg_topic_9_1.html > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-6-0/CDH4-Security-Guide/cdh4sg_topic_9_2.html > # Set hive metastore delegation token to > org.apache.hadoop.hive.thrift.DBTokenStore in hive-site.xml > {code} > > hive.cluster.delegation.token.store.class > org.apache.hadoop.hive.thrift.DBTokenStore > > {code} > # Then trying to restart hive service, HS2 fails to start the NPE below: > {code} > 9:43:10.711 AMERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > Error: > org.apache.thrift.transport.TTransportException: Failed to start token manager > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:107) > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:51) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Failed to initialize master key > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:223) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.startDelegationTokenSecretManager(HadoopThriftAuthBridge20S.java:438) > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:105) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:221) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.thrift.DBTokenStore.invokeOnRawStore(DBTokenStore.java:145) > at > org.apache.hadoop.hive.thrift.DBTokenStore.addMasterKey(DBTokenStore.java:41) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.logUpdateMasterKey(TokenStoreDelegationTokenSecretManager.java:203) > at > org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:339) > ... 9 more > 9:43:10.719 AMINFOorg.apache.hive.service.server.HiveServer2 > SHUTDOWN_MSG: > / > SHUTDOWN_MSG: Shutting down HiveServer2 at > a1909.ha
[jira] [Commented] (HIVE-9622) Getting NPE when trying to restart HS2 when metastore is configured to use org.apache.hadoop.hive.thrift.DBTokenStore
[ https://issues.apache.org/jira/browse/HIVE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14313723#comment-14313723 ] Hive QA commented on HIVE-9622: --- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12697561/HIVE-9622.1.patch {color:red}ERROR:{color} -1 due to 5 failed/errored test(s), 7531 tests executed *Failed tests:* {noformat} TestHs2HooksWithMiniKdc - did not produce a TEST-*.xml file TestJdbcWithMiniKdc - did not produce a TEST-*.xml file TestJdbcWithMiniKdcSQLAuthBinary - did not produce a TEST-*.xml file TestJdbcWithMiniKdcSQLAuthHttp - did not produce a TEST-*.xml file org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_schemeAuthority {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2733/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2733/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2733/ Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 5 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12697561 - PreCommit-HIVE-TRUNK-Build > Getting NPE when trying to restart HS2 when metastore is configured to use > org.apache.hadoop.hive.thrift.DBTokenStore > - > > Key: HIVE-9622 > URL: https://issues.apache.org/jira/browse/HIVE-9622 > Project: Hive > Issue Type: Bug >Reporter: Aihua Xu >Assignee: Aihua Xu > Labels: HiveServer2, Security > Fix For: 1.2.0 > > Attachments: HIVE-9622.1.patch > > > # Configure the cluster to use kerberos for HS2 and Metastore. > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-3-0/CDH4-Security-Guide/cdh4sg_topic_9_1.html > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-6-0/CDH4-Security-Guide/cdh4sg_topic_9_2.html > # Set hive metastore delegation token to > org.apache.hadoop.hive.thrift.DBTokenStore in hive-site.xml > {code} > > hive.cluster.delegation.token.store.class > org.apache.hadoop.hive.thrift.DBTokenStore > > {code} > # Then trying to restart hive service, HS2 fails to start the NPE below: > {code} > 9:43:10.711 AMERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > Error: > org.apache.thrift.transport.TTransportException: Failed to start token manager > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:107) > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:51) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Failed to initialize master key > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:223) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.startDelegationTokenSecretManager(HadoopThriftAuthBridge20S.java:438) > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:105) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:221) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.thrift.DBTokenStore.invokeOnRawStore(DBTokenStore.java:145) > at > org.apache.hadoop.hive.thrift.DBTokenStore.addMasterKey(DBTokenStore.java:41) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.logUpdateMasterKey(TokenStoreDelegationTokenSecretManager.java:203) > at > org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:339) > ... 9 more > 9:43:10.719 AMINFOorg.apache.hive.service.server.HiveServer2 > SHUTDOWN_MSG: > / > SHUTDOWN_MSG: Shutting down HiveServer2 at > a1909.halxg.clou
[jira] [Commented] (HIVE-9622) Getting NPE when trying to restart HS2 when metastore is configured to use org.apache.hadoop.hive.thrift.DBTokenStore
[ https://issues.apache.org/jira/browse/HIVE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312956#comment-14312956 ] Aihua Xu commented on HIVE-9622: Didn't know that. I will try to follow the example to add one. > Getting NPE when trying to restart HS2 when metastore is configured to use > org.apache.hadoop.hive.thrift.DBTokenStore > - > > Key: HIVE-9622 > URL: https://issues.apache.org/jira/browse/HIVE-9622 > Project: Hive > Issue Type: Bug >Reporter: Aihua Xu >Assignee: Aihua Xu > Labels: HiveServer2, Security > Fix For: 1.2.0 > > Attachments: HIVE-9622.1.patch > > > # Configure the cluster to use kerberos for HS2 and Metastore. > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-3-0/CDH4-Security-Guide/cdh4sg_topic_9_1.html > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-6-0/CDH4-Security-Guide/cdh4sg_topic_9_2.html > # Set hive metastore delegation token to > org.apache.hadoop.hive.thrift.DBTokenStore in hive-site.xml > {code} > > hive.cluster.delegation.token.store.class > org.apache.hadoop.hive.thrift.DBTokenStore > > {code} > # Then trying to restart hive service, HS2 fails to start the NPE below: > {code} > 9:43:10.711 AMERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > Error: > org.apache.thrift.transport.TTransportException: Failed to start token manager > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:107) > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:51) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Failed to initialize master key > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:223) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.startDelegationTokenSecretManager(HadoopThriftAuthBridge20S.java:438) > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:105) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:221) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.thrift.DBTokenStore.invokeOnRawStore(DBTokenStore.java:145) > at > org.apache.hadoop.hive.thrift.DBTokenStore.addMasterKey(DBTokenStore.java:41) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.logUpdateMasterKey(TokenStoreDelegationTokenSecretManager.java:203) > at > org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:339) > ... 9 more > 9:43:10.719 AMINFOorg.apache.hive.service.server.HiveServer2 > SHUTDOWN_MSG: > / > SHUTDOWN_MSG: Shutting down HiveServer2 at > a1909.halxg.cloudera.com/10.20.202.109 > / > {code} > The problem appears that we didn't pass a {{RawStore}} object in the > following: > https://github.com/apache/hive/blob/trunk/service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java#L111 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9622) Getting NPE when trying to restart HS2 when metastore is configured to use org.apache.hadoop.hive.thrift.DBTokenStore
[ https://issues.apache.org/jira/browse/HIVE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312853#comment-14312853 ] Brock Noland commented on HIVE-9622: I wonder if it would be possible to add a test for this similar to https://github.com/apache/hive/blob/trunk/itests/hive-minikdc/src/test/java/org/apache/hive/minikdc/TestHs2HooksWithMiniKdc.java? > Getting NPE when trying to restart HS2 when metastore is configured to use > org.apache.hadoop.hive.thrift.DBTokenStore > - > > Key: HIVE-9622 > URL: https://issues.apache.org/jira/browse/HIVE-9622 > Project: Hive > Issue Type: Bug >Reporter: Aihua Xu >Assignee: Aihua Xu > Labels: HiveServer2, Security > Fix For: 1.2.0 > > Attachments: HIVE-9622.1.patch > > > # Configure the cluster to use kerberos for HS2 and Metastore. > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-3-0/CDH4-Security-Guide/cdh4sg_topic_9_1.html > ## > http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-6-0/CDH4-Security-Guide/cdh4sg_topic_9_2.html > # Set hive metastore delegation token to > org.apache.hadoop.hive.thrift.DBTokenStore in hive-site.xml > {code} > > hive.cluster.delegation.token.store.class > org.apache.hadoop.hive.thrift.DBTokenStore > > {code} > # Then trying to restart hive service, HS2 fails to start the NPE below: > {code} > 9:43:10.711 AMERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > Error: > org.apache.thrift.transport.TTransportException: Failed to start token manager > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:107) > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:51) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Failed to initialize master key > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:223) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.startDelegationTokenSecretManager(HadoopThriftAuthBridge20S.java:438) > at > org.apache.hive.service.auth.HiveAuthFactory.(HiveAuthFactory.java:105) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.startThreads(TokenStoreDelegationTokenSecretManager.java:221) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.thrift.DBTokenStore.invokeOnRawStore(DBTokenStore.java:145) > at > org.apache.hadoop.hive.thrift.DBTokenStore.addMasterKey(DBTokenStore.java:41) > at > org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.logUpdateMasterKey(TokenStoreDelegationTokenSecretManager.java:203) > at > org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:339) > ... 9 more > 9:43:10.719 AMINFOorg.apache.hive.service.server.HiveServer2 > SHUTDOWN_MSG: > / > SHUTDOWN_MSG: Shutting down HiveServer2 at > a1909.halxg.cloudera.com/10.20.202.109 > / > {code} > The problem appears that we didn't pass a {{RawStore}} object in the > following: > https://github.com/apache/hive/blob/trunk/service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java#L111 -- This message was sent by Atlassian JIRA (v6.3.4#6332)