Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
1.11.3
-
None
-
flink-1.11
flink on yarn cluster
jdk1.8
hive1.2.1
hadoop2.7
hadoop classes is provided with export HADOOP_CLASSPATH=`hadoop classpath` when submitting test APP. (described in https://ci.apache.org/projects/flink/flink-docs-release-1.11/ops/deployment/hadoop.html )
{{}}
Description
I followed instructions described in https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/hive and tested hive streaming sink, met this exception
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobConf
http://apache-flink.147419.n8.nabble.com/Flink-td7866.html met the same problem.
I checked TM jvm envs and the code and found that flink only set up YARN_APPLICATION_CLASSPATH, but without MAPREDUCE_APPLICATION_CLASSPATH.
I think we should add MAPREDUCE_APPLICATION_CLASSPATH as well, as the same as spark does.
Attachments
Issue Links
- is related to
-
FLINK-21319 hadoop-mapreduce jars are not loaded into classpath when submiting flink on yarn jobs.
- Open
- links to