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

Remove use of getCurrentUserCredentials in hbase-spark module

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When compiling hbase-spark module against Spark 2.3.0 release, we would get:

      [ERROR] /a/hbase/hbase-spark/src/main/scala/org/apache/hadoop/hbase/spark/HBaseContext.scala:68: error: value getCurrentUserCredentials is not a member of org.apache.spark.deploy.        SparkHadoopUtil
      [ERROR]   @transient var credentials = SparkHadoopUtil.get.getCurrentUserCredentials()
      [ERROR]                                                    ^
      [ERROR] /a/hbase/hbase-spark/src/main/scala/org/apache/hadoop/hbase/spark/HBaseContext.scala:236: error: value getCurrentUserCredentials is not a member of org.apache.spark.deploy.       SparkHadoopUtil
      [ERROR]     credentials = SparkHadoopUtil.get.getCurrentUserCredentials()
      [ERROR]                                       ^
      [ERROR] two errors found
      

      getCurrentUserCredentials was removed by SPARK-22372.

      This issue is to replace the call to getCurrentUserCredentials with call to UserGroupInformation.getCurrentUser().getCredentials()

      Attachments

        1. 20375.v2.txt
          1 kB
          Ted Yu
        2. 20375.v1.txt
          1 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: