amazon ec2 - Which core-site.xml do I add my AWS access keys to? -
I want to run spark code on EC2 against the data stored in my S3 bucket. And according to both, I need to add my AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to the core-site.xml file. However, when I open my master EC2 node, I have several core-sites. XML files appear.
$ find -name core-site.xml ./mapreduce/conf/core-site.xml./persistent-hdfs/share/hadoop/templates/conf/core-site.xml / Persistent-hdfs / src / packages / templates / conf / core-site. Xml ./persistent-hdfs/src/contrib/test/core-site.xml./persistent-hdfs/src/test/core-site.xml./persistent-hdfs/src/c++/libhdfs/ test/conf / core -site.xml ./persistent-hdfs/conf/core-site.xml./ephemeral-hdfs/share/hadoop/templates/conf/core-site.xml./hehemeral-hdfs/src/packages/templates/config/ Core-site.xml ./ephemeral-hdfs/src/contrib/test/core-site.xml./ephemeral-hdfs/src/test/core-site.xml./ephemeral-hdfs/src/ C ++ / libhdfs / Tests / conf / core-site.xml ./ephemeral-hdfs/conf/core-site.xml./spark-ec2/templates/root/mapreduce/conf/core-site.xml./spark-ec2/templates/ Root / persistent-hdfs / conf / core-site.xml ./spark-ec2/templates/root/ephemeral-hdfs/conf/core-site.xml./spark-ec2/templates/root/spark/conf / core- Site.xml ./spark/conf/core-site.xml After some experiment, I decided that I could use a s3n ur from Spark Evl s3n: like //mcneill-scratch/GR.txt if I Matret / Conf / core-site.xml and spark / conf / core-site.xml I introduce your credentials in both. It does not seem to be wrong for me, and I can not find anything in the documentation which says that you have to add your credentials to several files.
Multiple sites have to modify the correct way to set S3 credentials through core-site. ? Is there such a document anywhere that it tells?
./spark / conf / core-site Xml should be the correct location
Comments
Post a Comment