WenFeiYi commented on a change in pull request #1915:
URL: https://github.com/apache/hbase/pull/1915#discussion_r527555364
##########
File path:
hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java
##########
@@ -64,7 +66,15 @@
private static String CLIENT_NAME;
@BeforeClass
- public static void setUp() throws Exception {
+ public static void checkAndSetUp() throws Exception {
+ // check localhost kerberos users
+ Process process = Runtime.getRuntime().exec(new String[]{"bash", "-c",
"klist"});
+ boolean timeout = process.waitFor(2, TimeUnit.SECONDS);
+ assertTrue("localhost exec klist timeout!", timeout);
+ int ret = process.exitValue();
+ assertNotEquals("localhost have an existing ticket!", 0, ret);
Review comment:
view source code, this exception is caused by the inconsistency between
the principal's realm and KerberosName.defaultRealm, and defaultRealm depends
on krb5.conf.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]