Flume startup problem


3 Answer(s)


Hi Biswadip, i am also getting the same error. How did you resolve it? any contact information?

some update but still unresolved: Please share your solution.

1. I moved flume-sources-1.0-SNAPSHOT.jar to /usr/lib/flume-ng/lib and set the
/etc/flume-ng/conf/flume-env.sh to have this path
After that the current issue gone, which seems to me that the jar file is not picked up from any other directory even though the env.sh points the path
2. now i got new error:
java.lang.NoSuchMethodError: twitter4j.FilterQuery.setIncludeEntities(Z)Ltwitter4j/FilterQuery
3. found that FilterQuery.class is conflicting :
[root@localhost lib]# find . -name "*.jar" | xargs grep FilterQuery.class
Binary file ./twitter4j-stream-3.0.3.jar matches
Binary file ./flume-sources-1.0-SNAPSHOT.jar matches
4. renamed twitter4j-stream-3.0.3.jar to some other extension
5. now got new error: which seems tome that twitter4j can't be renamed
15/05/13 22:29:11 INFO twitter4j.TwitterStreamImpl: Receiving status stream.
Exception in thread "Twitter4J Async Dispatcher[0]" java.lang.NoSuchMethodError: twitter4j.json.JSONObjectType.determine(Ltwitter4j/internal/org/json/JSONObject;)Ltwitter4j/json/JSONObjectType;
at twitter4j.AbstractStreamImplementation$1.run(AbstractStreamImplementation.java:100)
at twitter4j.internal.async.ExecuteThread.run(DispatcherImpl.java:116)

Here I am stuck.


Solved: jar filed copied from tembo ftp server didn't work
Following link solved the issue:
https://community.cloudera.com/t5/Apache-Hadoop-Concepts-and/issue-flume-twitter/td-p/22925

"mvn install" is required in cdh-twitter-example/flume-sources