Closed morellodev closed 8 years ago
Hi András, this bug seems to be related to this one.
I hope this helps.
A strange error indeed. For me, running
sudo /usr/bin/java -Xmx20m -Didomaar.url=https://raw.githubusercontent.com/crowdrec/data sets/master/01.MovieTweetings/datasets/snapshots10K/evaluation/test/data.dat -Didomaar.sourceType=file -cp '/vagrant/flume-config/log4j/tes t:/opt/apache/flume/lib/:/opt/apache/flume/plugins.d/idomaar/lib/:/opt/apache/flume/plugins.d/idomaar/libext/:/lib/_' -Djava.library.path = org.apache.flume.node.Application --name a1 --conf-file /vagrant/flume-config/config/generated/idomaar-TO-kafka-test.conf
on the datastream manager sometimes succeeds and sometimes fails with the java.lang.NoClassDefFoundError: Could not initialize class com.yammer.metrics.Metrics error. Apparently, the Metrics class is on the classpath.
Once I hack a call of com.yammer.metrics.Metrics into IdomaarSource initialization, the command succeeds consistently. I'm guessing this is some strange race condition in the Metrics class static initalization. If all is fine, I'll commit the hack on Monday.
Apparently, Metrics is being initialized rather late, when the JVM is already shutting down, thus it fails to add a shutdown hook ... I'm not sure why. Timely initialization should fix this.
Ok András, can you commit the bug fix when you are ready? Thanks.
However, the bug you have just mentioned is different from the one I've opened this ticket for. Can you please check Flume's log files?
fixed
Hi,
I'm facing with this exception while computing environment is waiting for recommendation requests during the TEST phase (recommendation-manager.log file):
Has somebody any idea to solve this issue? I'm using HTTP as communication protocol between computing environment and orchestrator.