I have a spark cluster launched using spark-ec2 script. (EDIT: after login into the master), I can run spark jobs locally on the master node as :
spark-submit --class myApp --master local myApp.jar
But I can't seem to run the job in the cluster mode:
../spark/bin/spark-submit --class myApp --master spark://54.111.111.111:7077 --deploy-mode cluster myApp.jar
The ip address of the master is obtained from the AWS console. I get the following errors:
WARN RestSubmissionClient: Unable to connect to server
Warning: Master endpoint spark://54.111.111.111:7077 was not a REST server. Falling back to legacy submission gateway instead.
Error connecting to master (akka.tcp://[email protected]:7077).
Cause was: akka.remote.InvalidAssociation: Invalid address: akka.tcp://[email protected]:7077
No master is available, exiting.
How to submit to a EC2 spark cluster ?