Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. ```
  2. _REGION='ap-northeast-1'
  3. _ZONE='ap-northeast-1b'
  4. _VERSION='1.4.0'
  5. _MASTER_INSTANCE_TYPE='r3.large'
  6. _SLAVE_INSTANCE_TYPE='r3.8xlarge'
  7. _SLAVES=5
  8. _PRICE=1.0
  9. _CLUSTER_NAME="spark-cluster-v${_VERSION}-${_SLAVE_INSTANCE_TYPE}x${_SLAVES}"
  10.  
  11. ./spark-ec2 -k "yu_ishikawa@recruit" -i ~/.ec2/yu_ishikawarecruit.pem -s $_SLAVES --master-instance-type="$_MASTER_INSTANCE_TYPE" --instance-type="$_SLAVE_INSTANCE_TYPE" --region="$_REGION" --zone="$_ZONE" --spot-price=$_PRICE --spark-version="${_VERSION}" --hadoop-major-version=2 launch "$_CLUSTER_NAME"
  12. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement