Changeset 235
- Timestamp:
- Mar 28, 2011, 11:33:07 PM (14 years ago)
- Location:
- hadoop4win-setup
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/Makefile
r145 r235 1 VERSION=0.1. 11 VERSION=0.1.4 2 2 3 3 all: full net -
hadoop4win-setup/hadoop4win-setup.bat
r232 r235 19 19 REM #################################################################### 20 20 21 set JDK_FILE=jdk1.6.0_18.zip 22 set ANT_FILE=ant-current-bin.zip 23 set HBASE_FILE=hbase-0.20.6.tar.gz 21 24 set HADOOP_FILE=hadoop-0.20.2.tar.gz 25 set JDK_MIRROR=http://www.classcloud.org/hadoop4win 26 set ANT_MIRROR=http://ftp.twaren.net/Unix/Web/apache/ant/ 27 set HBASE_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hbase/hbase-0.20.6/ 22 28 set HADOOP_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.2 23 set JDK_FILE=jdk1.6.0_18.zip24 set JDK_MIRROR=http://www.classcloud.org/hadoop4win25 set HBASE_FILE=hbase-0.20.4.tar.gz26 set HBASE_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hadoop/hbase/hbase-0.20.427 29 set CYGWIN_ROOT=C:\hadoop4win 28 30 set LOCAL_REPOSITORY=%cd% … … 33 35 34 36 set MY_PACKAGE=%LOCAL_REPOSITORY%\my_packages 35 set HADOOP_SRC=%MY_PACKAGE%\hadoop\%HADOOP_FILE%36 set HADOOP_DES=%CYGWIN_ROOT%\usr\src37 set ANT_SRC=%MY_PACKAGE%\ant\%ANT_FILE% 38 set ANT_DES=%CYGWIN_ROOT%\usr\src 37 39 set JDK_SRC=%MY_PACKAGE%\jdk\%JDK_FILE% 38 40 set JDK_DES=%CYGWIN_ROOT%\usr\src 39 41 set HBASE_SRC=%MY_PACKAGE%\hbase\%HBASE_FILE% 40 42 set HBASE_DES=%CYGWIN_ROOT%\usr\src 43 set HADOOP_SRC=%MY_PACKAGE%\hadoop\%HADOOP_FILE% 44 set HADOOP_DES=%CYGWIN_ROOT%\usr\src 41 45 42 46 REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - … … 112 116 REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 113 117 114 IF NOT EXIST "% HADOOP_SRC%" (115 wget "% HADOOP_MIRROR%/%HADOOP_FILE%" -O "%MY_PACKAGE%\hadoop\%HADOOP_FILE%"118 IF NOT EXIST "%JDK_SRC%" ( 119 wget "%JDK_MIRROR%/%JDK_FILE%" -O "%MY_PACKAGE%\jdk\%JDK_FILE%" 116 120 ) 117 121 118 IF NOT EXIST "% JDK_SRC%" (119 wget "% JDK_MIRROR%/%JDK_FILE%" -O "%MY_PACKAGE%\jdk\%JDK_FILE%"122 IF NOT EXIST "%ANT_SRC%" ( 123 wget "%ANT_MIRROR%/%ANT_FILE%" -O "%MY_PACKAGE%\ant\%ANT_FILE%" 120 124 ) 121 125 … … 124 128 ) 125 129 130 IF NOT EXIST "%HADOOP_SRC%" ( 131 wget "%HADOOP_MIRROR%/%HADOOP_FILE%" -O "%MY_PACKAGE%\hadoop\%HADOOP_FILE%" 132 ) 133 126 134 IF NOT EXIST "%JDK_DES%" ( 127 135 mkdir "%JDK_DES%" 136 ) 137 138 IF NOT EXIST "%ANT_DES%" ( 139 mkdir "%ANT_DES%" 140 ) 141 142 IF NOT EXIST "%HBASE_DES%" ( 143 mkdir "%HBASE_DES%" 144 ) 145 146 IF NOT EXIST "%HADOOP_DES%" ( 147 mkdir "%HADOOP_DES%" 148 ) 149 150 IF NOT EXIST "%CYGWIN_ROOT%\lib\jvm" ( 151 copy "%JDK_SRC%" "%JDK_DES%" 152 ) 153 154 IF NOT EXIST "%CYGWIN_ROOT%\opt\ant" ( 155 copy "%ANT_SRC%" "%ANT_DES%" 156 ) 157 158 IF NOT EXIST "%CYGWIN_ROOT%\opt\hbase" ( 159 copy "%HBASE_SRC%" "%HBASE_DES%" 128 160 ) 129 161 … … 132 164 ) 133 165 134 IF NOT EXIST "%CYGWIN_ROOT%\lib\jvm" ( 135 copy "%JDK_SRC%" "%JDK_DES%" 136 ) 137 138 IF NOT EXIST "%CYGWIN_ROOT%\opt\hbase" ( 139 copy "%HBASE_SRC%" "%HBASE_DES%" 140 ) 141 166 copy /Y "%MY_PACKAGE%\ant\bin\*" "%CYGWIN_ROOT%\bin" 167 copy /Y "%MY_PACKAGE%\hbase\bin\*" "%CYGWIN_ROOT%\bin" 142 168 copy /Y "%MY_PACKAGE%\hadoop\bin\*" "%CYGWIN_ROOT%\bin" 143 copy /Y "%MY_PACKAGE%\hbase\bin\*" "%CYGWIN_ROOT%\bin"144 169 xcopy /Y /E /I "%MY_PACKAGE%\hadoop\conf-examples" "%HADOOP_DES%\conf-examples" 145 170 … … 151 176 %CYGWIN_ROOT%\bin\bash --login -c "/bin/hadoop4win-init" 152 177 %CYGWIN_ROOT%\bin\bash --login -c "/bin/hbase-init" 178 %CYGWIN_ROOT%\bin\bash --login -c "/bin/ant-init" 153 179 cls 154 180 set PATH=%OLDPATH% -
hadoop4win-setup/my_packages/hadoop/conf-examples/core-site.xml
r232 r235 11 11 <property> 12 12 <name>hadoop.tmp.dir</name> 13 <value> /var/hadoop</value>13 <value>c:/hadoop4win/var/hadoop</value> 14 14 </property> 15 15 </configuration> -
hadoop4win-setup/my_packages/hadoop/conf-examples/hadoop-env.sh
r129 r235 14 14 # The maximum amount of heap to use, in MB. Default is 1000. 15 15 # export HADOOP_HEAPSIZE=2000 16 export HADOOP_HEAPSIZE=256 16 17 17 18 # Extra Java runtime options. Empty by default.
Note: See TracChangeset
for help on using the changeset viewer.