java.lang.RuntimeException: Unable to connect to irc.wikimedia.org:6667.

Apache's JIRA Issue Tracker | Mark S | 1 year ago
  1. 0

    [SAMZA-752] "Hello Samza" Scala issues - ASF JIRA

    apache.org | 1 year ago
    java.lang.RuntimeException: Unable to connect to irc.wikimedia.org:6667.
  2. 0

    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

    Apache's JIRA Issue Tracker | 1 year ago | Mark S
    java.lang.RuntimeException: Unable to connect to irc.wikimedia.org:6667.
  3. 0

    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

    Apache's JIRA Issue Tracker | 1 year ago | Mark S
    java.lang.RuntimeException: Unable to connect to irc.wikimedia.org:6667.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Apache Flink InvocationTargetException: Job execution failed. Connection timed out

    Stack Overflow | 9 months ago | Piyush Shrivastava
    org.apache.flink.runtime.client.JobExecutionException: Job execution failed.

  1. linxiaolong 18 times, last 3 weeks ago
  2. Kialandei 1 times, last 1 month ago
  3. DoktorDoener666 41 times, last 2 weeks ago
  4. kjhdofjosvs 2 times, last 1 month ago
  5. Gatgeagent 1 times, last 2 months ago
22 more registered users
65 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    7. java.net.Socket.connect(Socket.java:538)
    8. java.net.Socket.<init>(Socket.java:434)
    9. java.net.Socket.<init>(Socket.java:211)
    9 frames
  3. IRC client library
    IRCConnection.connect
    1. org.schwering.irc.lib.IRCConnection.connect(IRCConnection.java:295)
    1 frame
  4. samza.examples.wikipedia
    WikipediaConsumer.start
    1. samza.examples.wikipedia.system.WikipediaFeed.start(WikipediaFeed.java:62)
    2. samza.examples.wikipedia.system.WikipediaConsumer.start(WikipediaConsumer.java:62)
    2 frames
  5. org.apache.samza
    SystemConsumers$$anonfun$start$5.apply
    1. org.apache.samza.system.SystemConsumers$$anonfun$start$5.apply(SystemConsumers.scala:159)
    2. org.apache.samza.system.SystemConsumers$$anonfun$start$5.apply(SystemConsumers.scala:159)
    2 frames
  6. Scala
    MapLike$DefaultValuesIterable.foreach
    1. scala.collection.Iterator$class.foreach(Iterator.scala:727)
    2. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
    3. scala.collection.MapLike$DefaultValuesIterable.foreach(MapLike.scala:206)
    3 frames
  7. org.apache.samza
    SamzaContainer.main
    1. org.apache.samza.system.SystemConsumers.start(SystemConsumers.scala:159)
    2. org.apache.samza.container.SamzaContainer.startConsumers(SamzaContainer.scala:632)
    3. org.apache.samza.container.SamzaContainer.run(SamzaContainer.scala:552)
    4. org.apache.samza.container.SamzaContainer$.safeMain(SamzaContainer.scala:93)
    5. org.apache.samza.container.SamzaContainer$.main(SamzaContainer.scala:67)
    6. org.apache.samza.container.SamzaContainer.main(SamzaContainer.scala)
    6 frames