1

I have set up the pyspark environment on AWS ec2 instance following this tutorial

However, when I simply test

sc = SparkContext.getOrCreate()

it keeps giving the error as follow:

error msg

I use 54.255.207.212 to connect my ec2, and after log in, the ip-address for this ec2 is 172.30.0.112.

Is there anything wrong about the configuration or the hostname? Thanks a lot in advance!

Christie Chen
  • 185
  • 1
  • 5
  • 15

1 Answers1

0

Under your security group configuration, allow all inbound traffic to the instance.

enter image description here