You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Liebing Yu (Jira)" <ji...@apache.org> on 2020/03/31 05:08:00 UTC

[jira] [Updated] (HBASE-24088) Solve the ambiguous reference for scala 2.12

     [ https://issues.apache.org/jira/browse/HBASE-24088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liebing Yu updated HBASE-24088:
-------------------------------
    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:
{code:java}
[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){code}
       Priority: Minor  (was: Major)

> Solve the ambiguous reference for scala 2.12
> --------------------------------------------
>
>                 Key: HBASE-24088
>                 URL: https://issues.apache.org/jira/browse/HBASE-24088
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase-connectors
>            Reporter: Liebing Yu
>            Priority: Minor
>
> 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:
> {code:java}
> [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){code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)