Changeset 143 for hadoop4win-setup/my_packages
- Timestamp:
- Feb 4, 2010, 9:58:23 PM (15 years ago)
- Location:
- hadoop4win-setup/my_packages
- Files:
-
- 2 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 -
hadoop4win-setup/my_packages/hbase/bin/hbase-init
r142 r143 4 4 fi 5 5 6 tar zxvf /usr/src/hbase-0.20.3.tar.gz -C /opt 7 ln -s /opt/hbase-* /opt/hbase 6 if [ ! -f /opt/hase* ]; then 7 tar zxvf /usr/src/hbase-0.20.3.tar.gz -C /opt 8 ln -s /opt/hbase-* /opt/hbase 8 9 9 cp /opt/hadoop/conf/core-site.xml /opt/hbase/conf10 cp /opt/hadoop/conf/hdfs-site.xml /opt/hbase/conf11 cp /opt/hadoop/conf/mapred-site.xml /opt/hbase/conf10 cp /opt/hadoop/conf/core-site.xml /opt/hbase/conf 11 cp /opt/hadoop/conf/hdfs-site.xml /opt/hbase/conf 12 cp /opt/hadoop/conf/mapred-site.xml /opt/hbase/conf 12 13 13 14 cat >> /opt/hbase/conf/hbase-env.sh << EOF … … 33 34 EOF 34 35 35 echo "export PATH=/opt/hbase/bin/:\$PATH" >> /etc/profile36 echo "/bin/stop-hbase" > ~/.bash_logout37 echo "/bin/stop-hadoop" >> ~/.bash_logout38 echo "/bin/stop-hbase" > /etc/skel/.bash_logout39 echo "/bin/stop-hadoop" >> /etc/skel/.bash_logout36 echo "export PATH=/opt/hbase/bin/:\$PATH" >> /etc/profile 37 echo "/bin/stop-hbase" > ~/.bash_logout 38 echo "/bin/stop-hadoop" >> ~/.bash_logout 39 echo "/bin/stop-hbase" > /etc/skel/.bash_logout 40 echo "/bin/stop-hadoop" >> /etc/skel/.bash_logout 40 41 41 42 cat > ~/hbase-test << EOF … … 51 52 EOF 52 53 53 clear 54 echo "==========================================" 55 echo " !! NOTE !! " 56 echo " please 'source /etc/profile' to update " 57 echo " current \$PATH environment variables or " 58 echo " login again to update \$PATH variables. " 59 echo " . " 60 echo " run 'start-hbase' to start hbase daemons." 61 echo " run 'stop-hbase' to stop hbase daemons. " 62 echo " run 'hbase shell ~/hbase-test' to test " 63 echo " hbase services. " 64 echo "==========================================" 54 clear 55 echo "==========================================" 56 echo " !! NOTE !! " 57 echo " please 'source /etc/profile' to update " 58 echo " current \$PATH environment variables or " 59 echo " login again to update \$PATH variables. " 60 echo " . " 61 echo " run 'start-hbase' to start hbase daemons." 62 echo " run 'stop-hbase' to stop hbase daemons. " 63 echo " run 'hbase shell hbase-test' to test " 64 echo " hbase services. " 65 echo "==========================================" 66 67 echo " Starting HBase ....." 68 /bin/start-hbase 69 fi
Note: See TracChangeset
for help on using the changeset viewer.