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

HBase WALPlayer needs to add credentials to job to play to table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.96.2, 0.98.1
    • 0.99.0, 0.98.2, 0.96.3
    • mapreduce
    • None
    • Reviewed

    Description

      In a secure cluster, WALPlayer needs to add credentials to job.
      Currently when replaying onto live table, we get this security exception:

      javax.security.sasl.SaslException: Failure to initialize security context [Caused by org.ietf.jgss.GSSException, major code: 13, minor code: 0
              major string: Invalid credentials
              minor string: Cannot get credential from JAAS Subject for principal: default principal ]
              at com.ibm.security.sasl.gsskerb.GssKrb5Client.<init>(GssKrb5Client.java:131)
              at com.ibm.security.sasl.gsskerb.FactoryImpl.createSaslClient(FactoryImpl.java:53)
              at javax.security.sasl.Sasl.createSaslClient(Sasl.java:362)
              at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.<init>(HBaseSaslRpcClient.java:96)
              ...
              at org.apache.hadoop.hbase.ipc.RpcClient$Connection$2.run(RpcClient.java:878)
              at java.security.AccessController.doPrivileged(AccessController.java:366)
              at javax.security.auth.Subject.doAs(Subject.java:572)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1502)
              at org.apache.hadoop.hbase.ipc.RpcClient$Connection.setupIOstreams(RpcClient.java:878)
              at org.apache.hadoop.hbase.ipc.RpcClient.getConnection(RpcClient.java:1532)
              at org.apache.hadoop.hbase.ipc.RpcClient.call(RpcClient.java:1421)
              ...
              at org.apache.hadoop.hbase.client.HTable$2.call(HTable.java:700)
              at org.apache.hadoop.hbase.client.HTable$2.call(HTable.java:698)
              at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:116)
              at org.apache.hadoop.hbase.client.HTable.getRowOrBefore(HTable.java:704)
              at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:144)
              ...
              at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:325)
              at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:191)
              at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:164)
              at org.apache.hadoop.hbase.mapreduce.MultiTableOutputFormat$MultiTableRecordWriter.getTable(MultiTableOutputFormat.java:105)
              at org.apache.hadoop.hbase.mapreduce.MultiTableOutputFormat$MultiTableRecordWriter.write(MultiTableOutputFormat.java:131)
              ...
              at org.apache.hadoop.hbase.mapreduce.WALPlayer$HLogMapper.map(WALPlayer.java:138)
      

      Attachments

        1. HBASE-11049-trunk.patch
          0.7 kB
          Jerry He

        Activity

          People

            jinghe Jerry He
            jinghe Jerry He
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: