HI Team ,
I have loaded one of my sample [NASAhosts.py] loaded alomg
the path (https://jupyter.f.cloudxlab.com/user/asmitaece887002/edit/NASAhosts.py)I am trying to submit through pyspark using the following command and getting the below error . â
[asmitaece887002@cxln5 ~]$ spark-submit NASAhosts.py
SPARK_MAJOR_VERSION is set to 2, using Spark2
File â/bin/hdp-selectâ, line 232
print "ERROR: Invalid package - " + name
^
SyntaxError: Missing parentheses in call to âprintâ. Did you mean print("ERROR: Invalid package - " + name)?
ls: cannot access /usr/hdp//hadoop/lib: No such file or directory
Exception in thread âmainâ java.lang.IllegalStateException: hdp.version is not set while running Spark under HDP, please set through HDP_VERSION in spark-env.sh or add a java-opts file
in conf with -Dhdp.version=xxx
at org.apache.spark.launcher.Main.main(Main.java:118)
=-----------------------------------------
even tried this spark-submit --py-NASAhosts.py
SPARK_MAJOR_VERSION is set to 2, using Spark2
File â/bin/hdp-selectâ, line 232
print "ERROR: Invalid package - " + name
^
SyntaxError: Missing parentheses in call to âprintâ. Did you mean print("ERROR: Invalid package - " + name)?
ls: cannot access /usr/hdp//hadoop/lib: No such file or directory
Error: Unrecognized option: --py-NASAhosts.py
Exception in thread âmainâ java.lang.IllegalStateException: hdp.version is not set while running Spark under HDP, please set through HDP_VERSION in spark-env.sh or add a java-opts file
in conf with -Dhdp.version=xxx
at org.apache.spark.launcher.Main.main(Main.java:118)
Please help on this