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

Solve the ambiguous reference for scala 2.12

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: connector-1.0.1
    • Component/s: hbase-connectors
    • Labels:
      None

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: