Data Engineering Integration
- Data Engineering Integration H2L
- All Products
ipaddrOfMaster=`cat /tmp/.ClusterCreation.txt | python -c 'import sys, json; print json.load(sys.stdin)["Instances"][0]["PrivateIpAddress"]'`
echo "" >> /tmp/.emr_automation.log echo "Creating hive connection" >> /tmp/.emr_automation.log ${infa_home}/isp/bin/infacmd.sh createConnection -dn 'domain' -un 'Administrator' -pd 'Administrator' -cn 'Hive_conn_test_automation' -cid 'Hive_conn_test_automation' -ct HIVE -o "connectString=jdbc:hive2://${ipaddrOfMaster}:10000/default enableQuotes=false metadataConnString=jdbc:hive2://${ipaddrOfMaster}:10000/default bypassHiveJDBCServer=false pushDownMode=true relationalSourceAndTarget=true databaseName=default defaultFSURI=hdfs://${ipaddrOfMaster}:8020/ hiveWarehouseDirectoryOnHDFS='/user/hive/warehouse' jobTrackerURI=${ipaddrOfMaster}:8021 metastoreExecutionMode=remote remotemetastoreuri=thrift://${ipaddrOfMaster}:9083 username='hadoop'" >> /tmp/.emr_automation.log
echo "" >> /tmp/.emr_automation.log echo "Updating yarn-site.xml" >> /tmp/.emr_automation.log cp ${infa_home}/services/shared/hadoop/amazon_emr5.0.0/conf/yarn-site.xml_org ${infa_home}/services/shared/hadoop/amazon_emr5.0.0/conf/yarn-site.xml sed -i -- "s/HOSTNAME/$ipaddrOfMaster/g" ${infa_home}/services/shared/hadoop/amazon_emr5.0.0/conf/yarn-site.xml