Changeset 235


Ignore:
Timestamp:
Mar 28, 2011, 11:33:07 PM (14 years ago)
Author:
jazz
Message:
  • modified hadoop4win-setup.bat
    • change the URL of HBASE_MIRROR
    • change the version of HBASE_FILE
    • add installation of Apache ANT
  • add my_packages/ant*
    • related to Apache ANT installation
  • modified my_packages/hadoop/conf-examples/core-site.xml
    • change ${hadoop.tmp.dir} to c:/hadoop4win/var/hadoop
  • modified my_packages/hadoop/conf-examples/hadoop-env.sh
    • set HADOOP_HEAPSIZE to 256 MB
  • modified Makefile
    • change version to 0.1.4
Location:
hadoop4win-setup
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • hadoop4win-setup/Makefile

    r145 r235  
    1 VERSION=0.1.1
     1VERSION=0.1.4
    22
    33all: full net
  • hadoop4win-setup/hadoop4win-setup.bat

    r232 r235  
    1919REM ####################################################################
    2020
     21set JDK_FILE=jdk1.6.0_18.zip
     22set ANT_FILE=ant-current-bin.zip
     23set HBASE_FILE=hbase-0.20.6.tar.gz
    2124set HADOOP_FILE=hadoop-0.20.2.tar.gz
     25set JDK_MIRROR=http://www.classcloud.org/hadoop4win
     26set ANT_MIRROR=http://ftp.twaren.net/Unix/Web/apache/ant/
     27set HBASE_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hbase/hbase-0.20.6/
    2228set HADOOP_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.2
    23 set JDK_FILE=jdk1.6.0_18.zip
    24 set JDK_MIRROR=http://www.classcloud.org/hadoop4win
    25 set HBASE_FILE=hbase-0.20.4.tar.gz
    26 set HBASE_MIRROR=http://ftp.twaren.net/Unix/Web/apache/hadoop/hbase/hbase-0.20.4
    2729set CYGWIN_ROOT=C:\hadoop4win
    2830set LOCAL_REPOSITORY=%cd%
     
    3335
    3436set MY_PACKAGE=%LOCAL_REPOSITORY%\my_packages
    35 set HADOOP_SRC=%MY_PACKAGE%\hadoop\%HADOOP_FILE%
    36 set HADOOP_DES=%CYGWIN_ROOT%\usr\src
     37set ANT_SRC=%MY_PACKAGE%\ant\%ANT_FILE%
     38set ANT_DES=%CYGWIN_ROOT%\usr\src
    3739set JDK_SRC=%MY_PACKAGE%\jdk\%JDK_FILE%
    3840set JDK_DES=%CYGWIN_ROOT%\usr\src
    3941set HBASE_SRC=%MY_PACKAGE%\hbase\%HBASE_FILE%
    4042set HBASE_DES=%CYGWIN_ROOT%\usr\src
     43set HADOOP_SRC=%MY_PACKAGE%\hadoop\%HADOOP_FILE%
     44set HADOOP_DES=%CYGWIN_ROOT%\usr\src
    4145
    4246REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    112116REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    113117
    114 IF NOT EXIST "%HADOOP_SRC%" (
    115   wget "%HADOOP_MIRROR%/%HADOOP_FILE%" -O "%MY_PACKAGE%\hadoop\%HADOOP_FILE%"
     118IF NOT EXIST "%JDK_SRC%" (
     119  wget "%JDK_MIRROR%/%JDK_FILE%" -O "%MY_PACKAGE%\jdk\%JDK_FILE%"
    116120)
    117121
    118 IF NOT EXIST "%JDK_SRC%" (
    119   wget "%JDK_MIRROR%/%JDK_FILE%" -O "%MY_PACKAGE%\jdk\%JDK_FILE%"
     122IF NOT EXIST "%ANT_SRC%" (
     123  wget "%ANT_MIRROR%/%ANT_FILE%" -O "%MY_PACKAGE%\ant\%ANT_FILE%"
    120124)
    121125
     
    124128)
    125129
     130IF NOT EXIST "%HADOOP_SRC%" (
     131  wget "%HADOOP_MIRROR%/%HADOOP_FILE%" -O "%MY_PACKAGE%\hadoop\%HADOOP_FILE%"
     132)
     133
    126134IF NOT EXIST "%JDK_DES%" (
    127135  mkdir "%JDK_DES%"
     136)
     137
     138IF NOT EXIST "%ANT_DES%" (
     139  mkdir "%ANT_DES%"
     140)
     141
     142IF NOT EXIST "%HBASE_DES%" (
     143  mkdir "%HBASE_DES%"
     144)
     145
     146IF NOT EXIST "%HADOOP_DES%" (
     147  mkdir "%HADOOP_DES%"
     148)
     149
     150IF NOT EXIST "%CYGWIN_ROOT%\lib\jvm" (
     151  copy "%JDK_SRC%" "%JDK_DES%"
     152)
     153
     154IF NOT EXIST "%CYGWIN_ROOT%\opt\ant" (
     155  copy "%ANT_SRC%" "%ANT_DES%"
     156)
     157
     158IF NOT EXIST "%CYGWIN_ROOT%\opt\hbase" (
     159  copy "%HBASE_SRC%" "%HBASE_DES%"
    128160)
    129161
     
    132164)
    133165
    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 
     166copy /Y "%MY_PACKAGE%\ant\bin\*" "%CYGWIN_ROOT%\bin"
     167copy /Y "%MY_PACKAGE%\hbase\bin\*" "%CYGWIN_ROOT%\bin"
    142168copy /Y "%MY_PACKAGE%\hadoop\bin\*" "%CYGWIN_ROOT%\bin"
    143 copy /Y "%MY_PACKAGE%\hbase\bin\*" "%CYGWIN_ROOT%\bin"
    144169xcopy /Y /E /I "%MY_PACKAGE%\hadoop\conf-examples" "%HADOOP_DES%\conf-examples"
    145170
     
    151176%CYGWIN_ROOT%\bin\bash --login -c "/bin/hadoop4win-init"
    152177%CYGWIN_ROOT%\bin\bash --login -c "/bin/hbase-init"
     178%CYGWIN_ROOT%\bin\bash --login -c "/bin/ant-init"
    153179cls
    154180set PATH=%OLDPATH%
  • hadoop4win-setup/my_packages/hadoop/conf-examples/core-site.xml

    r232 r235  
    1111    <property>
    1212    <name>hadoop.tmp.dir</name>
    13     <value>/var/hadoop</value>
     13    <value>c:/hadoop4win/var/hadoop</value>
    1414    </property>
    1515</configuration>
  • hadoop4win-setup/my_packages/hadoop/conf-examples/hadoop-env.sh

    r129 r235  
    1414# The maximum amount of heap to use, in MB. Default is 1000.
    1515# export HADOOP_HEAPSIZE=2000
     16export HADOOP_HEAPSIZE=256
    1617
    1718# Extra Java runtime options.  Empty by default.
Note: See TracChangeset for help on using the changeset viewer.