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: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator #143
Comments
meanwhile, I also check google, fond one post run into similar issue like me . I redouble check my case, it should be not caused by missing of dependencies jar copy ... |
Copying from my answer on the SO article you included above: This error means that you are bringing an older version of
Two solutions:
|
hi, I got a similar problem when setting up kafka connect elasticsearch connector:
I have already set |
I am having the same problem
I modified
this directory contains the jars. I get the following error:
How can I solve it please? running in standalone mode. |
@mohsenSy if you set the In your example above you should set the In general, |
@kccheung similar in your case. To add the connector's jars under E.g. Everything in In more detail, read here: https://docs.confluent.io/current/connect/userguide.html#connect-installing-plugins |
I believe we can close this issue at this point. |
I am facing the same error with Kafka-connect-cassandra.
And I have
This is the error:
What am I missing? @kkonstantine Kindly help me out. |
@junaidrazzaq323 check your classpath. An old guava is added there somehow. Use the
|
We have setup confluent and and created plugins/lib inside home directory.
Then we paste the kafka-connect-cassandra-1.0.0.jar inside it.
We haven't setup CLASSPATH, we just set the plugin.path in
connect-avro-distributed.properties file to /home/plugins.
Next we are starting connect-distributed but we get that exception.
You commented on stackoverflow that:
*"The problem is that the cassandra connector uber jar has guava in it
probably. Take it out of that directory, set your plugin.path to something
that will have cassandra uber jar and Kafka connect, but not the one inside
the other."*
I don't understand this part *"*
*set your plugin.path to something that will have cassandra uber jar and
Kafka connect, but not the one inside the other."*
Can you kindly explain a bit more?
Sincerely,
Junaid Razzaq
Data Engineer | eMumba Pvt Ltd
…On Sun, Feb 18, 2018 at 2:33 PM, Konstantine Karantasis < ***@***.***> wrote:
@junaidrazzaq323 <https://github.com/junaidrazzaq323> check your
classpath. An old guava is added there somehow.
Use the plugin.path for your connectors.
CLASSPATH is for the framework, and its dependencies are added there by
the startup bin scripts.
https://stackoverflow.com/questions/48842850/kafka-connect-java-lang-
nosuchmethoderror-com-google-common-collect-setssetvie/48850184#48850184
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#143 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ai0LF4B7wCVtAyPUMh-MqGiEsJfCpKeCks5tV-6CgaJpZM4QSWIC>
.
|
Just as a note for anyone that might find this later - I was building the kafka-connect-elasticsearch from scratch using maven and copied all over to the /libs folder without realizing this duplicated guava . Deleting the v18 copy resolved the issue. |
Follow
https://sematext.com/blog/kafka-connect-elasticsearch-how-to/
to buildelasticsearch connect
in my local.1, local kafka version : 0.11.0.1
2, command
./bin/connect-standalone libexec/config/connect-standalone.properties libexec/config/elasticsearch-connect.properties
Run into the following error 👍
The text was updated successfully, but these errors were encountered: