You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/03/13 11:52:14 UTC

[GitHub] [hbase-connectors] LB-Yu opened a new pull request #63: Solve the ambiguous reference for scala 2.12

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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [hbase-connectors] meszibalu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12

Posted by GitBox <gi...@apache.org>.
meszibalu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12
URL: https://github.com/apache/hbase-connectors/pull/63#issuecomment-608028860
 
 
   Ok, thank you!

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [hbase-connectors] meszibalu commented on issue #63: Solve the ambiguous reference for scala 2.12

Posted by GitBox <gi...@apache.org>.
meszibalu commented on issue #63: Solve the ambiguous reference for scala 2.12
URL: https://github.com/apache/hbase-connectors/pull/63#issuecomment-605418042
 
 
   Hi @LB-Yu!
   Please create a JIRA for your change and include the JIRA number in the commit message.
   Thanks!

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [hbase-connectors] LB-Yu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12

Posted by GitBox <gi...@apache.org>.
LB-Yu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12
URL: https://github.com/apache/hbase-connectors/pull/63#issuecomment-606408969
 
 
   Hi @meszibalu, I've created a JIRA and change the commit message now.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [hbase-connectors] meszibalu edited a comment on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12

Posted by GitBox <gi...@apache.org>.
meszibalu edited a comment on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12
URL: https://github.com/apache/hbase-connectors/pull/63#issuecomment-608028860
 
 
   Ok, thank you! I'll merge your change soon.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [hbase-connectors] LB-Yu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12

Posted by GitBox <gi...@apache.org>.
LB-Yu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12
URL: https://github.com/apache/hbase-connectors/pull/63#issuecomment-607215275
 
 
   I ran the command `mvn -Dspark.version=2.4.5 -Dscala.version=2.12.8 -Dscala.binary.version=2.12 clean package` and PASSED all the tests on branch `scala_2.12`.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [hbase-connectors] meszibalu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12

Posted by GitBox <gi...@apache.org>.
meszibalu commented on issue #63: HBASE-24088 Solve the ambiguous reference for scala 2.12
URL: https://github.com/apache/hbase-connectors/pull/63#issuecomment-606792058
 
 
   Thanks!
   Did you run the tests? I have the following error:
   ```
   [ERROR] Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 16.968 s <<< FAILURE! - in org.apache.hadoop.hbase.spark.TestJavaHBaseContext
   [ERROR] org.apache.hadoop.hbase.spark.TestJavaHBaseContext.testBulkDelete  Time elapsed: 1.562 s  <<< ERROR!
   java.lang.ArrayIndexOutOfBoundsException: 10582
   	at org.apache.hadoop.hbase.spark.TestJavaHBaseContext.testBulkDelete(TestJavaHBaseContext.java:212)
   
   ...
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [hbase-connectors] meszibalu merged pull request #63: HBASE-24088 Solve the ambiguous reference for scala 2.12

Posted by GitBox <gi...@apache.org>.
meszibalu merged pull request #63: HBASE-24088 Solve the ambiguous reference for scala 2.12
URL: https://github.com/apache/hbase-connectors/pull/63
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services