Changeset 232 for hadoop4win-setup/my_packages/hbase/bin/hbase-init
- Timestamp:
- Dec 22, 2010, 12:43:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/my_packages/hbase/bin/hbase-init
r143 r232 1 1 #!/bin/bash 2 if [ ! -f /usr/src/hbase-0.20.3.tar.gz ]; then 3 wget http://ftp.twaren.net/Unix/Web/apache/hadoop/hbase/hbase-0.20.3/hbase-0.20.3.tar.gz -O /usr/src/hbase-0.20.3.tar.gz 2 if [ ! -f /usr/src/hbase-*.tar.gz ]; then 3 echo "Hbase tar ball not found at /usr/src/hbase-*.tar.gz!!" 4 exit 4 5 fi 5 6 6 7 if [ ! -f /opt/hase* ]; then 7 tar zxvf /usr/src/hbase- 0.20.3.tar.gz -C /opt8 tar zxvf /usr/src/hbase-*.tar.gz -C /opt 8 9 ln -s /opt/hbase-* /opt/hbase 9 10 … … 52 53 EOF 53 54 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 "==========================================" 55 cat >> /etc/profile << EOF 56 echo "============================================" 57 echo " Use 'start-hadoop' to start hadoop daemons." 58 echo " Use 'start-hadoop' to stop hadoop daemons." 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 " ." 65 echo " Use 'jps' to check java process for " 66 echo " troubleshooting. " 67 echo "============================================" 68 EOF 66 69 67 70 echo " Starting HBase ....."
Note: See TracChangeset
for help on using the changeset viewer.