Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 07-03-2018 09:41 PM - edited 09-16-2022 06:24 AM
Hello,
I am trying to use spark-hbase-connector (dependency below) as part of my spark project (spark 1.6.2.2.5.3.0-37 and scala 2.10.5)
<dependency>
<groupId>com.hortonworks</groupId>
<artifactId>shc-core</artifactId>
<version>1.1.1-2.1-s_2.11</version>
</dependency>
results in a noSuchMethod error:
2018-07-03 16:18:16,992 ERROR [Driver] yarn.ApplicationMaster: User class threw exception: java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object; java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object; at org.apache.spark.sql.SparkSession$Builder.config(SparkSession.scala:750) at org.apache.spark.sql.SparkSession$Builder.appName(SparkSession.scala:741)
Any suggestions/recommendation on what I may be overlooking would be appreciated!
Thanks,
Vinod
Created 07-04-2018 05:36 PM
You are using Spark1.x and 2.10 Scala, However the Spark and Scala version in SHC dependency are 2.1 and 2.11 respectively (1.1.1-2.1-s_2.11).
Do update the shc dependency version with "1.1.1-1.6-s_2.10" and let me know how it goes.
Created 07-04-2018 05:36 PM
You are using Spark1.x and 2.10 Scala, However the Spark and Scala version in SHC dependency are 2.1 and 2.11 respectively (1.1.1-2.1-s_2.11).
Do update the shc dependency version with "1.1.1-1.6-s_2.10" and let me know how it goes.
Created 07-06-2018 08:23 AM
@Vinod C Kaggal Please take a moment to click "Accept" if this answer helps you. 🙂
Created 07-06-2018 02:28 PM
Thanks for your response! That did help me resolve the issue.
Appreciate your help.
Vinod