java
installed on your system PATH
,or the JAVA_HOME
environment variable pointing to a Java installation.examples/src/main
directory. To run one of the Java or Scala sample programs, usebin/run-example <class> [params]
in the top-level Spark directory. (Behind the scenes, thisinvokes the more generalspark-submit
script forlaunching applications). For example,--master
option specifies themaster URL for a distributed cluster, or local
to runlocally with one thread, or local[N]
to run locally with N threads. You should start by usinglocal
for testing. For a full list of options, run Spark shell with the --help
option.bin/pyspark
:bin/sparkR
:examples
subfolder of Spark (Scala, Java, Python, R)