-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchMethodError: okio.ByteString.encodeString with Spark/InfluxDB #30
Comments
Created this pull request, okio version in the influxdb dependency conflicted with the Spark okio version |
Hi @yeenow123, I couldn't reproduce this error with Spark-2.2.0. I checked the spark-deps-hadoop-2.7 for spark branch-2.2 but this branch doesn't show any dependency for |
I am also seeing this error with spark 2.3 I am bringing in
Nothing else on my dependency list pulls in any square/okio/okhttp. |
It appears this only happens in cluster mode, with client mode I do not get the error running an identical spark job. The cluster mode submit is including this jar on the system classpath: EDIT: correction, in client mode it appears the driver does not receive the jar in question, but the executors still do. |
in client mode, your driver is the spark submit process... it looks like |
Hey @felixcheung and @yeenow123, this issue might also be caused by the relocations in the POM file -- I had a similar "class not found issue" when testing a new OutputReporter that I'll commit soon, see this PR for how I fixed it the issue: |
Actually in my case, I fixed it. |
Thanks hanhtd2 for the information! I updated influxdb-java to 2.7 in pom.xml just now. |
When using the InfluxDB reporter on Spark 2.2.0 with Ambari HDP, I'm getting the following error.
I ran
mvn -P influxdb clean package
to build the jar.Using the following command (with classname / host replaced):
spark-submit --master yarn-cluster --class com.output.spark.FilteringJob --conf spark.jars=hdfs:///user/smorgasborg/lib/jvm-profiler-1.0.0.jar --conf spark.executor.extraJavaOptions=-javaagent:jvm-profiler-1.0.0.jar=reporter=com.uber.profiling.reporters.InfluxDBOutputReporter,tag=profiling,sampleInterval=1000,influxdb.host={{HOST HERE}},influxdb.port=8086,influxdb.database=test_profiling --conf spark.yarn.am.waitTime=200s spark-output-assembly.jar
The text was updated successfully, but these errors were encountered: