Created on 10-15-2018 07:58 AM - edited 09-16-2022 06:48 AM
Hello Team,
We have CDH 5.15.3 installed and Spark2 version installed of 2.3.
Kindly confirm below:
1. Does CDh 5.15.3 support Spark2 2.3?
2. When running spark-shell on server where Gateway Role installed throws below error
[cloudera-scm@a302-0144-2944 cloudera-scm-agent]$ spark-shell
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:123)
at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:123)
at scala.Option.getOrElse(Option.scala:120)
at org.apache.spark.deploy.SparkSubmitArguments.mergeDefaultSparkProperties(SparkSubmitArguments.scala:123)
at org.apache.spark.deploy.SparkSubmitArguments.<init>(SparkSubmitArguments.scala:109)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:114)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
3. Any configuration to be done by using Spark on YArn?
Kindly help to fix the issue?
- VIjay M
Created 10-17-2018 08:15 AM
Created 10-17-2018 09:12 AM
If i run below command before running spark-shell its working.
export SPARK_DIST_CLASSPATH=`hadoop classpath`
But i do not want above command to be run every time, Kindly suggest?
- VIjay M
Created 04-19-2019 10:01 AM
Were you able to find the reason. I am also having the same issue with CDH 5.11. Spark and PySpark not working and it works only after i set the class path as you mentioned. Hive and mapreduce works fine.I have Spark 1.6.0 and Scala 2.10.5
Created 10-17-2018 09:37 AM
Created 10-17-2018 09:47 AM
Created 07-30-2019 09:49 AM
Yes Spark2-shell and spark2-submit has these issues as well. Any insights