[jira] [Created] (FLINK-14385) There are ClassNotFoundException when run the example in Local Setup Tutorial

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-14385) There are ClassNotFoundException when run the example in Local Setup Tutorial

Shang Yuanchun (Jira)
Hequn Cheng created FLINK-14385:
-----------------------------------

             Summary: There are ClassNotFoundException when run the example in Local Setup Tutorial
                 Key: FLINK-14385
                 URL: https://issues.apache.org/jira/browse/FLINK-14385
             Project: Flink
          Issue Type: Improvement
          Components: Client / Job Submission
    Affects Versions: 1.9.1
            Reporter: Hequn Cheng


When do the release check of release-1.9.1-rc1, the ClassNotFoundException is found when go through the wordcount example in [Local Setup Tutorial|https://ci.apache.org/projects/flink/flink-docs-master/getting-started/tutorials/local_setup.html#run-the-example].

You can find the exception in the log file of `flink-xxx-client-MacBook-Pro-2.local.log`
{code:java}
java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/exceptions/YarnException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.apache.flink.client.cli.CliFrontend.loadCustomCommandLine(CliFrontend.java:1187)
        at org.apache.flink.client.cli.CliFrontend.loadCustomCommandLines(CliFrontend.java:1147)
        at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1072)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.yarn.exceptions.YarnException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 5 more
{code}

We know that Hadoop is not pre-bundled in Flink anymore but it would be nice to avoid this exception in order not to bring confusion to new users when they run programs under the local cluster?




--
This message was sent by Atlassian Jira
(v8.3.4#803005)