(A) into the spark-shell command interface (default scala command interface)
1, if a spark into the installation directory is used,
1, a machine start spark: ./ bin / spark-shell --master <master-url> command to enter the shell interface, master-url parameters may be: local [*] multithreaded start logical CPU, local [n ], using n CPU thread start
2, start the spark clustered: spark: // Host IP: 7077 (default port)
3, add the CLASSPATH jar package: ./bin/spark-shell --master local [. 4] --jars code.jar
4, Exit :(: quit)
2, Yarn cluster model:
yarn-client: The client computer does not pass, the commissioning phase
yarn-cluster: The client computer off does not affect the normal use stage
3, sbt scala is a Spark used to write programs to package tool (not installed successfully)