Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14079

improve error message when Master fails to connect to Hadoop-auth

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.94.0, 0.98.0, 1.0.0, 1.1.0
    • None
    • master
    • None

    Description

      Current error message at INFO level doesn't give any hint about what keytab and principle are in use

      2015-07-14 13:32:48,514 INFO [main] impl.MetricsConfig: loaded properties from hadoop-metrics2-hbase.properties
      2015-07-14 13:32:48,640 INFO [main] impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
      2015-07-14 13:32:48,640 INFO [main] impl.MetricsSystemImpl: HBase metrics system started
      2015-07-14 13:32:48,776 ERROR [main] master.HMasterCommandLine: Master exiting
      java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
      at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2258)
      at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:234)
      at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
      at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2272)
      Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user

      at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:856)
      at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:719)
      at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:584)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:762)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:595)
      at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:912)
      at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:242)
      at org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:385)
      at org.apache.hadoop.hbase.security.User.login(User.java:252)
      at org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:115)
      at org.apache.hadoop.hbase.master.HMaster.login(HMaster.java:464)
      at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:553)
      at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:351)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2253)
      ... 5 more

      increasing to DEBUG also doesn't help.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              busbey Sean Busbey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: