LB-Yu opened a new pull request #63: Solve the ambiguous reference for scala 2.12 URL: https://github.com/apache/hbase-connectors/pull/63 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: ```shell [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) ``` I solve this bug by changing the origin line: ```scala context.addTaskCompletionListener(context => close()) ``` To: ```scala context.addTaskCompletionListener[Unit](context => close()) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
