You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Keda Ruan (JIRA)" <ji...@apache.org> on 2018/03/26 19:09:00 UTC
[jira] [Created] (FLINK-9086) Use INTERNAL_HADOOP_CLASSPATHS as
classpath for launching Yarn cluster for Scala Shell
Keda Ruan created FLINK-9086:
--------------------------------
Summary: Use INTERNAL_HADOOP_CLASSPATHS as classpath for launching Yarn cluster for Scala Shell
Key: FLINK-9086
URL: https://issues.apache.org/jira/browse/FLINK-9086
Project: Flink
Issue Type: Improvement
Components: Startup Shell Scripts
Affects Versions: 1.4.0
Reporter: Keda Ruan
Some environment does not have hadoop jars in {{HADOOP_CLASSPATH}}, causing Flink Yarn cluster unable to start due to some jars missing. For example Flink 1.4.0 drops jersey dependency in its shaded hadoop jar, causing Yarn cluster unable to start:
{quote}Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jersey/core/util/FeaturesAndProperties
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
{quote}
Since there is a {{INTERNAL_HADOOP_CLASSPATHS}} in {{config.sh}} that has {{hadoop classpath}} result, we can utilize this and improve the user experience on starting Flink Yarn cluster for Scala Shell.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)