Changeset 143 for hadoop4win-setup/my_packages/hadoop/bin
- Timestamp:
- Feb 4, 2010, 9:58:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init
r140 r143 2 2 mkdir -p /lib/jvm 3 3 mkdir -p /opt 4 4 5 if [ ! -x /lib/jvm/jdk* ]; then 5 6 unzip /usr/src/jdk*.zip -d /lib/jvm/ 6 7 fi 8 7 9 if [ ! -x /opt/hadoop ]; then 8 10 tar zxvf /usr/src/hadoop-*.tar.gz -C /opt/ 9 11 ln -s /opt/hadoop-* /opt/hadoop 12 cp -R /usr/src/conf-examples/ /opt/hadoop/ 13 mv /opt/hadoop/conf/ /opt/hadoop/conf-org 14 ln -s /opt/hadoop/conf-examples/ /opt/hadoop/conf 10 15 fi 11 cp -R /usr/src/conf-examples/ /opt/hadoop/ 12 mv /opt/hadoop/conf/ /opt/hadoop/conf-org 13 ln -s /opt/hadoop/conf-examples/ /opt/hadoop/conf 16 14 17 export JAVA_HOME=$(dirname /lib/jvm/jdk*/bin/) 15 18 echo export JAVA_HOME=$JAVA_HOME >> /opt/hadoop/conf/hadoop-env.sh
Note: See TracChangeset
for help on using the changeset viewer.