I am trying to run spark-ec2-branch-2 script for creating a cluster in Ohio. I need to create a cluster in Ohio because Ohio is one of the regions that allows VPC peering.
./spark-ec2 --key-pair=ohio --identity-file=ohio.pem
--region=us-east-2 --zone=us-east-2c --vpc-id=vpc-1906ca71 --subnet-id=subnet-26e2ae6b
--instance-type=t2.micro -s 1 launch ohio_cluster
I have set up a cluster in other regions using the similar script. As far as I know ohio is us-east-2 (link). But I am getting the following error:
Setting up security groups...
Traceback (most recent call last):
File "./spark_ec2.py", line 1573, in <module>
main()
File "./spark_ec2.py", line 1565, in main
real_main()
File "./spark_ec2.py", line 1394, in real_main
(master_nodes, slave_nodes) = launch_cluster(conn, opts, cluster_name)
File "./spark_ec2.py", line 523, in launch_cluster
master_group = get_or_make_group(conn, cluster_name + "-master",
opts.vpc_id)
File "./spark_ec2.py", line 371, in get_or_make_group
groups = conn.get_all_security_groups()
AttributeError: 'NoneType' object has no attribute 'get_all_security_groups'
I guess the script cannot set up a connection in this region, or cannot find this region. But I am failing to understand why. In any case, if anyone can guide and help me to setup a spark cluster using script in Ohio region I will be very grateful. Thanks in advance.