Skip to content
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

os-maven-plugin using old version of guava. causing conflicts with the newer version of guava required by grpc-core library #29

Closed
rajbarath opened this issue Nov 6, 2017 · 1 comment
Milestone

Comments

@rajbarath
Copy link

below is the error log from the roject. The MoreExecutors.directExector() is available from guava v18 and above. However, the os-maven-plugin seems to have some form of dependency to guava 10/11 which does not have the directExecutor() method available in it.

Since the os-maven-plugin is defined as extension in the maven build, i dont see a way to define an exclusion of the older version of guava jar.

Driver stacktrace:
2017-11-04 22:37:47.234 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : 17/11/04 22:37:47 INFO DAGScheduler: Job 2 failed: foreach at FixedLengthProcessor.java:75, took 5.287376 s
2017-11-04 22:37:47.235 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 2.0 failed 4 times, most recent failure: Lost task 0.3 in stage 2.0 (TID 5, 127.0.0.1, executor 2): java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor;
2017-11-04 22:37:47.235 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : at io.grpc.internal.ClientCallImpl.(ClientCallImpl.java:94)
2017-11-04 22:37:47.235 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : at io.grpc.internal.ManagedChannelImpl$RealChannel.newCall(ManagedChannelImpl.java:572)
2017-11-04 22:37:47.235 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : at io.grpc.internal.CensusTracingModule$TracingClientInterceptor.interceptCall(CensusTracingModule.java:330)
2017-11-04 22:37:47.235 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:104)
2017-11-04 22:37:47.235 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : at io.grpc.internal.ManagedChannelImpl.newCall(ManagedChannelImpl.java:551)
2017-11-04 22:37:47.235 INFO 74858 --- [launcher-proc-3] org.apache.spark.launcher.app.test-JOB : at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:113)

@trustin
Copy link
Owner

trustin commented Apr 21, 2018

Fixed by updating depencies via 4027186

@trustin trustin closed this as completed Apr 21, 2018
@trustin trustin added this to the 1.6.0 milestone Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants