You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Mark S (JIRA)" <ji...@apache.org> on 2015/08/05 00:14:04 UTC
[jira] [Updated] (SAMZA-752) Hello Samza Example Issues
[ https://issues.apache.org/jira/browse/SAMZA-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark S updated SAMZA-752:
-------------------------
Description:
I am currently trying to run the Hello Samza example (http://samza.apache.org/startup/hello-samza/0.9/) and unfortunately when I try to run a Samza job I get the following exception:
*Command*
{code}
deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
{code}
*Exception*
{code}
...
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: scala/Function2
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: scala.Function2
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
{code}
If I edit vim deploy/samza/bin/run-class.sh and manually add the scala-library.jar to the CLASSPATH value, this error disappears, though the Hadoop Application will fail with a similarish exception (http://localhost:8088/).
{code}
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/immutable/List
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: scala.collection.immutable.List
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
{code}
The following links might be related:
* https://samza.apache.org/learn/tutorials/0.9/run-in-multi-node-yarn.html
* https://issues.apache.org/jira/browse/SAMZA-456
was:
I am currently trying to run the Hello Samza example (http://samza.apache.org/startup/hello-samza/0.9/) and unfortunately when I try to run a Samza job I get the following exception:
*Command*
{code}
deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
{code}
*Exception*
{code}
...
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: scala/Function2
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: scala.Function2
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
{code}
If I edit vim deploy/samza/bin/run-class.sh and manually add the scala-library.jar to the CLASSPATH value, this error disappears, though the Hadoop job will fail with a similarish exception.
The following links might be related:
* https://samza.apache.org/learn/tutorials/0.9/run-in-multi-node-yarn.html
* https://issues.apache.org/jira/browse/SAMZA-456
> Hello Samza Example Issues
> --------------------------
>
> Key: SAMZA-752
> URL: https://issues.apache.org/jira/browse/SAMZA-752
> Project: Samza
> Issue Type: Bug
> Components: hello-samza
> Affects Versions: 0.9.1
> Environment: * CentOs 7 64-bit
> * apache-maven-3.3.3
> Reporter: Mark S
>
> I am currently trying to run the Hello Samza example (http://samza.apache.org/startup/hello-samza/0.9/) and unfortunately when I try to run a Samza job I get the following exception:
> *Command*
> {code}
> deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
> {code}
> *Exception*
> {code}
> ...
> Error: A JNI error has occurred, please check your installation and try again
> Exception in thread "main" java.lang.NoClassDefFoundError: scala/Function2
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
> at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
> at java.lang.Class.getMethod0(Class.java:3018)
> at java.lang.Class.getMethod(Class.java:1784)
> at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
> at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
> Caused by: java.lang.ClassNotFoundException: scala.Function2
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 7 more
> {code}
> If I edit vim deploy/samza/bin/run-class.sh and manually add the scala-library.jar to the CLASSPATH value, this error disappears, though the Hadoop Application will fail with a similarish exception (http://localhost:8088/).
> {code}
> Error: A JNI error has occurred, please check your installation and try again
> Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/immutable/List
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
> at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
> at java.lang.Class.getMethod0(Class.java:3018)
> at java.lang.Class.getMethod(Class.java:1784)
> at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
> at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
> Caused by: java.lang.ClassNotFoundException: scala.collection.immutable.List
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 7 more
> {code}
> The following links might be related:
> * https://samza.apache.org/learn/tutorials/0.9/run-in-multi-node-yarn.html
> * https://issues.apache.org/jira/browse/SAMZA-456
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)