Skip to content

Commit 1d83e71

Browse files
committed
Add requester pays configuration
1 parent 70cd242 commit 1d83e71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/thunder/utils/ec2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def install_thunder(master, opts):
6363
access, secret = get_s3_keys()
6464
filled = configstring.replace('ACCESS', access).replace('SECRET', secret)
6565
ssh(master, opts, "sed -i'f' 's,.*</configuration>.*,"+filled+"&,' /root/ephemeral-hdfs/conf/core-site.xml")
66+
# configure requester pays
67+
ssh(master, opts, "touch /root/spark/conf/jets3t.properties")
68+
ssh(master, opts, "echo 'httpclient.requester-pays-buckets-enabled = true' >> /root/spark/conf/jets3t.properties")
69+
ssh(master, opts, "~/spark-ec2/copy-dir /root/spark/conf")
6670

6771
print "\n\n"
6872
print "-------------------------------"

0 commit comments

Comments
 (0)