Closed QlDoors closed 2 years ago
Hi:
解决了,因为dolphinscheduler在执行命令的时候,没有把 conf/env/dolphinscheduler_env.sh 加载到运行环境中造成的,通过创建一个"环境"搞定了,环境配置如下:
source /etc/profile
source /home/qinliang/dolphinscheduler/conf/env/dolphinscheduler_env.sh
export HADOOP_USER_NAME=hdfs
Search before asking
What happened
when I run spark applition on yarn, I got a failed messasge: 22/01/04 19:24:27 ERROR yarn.ApplicationMaster: User class threw exception: java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object; java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object; at org.apache.spark.sql.SparkSession$Builder.config(SparkSession.scala:804) at org.apache.spark.sql.SparkSession$Builder.appName(SparkSession.scala:795) at org.example.WordCount$.main(WordCount.scala:40) at org.example.WordCount.main(WordCount.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:567) 22/01/04 19:24:27 INFO yarn.ApplicationMaster: Final app status: FAILED, exitCode: 15, (reason: User class threw exception: java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object;) 22/01/04 19:24:27 ERROR yarn.ApplicationMaster: Uncaught exception: java.util.concurrent.ExecutionException: Boxed Error at scala.concurrent.impl.Promise$.resolver(Promise.scala:55) at scala.concurrent.impl.Promise$.scala$concurrent$impl$Promise$$resolveTry(Promise.scala:47) at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:244) at scala.concurrent.Promise$class.tryFailure(Promise.scala:112) at scala.concurrent.impl.Promise$DefaultPromise.tryFailure(Promise.scala:153) at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:585) Caused by: java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object; at org.apache.spark.sql.SparkSession$Builder.config(SparkSession.scala:804) at org.apache.spark.sql.SparkSession$Builder.appName(SparkSession.scala:795) at org.example.WordCount$.main(WordCount.scala:40) at org.example.WordCount.main(WordCount.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:567) 22/01/04 19:24:27 INFO util.ShutdownHookManager: Shutdown hook called
What you expected to happen
run successs
How to reproduce
cdh version 5.14.4,spark1 version 1.6.0,spark2 version 2.4.0.cloudera2
put /opt/cloudera/parcels/SPARK2/lib/spark2/jars/ *.jar to /dolphinscheduler/qinliang/resources/spark-jars/
work-flow 'Option Parameters':
run work-flow,yarn logs:
Anything else
No response
Version
2.0.1
Are you willing to submit PR?
Code of Conduct