Changeset 139 for hadoop4win-setup


Ignore:
Timestamp:
Feb 3, 2010, 9:24:37 PM (14 years ago)
Author:
jazz
Message:

use bash -c to run hadoop4win-init script
create default HDFS tmp folder for current user

Location:
hadoop4win-setup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hadoop4win-setup/hadoop4win-setup.bat

    r136 r139  
    2626set LOCAL_REPOSITORY=%cd%
    2727set CYGWIN_SETUP=%LOCAL_REPOSITORY%\cygwin_mirror\cyg-setup.exe
     28set OLDPATH=%PATH%
    2829set PATH=%PATH%;%cd%\bin
    2930set CYGWIN=nodosfilewarning
     
    8384echo %LOCAL_REPOSITORY% > "%CYGWIN_ROOT%\etc\setup\last-cache"
    8485echo cygwin_mirror > "%CYGWIN_ROOT%\etc\setup\last-mirror"
     86echo "" > "%CYGWIN_ROOT%\etc\setup\setup.rc"
     87echo "" > "%CYGWIN_ROOT%\etc\setup\net-method"
     88echo "" > "%CYGWIN_ROOT%\etc\setup\net-proxy-host"
     89echo "" > "%CYGWIN_ROOT%\etc\setup\net-proxy-port"
     90echo "" > "%CYGWIN_ROOT%\etc\setup\extrakeys"
     91echo "" > "%CYGWIN_ROOT%\etc\setup\chooser_window_settings"
     92echo "" > "%CYGWIN_ROOT%\etc\setup\installed.db"
     93echo "" > "%CYGWIN_ROOT%\etc\setup\timestamp"
    8594
    8695REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    123132cls
    124133echo "====================================================="
    125 echo " Please run `hadoop4win-init' to extract Hadoop and"
    126 echo " JDK to proper PATH. It will format HDFS Namenode, too."
    127 echo " ."
     134echo " run `hadoop4win-init' to extract Hadoop and JDK to "
     135echo " proper PATH. It will format HDFS Namenode, too."
     136echo "=====================================================" 
     137%CYGWIN_ROOT%\bin\bash --login -c "/bin/hadoop4win-init"
     138cls
     139echo "====================================================="
    128140echo " Use `start-hadoop' and `stop-hadoop' to run single"
    129141echo " machine hadoop configuration."
    130142echo " ."
    131143echo " Use `jps' to check java process for troubleshooting."
    132 echo "====================================================="
    133  
     144echo "=====================================================" 
     145set PATH=%OLDPATH%
    134146CALL "%CYGWIN_ROOT%\Cygwin.bat"
  • hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init

    r138 r139  
    2424cd /opt/hadoop
    2525bin/hadoop namenode -format
    26 bin/hadoop fs -mkdir tmp
    27 echo "Press any key to start HDFS and MapReduce Scheduler ..."
    28 read
    2926/opt/hadoop/bin/hadoop-daemon.sh start namenode
    3027/opt/hadoop/bin/hadoop-daemon.sh start datanode
     
    3330cygstart http://localhost:50070
    3431cygstart http://localhost:50030
     32bin/hadoop fs -mkdir tmp
     33exit
Note: See TracChangeset for help on using the changeset viewer.