Usage/Deployment Instructions
1. Access the SparkMLlib in Google Marketplace and click the LAUNCH ON COMPUTE ENGINE button.

2. In the Configure & Deploy window, enter or select appropriate values for zone, machine type, and so on. Click the Deploy button.

3. The Google Developers Console confirms that SparkMLlib was deployed

To access SparkMLlib on external ip edit your firewall rule and open port 4040.


Now to Start SparkMLlib,
Step 1: Open 8080 Ports in the instance.
Step 2: Do SSH
$ sudo su
$ nano /etc/nginx/sites-available/spark.conf
Edit the configuration file and add your Public IP at the place of highlighted IP.

Save and close the file when you are finished.
$ systemctl restart nginx
$ cd /
$ cd /opt/spark
Run command to start
$ start-master.sh
Run command to stop
$ stop-master.sh

$ss-tunelp | grep 8080

Run command to start
$start-slave.sh
Run command to stop
$ stop-slave.sh

$ spark-shell

Step 2: Now Use the browser to access the application at http://<instance ip address> replace <instance ip address> with the actual IP address of the running instance.
