Changeset 143 for hadoop4win-setup/hadoop4win-setup.bat
- Timestamp:
- Feb 4, 2010, 9:58:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/hadoop4win-setup.bat
r141 r143 20 20 21 21 set HADOOP_FILE=hadoop-0.20.1.tar.gz 22 set HADOOP_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.1 /22 set HADOOP_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.1 23 23 set JDK_FILE=jdk1.6.0_18.zip 24 set JDK_MIRROR=http://tsmc.classcloud.org/ 24 set JDK_MIRROR=http://tsmc.classcloud.org 25 set HBASE_FILE=hbase-0.20.3.tar.gz 26 set HBASE_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hadoop/hbase/hbase-0.20.3 25 27 set CYGWIN_ROOT=C:\hadoop4win 26 28 set LOCAL_REPOSITORY=%cd% … … 31 33 32 34 set MY_PACKAGE=%LOCAL_REPOSITORY%\my_packages 33 set HADOOP_SRC=%MY_PACKAGE%\hadoop\ hadoop-*.gz35 set HADOOP_SRC=%MY_PACKAGE%\hadoop\%HADOOP_FILE% 34 36 set HADOOP_DES=%CYGWIN_ROOT%\usr\src 35 set JDK_SRC=%MY_PACKAGE%\jdk\ jdk*.zip37 set JDK_SRC=%MY_PACKAGE%\jdk\%JDK_FILE% 36 38 set JDK_DES=%CYGWIN_ROOT%\usr\src 39 set HBASE_SRC=%MY_PACKAGE%\hbase\%HBASE_FILE% 40 set HBASE_DES=%CYGWIN_ROOT%\usr\src 37 41 38 42 REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - … … 101 105 REM real do cygwin installation 102 106 103 "%CYGWIN_SETUP%" -q -d -L -l "%LOCAL_REPOSITORY%\cygwin_mirror" -R "%CYGWIN_ROOT%" -P cygrunsrv,file,openssh,perl,procps,ncurses,rsync,sharutils,shutdown,subversion,tcp_wrappers,termcap,unzip,wget,zip,zlib 107 IF NOT EXIST "%CYGWIN_ROOT%" ( 108 "%CYGWIN_SETUP%" -q -d -L -l "%LOCAL_REPOSITORY%\cygwin_mirror" -R "%CYGWIN_ROOT%" -P cygrunsrv,file,openssh,perl,procps,ncurses,rsync,sharutils,shutdown,subversion,tcp_wrappers,termcap,unzip,wget,zip,zlib 109 ) 104 110 105 111 REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - … … 115 121 ) 116 122 123 IF NOT EXIST "%HBASE_SRC%" ( 124 wget "%HBASE_MIRROR%/%HBASE_FILE%" -O "%MY_PACKAGE%\hbase\%HBASE_FILE%" 125 ) 126 127 pause 128 117 129 IF NOT EXIST "%JDK_DES%" ( 118 130 mkdir "%JDK_DES%" … … 125 137 IF NOT EXIST "%CYGWIN_ROOT%\lib\jvm" ( 126 138 copy "%JDK_SRC%" "%JDK_DES%" 139 ) 140 141 IF NOT EXIST "%CYGWIN_ROOT%\opt\hbase" ( 142 copy "%HBASE_SRC%" "%HBASE_DES%" 127 143 ) 128 144 … … 139 155 cls 140 156 echo "=====================================================" 141 echo " Use `start-hadoop' and `stop-hadoop' to run single "142 echo " machine hadoop configuration. "143 echo " . "157 echo " Use `start-hadoop' and `stop-hadoop' to run single " 158 echo " machine hadoop configuration. " 159 echo " . " 144 160 echo " Use `jps' to check java process for troubleshooting." 161 echo " . " 162 echo " Use `hbase-init' to install single machine HBase . " 145 163 echo "=====================================================" 146 164 set PATH=%OLDPATH%
Note: See TracChangeset
for help on using the changeset viewer.