Changeset 241 for hadoop4win-setup/my_packages
- Timestamp:
- Apr 1, 2011, 10:29:17 PM (14 years ago)
- Location:
- hadoop4win-setup/my_packages
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/my_packages/ant/bin/ant-init
r236 r241 1 1 #!/bin/bash 2 2 if [ ! -f /usr/src/ant-*.zip ]; then 3 echo " Hbase tar ball not found at /usr/src/hbase-*.tar.gz!!"3 echo "Ant zip file is not found at /usr/src/ant-*.zip!!" 4 4 exit 5 5 fi 6 6 7 7 if [ ! -f /opt/apache-ant* ]; then 8 cd /opt/ 9 unzip /usr/src/ant-*.zip 10 ln -s /opt/apache-ant-* /opt/ant 8 unzip /usr/src/ant-*.zip -d /opt 9 mv /opt/apache-ant-* /opt/ant 11 10 echo "export PATH=/opt/ant/bin/:\$PATH" >> /etc/profile 12 11 fi -
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 -
hadoop4win-setup/my_packages/hbase/bin/hbase-init
r236 r241 7 7 if [ ! -f /opt/hase* ]; then 8 8 tar zxvf /usr/src/hbase-*.tar.gz -C /opt 9 ln -s/opt/hbase-* /opt/hbase9 mv /opt/hbase-* /opt/hbase 10 10 11 11 cp /opt/hadoop/conf/core-site.xml /opt/hbase/conf … … 18 18 export HBASE_HOME=/opt/hbase 19 19 export HBASE_MANAGES_ZK=true 20 export HBASE_PID_DIR= c:/hadoop4win/var/hadoop/pid20 export HBASE_PID_DIR=/var/hbase/pid 21 21 EOF 22 22 … … 28 28 <name>hbase.rootdir</name> 29 29 <value>hdfs://localhost:9000/hbase</value> 30 </property> 31 <property> 32 <name>hbase.tmp.dir</name> 33 <value>/var/hbase</value> 30 34 </property> 31 35 <property>
Note: See TracChangeset
for help on using the changeset viewer.