Skip to content

Commit 1de68cb

Browse files
author
Brendan Stephens
authored
Note sudo and root.
1 parent 25ac652 commit 1de68cb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,28 @@
4040

4141
* SSH in using `vagrant ssh hn0` or `vagrant ssh wn0`.
4242

43+
* Spark is running as `root`.
44+
4345
* The Spark WebUI should be available at `http://192.168.99.200:8080`.
4446

47+
```
48+
sudo jps -ml
49+
PID org.apache.spark.deploy.master.Master --host 192.168.99.200 --port 7077 --webui-port 8080 -h 192.168.99.200
50+
```
51+
4552
* Setup Environment Vairables
4653
* `GSC_JAR=$(ls /vagrant/greenplum-spark_2.11-*.jar)`
4754
* `POSTGRES_JAR=$(ls /vagrant/postgresql-*.jar)`
4855

4956
* Run SCALA
5057

51-
Spark Connector 1.2: Read from Greenplum with Spark Connector / Write to Greenplum with JDBC --
58+
Spark Connector 1.2: Read from Greenplum with Spark Connector / Write to Greenplum with JDBC:
5259

53-
* `spark-shell --jars "${GSC_JAR},${POSTGRES_JAR}" --driver-class-path ${POSTGRES_JAR}`
60+
* `sudo spark-shell --jars "${GSC_JAR},${POSTGRES_JAR}" --driver-class-path ${POSTGRES_JAR}`
5461

55-
Spark Connector 1.3: Read and Write to Greenplum with Spark Connector --
62+
Spark Connector 1.3+: Read and Write to Greenplum with Spark Connector:
5663

57-
* `spark-shell --jars "${GSC_JAR}"`
64+
* `sudo spark-shell --jars "${GSC_JAR}"`
5865

5966
# Cleanup #
6067

0 commit comments

Comments
 (0)