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

Solve the ambiguous reference for scala 2.12

    XMLWordPrintableJSON

Details

    Description

      When the hbase-spark module is compiled under the scala 2.12 environment, the following error appears in line 216 of the org.apache.hadoop.hbase.spark.datasources.HBaseTableScanRDD class:

      [ERROR] [Error] /path/hbase-connectors/spark/hbase-spark/src/main/scala/org/apache/hadoop/hbase/spark/datasources/HBaseTableScanRDD.scala:216: ambiguous reference to overloaded definition, both method addTaskCompletionListener in class TaskContext of type [U](f: org.apache.spark.TaskContext => U)org.apache.spark.TaskContext and method addTaskCompletionListener in class TaskContext of type (listener: org.apache.spark.util.TaskCompletionListener)org.apache.spark.TaskContext match argument types (org.apache.spark.TaskContext => Unit)

      Attachments

        Issue Links

          Activity

            People

              Liebing Liebing Yu
              Liebing Liebing Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: