&& sed -i'/^export JAVA_HOME/ s:.*:export JAVA_HOME=/usr/lib/jvm/java-8-oracle\nexport HADOOP_PREFIX=/edx/app/hadoop/hadoop\nexport HADOOP_HOME=/edx/app/hadoop/hadoop\n:'$HADOOP_HOME/etc/hadoop/hadoop-env.sh \
&& sed -i'/^export HADOOP_CONF_DIR/ s:.*:export HADOOP_CONF_DIR=/edx/app/hadoop/hadoop/etc/hadoop/:'$HADOOP_HOME/etc/hadoop/hadoop-env.sh \
&& sed -i's#<configuration>#<configuration><property><name>fs.defaultFS</name><value>hdfs://namenode:8020</value></property>#'$HADOOP_HOME/etc/hadoop/core-site.xml \
&& sed 's#<configuration>#<configuration><property><name>mapreduce.framework.name</name><value>yarn</value></property>#'$HADOOP_HOME/etc/hadoop/mapred-site.xml.template >$HADOOP_HOME/etc/hadoop/mapred-site.xml \
&& sed -i's#<configuration>#<configuration><property><name>yarn.resourcemanager.hostname</name><value>resourcemanager</value></property>#'$HADOOP_HOME/etc/hadoop/yarn-site.xml \
&& rm -f /var/tmp/$HADOOP_DIST_FILE
# HIVE
RUN curl -fSL"$HIVE_URL"-o /var/tmp/$HIVE_DIST_FILE\