You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Keda Ruan (JIRA)" <ji...@apache.org> on 2018/03/26 19:26:00 UTC

[jira] [Updated] (FLINK-9086) Use INTERNAL_HADOOP_CLASSPATHS as classpath for launching Yarn cluster for Scala Shell

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

Keda Ruan updated FLINK-9086:
-----------------------------
    Description: 
Some environments don't 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.

  was:
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.


> 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
>            Priority: Major
>
> Some environments don't 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)