I cannot get the spark-shell command to work on Git bash. I am fairly sure my environment is set up correctly as if I run spark-shell in any directory in command prompt, it works just fine for me.
However, when I run spark-shell in bash, it outputs this value instead of running the actual shell:
"C:\Program Files\Java\jdk1.8.0_191\bin\java" -cp "C:\spark\spark-2.4.0-bin-
hadoop2.7/conf\;C:\spark\spark-2.4.0-bin-hadoop2.7\jars\*" "-
Dscala.usejavacp=true"-Xmx1g org.apache.spark.deploy.SparkSubmit --class
org.apache.spark.repl.Main --name "Spark shell" spark-shell
In a git bash, try and use:
'
(instead of double-quotes "
)/
instead of \\
: C:/.../...
or /c/.../...
That would be more compatible with the shell used by Git bash.
然后将其作为RUN=($( spark-shell )) && "${RUN[@]}"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.