Not able to run scalding job...getting error "java.lang.ClassNotFoundException: cascading.flow.hadoop.HadoopFlowConnector"

249 views
Skip to first unread message

Thiru PS

unread,
Aug 1, 2015, 12:01:18 PM8/1/15
to cascading-user
Hi,

I'm new to cascading/ scala and more over to Java. I'm from C# background. I understand the class is not found somthing happend with my configuration.

Can some one help

[cloudera@quickstart part1]$ yarn jar build/libs/part1-fat.jar etl.Main --hdfs --input logs/NASA_access_log_Aug95.txt --output output/out124.txt
Exception in thread "main" java.lang.Throwable: If you know what exactly caused this error, please consider contributing to GitHub via following link.
https://github.com/twitter/scalding/wiki/Common-Exceptions-and-possible-reasons#javalangclassnotfoundexception
    at com.twitter.scalding.Tool$.main(Tool.scala:132)
    at com.twitter.scalding.Tool.main(Tool.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.NoClassDefFoundError: cascading/flow/hadoop/HadoopFlowConnector
    at com.twitter.scalding.Mode$.apply(Mode.scala:79)
    at com.twitter.scalding.Tool.parseModeArgs(Tool.scala:61)
    at com.twitter.scalding.Tool.run(Tool.scala:66)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at com.twitter.scalding.Tool$.main(Tool.scala:128)
    ... 7 more
Caused by: java.lang.ClassNotFoundException: cascading.flow.hadoop.HadoopFlowConnector
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 12 more

Oscar Boykin

unread,
Aug 1, 2015, 3:27:15 PM8/1/15
to cascadi...@googlegroups.com
Does the jar build/libs/part1-fat.jar contain the class it is complaining about?

jar tf part1-fat.jar | grep HadoopFlowConnector

should find it.

If not, the question comes: how did you build this jar.

--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/b6a61808-4028-41c5-98d9-0e19fc37fa53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Oscar Boykin :: @posco :: http://twitter.com/posco

Thiru PS

unread,
Aug 1, 2015, 8:56:20 PM8/1/15
to cascadi...@googlegroups.com
Hello all:

Thanks,

It seems the HadoopFlowConnector is not found with in the jar

I build jar as mentioned here

http://docs.cascading.org/tutorials/scalding-data-processing/part1.html#

--
You received this message because you are subscribed to a topic in the Google Groups "cascading-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cascading-user/WOYYQkAdINw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cascading-use...@googlegroups.com.

To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.

Dan Osipov

unread,
Aug 5, 2015, 3:08:27 PM8/5/15
to cascading-user
Are you using gradle or sbt?
You need to assemble a fat jar that contains all dependencies.

Thiru PS

unread,
Aug 6, 2015, 8:18:26 AM8/6/15
to cascadi...@googlegroups.com
Hello Dan,

I’m using Gradle to build

guo weizhan

unread,
Sep 17, 2015, 6:04:18 AM9/17/15
to cascading-user
Have u fixed this issue? I got the same problem.

在 2015年8月6日星期四 UTC+8下午8:18:26,Thiru PS写道:

Srikarasu

unread,
Sep 17, 2015, 6:50:31 AM9/17/15
to cascadi...@googlegroups.com
Yes I did. It is because of scalding version. Build using lower version 2.7

Sent from my iPhone

Guo Weizhan

unread,
Sep 17, 2015, 7:01:09 AM9/17/15
to cascading-user
Which version you are using exactly?
I see ext.cascadingVersion = '3.0.0' in my build.gradle

Thanks

在 2015年9月17日星期四 UTC+8下午6:50:31,Thiru PS写道:

Guo Weizhan

unread,
Sep 17, 2015, 7:04:51 AM9/17/15
to cascading-user
Sorry for misunderstanding, I'm uisng version 2.7 now.

Thank you!
Weizhan Guo

在 2015年9月17日星期四 UTC+8下午7:01:09,Guo Weizhan写道:
Reply all
Reply to author
Forward
0 new messages