Changeset 241 for hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init
- Timestamp:
- Apr 1, 2011, 10:29:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init
r236 r241 4 4 5 5 if [ ! -x /lib/jvm/jdk* ]; then 6 echo "Installing Sun JDK ...." 6 7 unzip /usr/src/jdk*.zip -d /lib/jvm/ 7 8 fi 8 9 9 10 if [ ! -x /opt/hadoop ]; then 11 echo "Installing Hadoop ...." 10 12 tar zxvf /usr/src/hadoop-*.tar.gz -C /opt/ 11 ln -s/opt/hadoop-* /opt/hadoop12 cp -R /usr/src/conf-examples/ /opt/hadoop/ 13 mv /opt/hadoop/conf/ /opt/hadoop/conf- org14 ln -s /opt/hadoop/conf- examples//opt/hadoop/conf13 mv /opt/hadoop-* /opt/hadoop 14 cp -R /usr/src/conf-examples/ /opt/hadoop/conf-pseudo 15 mv /opt/hadoop/conf/ /opt/hadoop/conf-local 16 ln -s /opt/hadoop/conf-pseudo /opt/hadoop/conf 15 17 fi 16 18 … … 29 31 source /etc/profile 30 32 /bin/start-hadoop 33 sleep 10 34 /opt/hadoop/bin/hadoop dfsadmin -safemode leave 31 35 /opt/hadoop/bin/hadoop fs -mkdir tmp 32 36 echo "/bin/stop-hadoop" > ~/.bash_logout
Note: See TracChangeset
for help on using the changeset viewer.