You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Hequn Cheng (Jira)" <ji...@apache.org> on 2020/01/23 06:43:00 UTC

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

     [ https://issues.apache.org/jira/browse/FLINK-14385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hequn Cheng updated FLINK-14385:
--------------------------------
    Fix Version/s:     (was: 1.9.2)
                   1.9.3

> 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
>            Priority: Major
>             Fix For: 1.8.4, 1.9.3
>
>
> 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)