Skip to content

Commit

Permalink
support EMR 6.2.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
buishglc committed Jan 18, 2021
1 parent e0e2739 commit d4ca345
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions make-emr-edge-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ init() {
masterNode="$2"
chmod 600 "$pemFile"
makeYumRepo "$pemFile" "$masterNode"
yum -y install vim wget zip unzip expect tree htop iotop nc telnet lrzsz openssl-devel emrfs emr-ddb emr-goodies emr-kinesis emr-s3-select emr-scripts
yum -y install vim wget zip unzip expect tree htop iotop nc telnet lrzsz openssl-devel emrfs emr-ddb emr-goodies emr-kinesis emr-s3-select emr-scripts emr-puppet
makeHadoopUser "$pemFile"
makeDir
makeJdk
Expand Down Expand Up @@ -96,8 +96,7 @@ makeHadoopUser() {
makeYumRepo() {
pemFile="$1"
masterNode="$2"
scp -o StrictHostKeyChecking=no -i $pemFile hadoop@$masterNode:/etc/yum.repos.d/emr-apps.repo .
mv emr-apps.repo /etc/yum.repos.d/emr-apps.repo
scp -o StrictHostKeyChecking=no -i $pemFile hadoop@$masterNode:/etc/yum.repos.d/*.repo /etc/yum.repos.d/
scp -o StrictHostKeyChecking=no -i $pemFile hadoop@$masterNode:/var/aws/emr/repoPublicKey.txt .
mkdir -p /var/aws/emr/
mv repoPublicKey.txt /var/aws/emr/repoPublicKey.txt
Expand Down

0 comments on commit d4ca345

Please sign in to comment.