Skip to content

Commit c435b65

Browse files
author
Janos Matyas
committed
Issue sequenceiq#4 fix changes
1 parent 467e5b5 commit c435b65

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ There are two deploy modes that can be used to launch Spark applications on YARN
3333
In yarn-client mode, the driver runs in the client process, and the application master is only used for requesting resources from YARN.
3434

3535
```
36-
cd /usr/local/spark
3736
# run the spark shell
38-
./bin/spark-shell --master yarn-client --driver-memory 1g --executor-memory 1g --executor-cores 1
37+
spark-shell --master yarn-client --driver-memory 1g --executor-memory 1g --executor-cores 1
3938
4039
# execute the the following command which should return 1000
4140
scala> sc.parallelize(1 to 1000).count()
@@ -47,17 +46,13 @@ In yarn-cluster mode, the Spark driver runs inside an application master process
4746
Estimating Pi (yarn-cluster mode):
4847

4948
```
50-
cd /usr/local/spark
51-
5249
# execute the the following command which should write the "Pi is roughly 3.1418" into the logs
53-
./bin/spark-submit --class org.apache.spark.examples.SparkPi --master yarn-cluster --driver-memory 1g --executor-memory 1g --executor-cores 1 ./lib/spark-examples-1.1.0-hadoop2.4.0.jar
50+
spark-submit --class org.apache.spark.examples.SparkPi --master yarn-cluster --driver-memory 1g --executor-memory 1g --executor-cores 1 ./lib/spark-examples-1.1.0-hadoop2.4.0.jar
5451
```
5552

5653
Estimating Pi (yarn-client mode):
5754

5855
```
59-
cd /usr/local/spark
60-
6156
# execute the the following command which should print the "Pi is roughly 3.1418" to the screen
62-
./bin/spark-submit --class org.apache.spark.examples.SparkPi --master yarn-client --driver-memory 1g --executor-memory 1g --executor-cores 1 ./lib/spark-examples-1.1.0-hadoop2.4.0.jar
57+
spark-submit --class org.apache.spark.examples.SparkPi --master yarn-client --driver-memory 1g --executor-memory 1g --executor-cores 1 ./lib/spark-examples-1.1.0-hadoop2.4.0.jar
6358
```

0 commit comments

Comments
 (0)