Changeset 139
- Timestamp:
- Feb 3, 2010, 9:24:37 PM (15 years ago)
- Location:
- hadoop4win-setup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/hadoop4win-setup.bat
r136 r139 26 26 set LOCAL_REPOSITORY=%cd% 27 27 set CYGWIN_SETUP=%LOCAL_REPOSITORY%\cygwin_mirror\cyg-setup.exe 28 set OLDPATH=%PATH% 28 29 set PATH=%PATH%;%cd%\bin 29 30 set CYGWIN=nodosfilewarning … … 83 84 echo %LOCAL_REPOSITORY% > "%CYGWIN_ROOT%\etc\setup\last-cache" 84 85 echo cygwin_mirror > "%CYGWIN_ROOT%\etc\setup\last-mirror" 86 echo "" > "%CYGWIN_ROOT%\etc\setup\setup.rc" 87 echo "" > "%CYGWIN_ROOT%\etc\setup\net-method" 88 echo "" > "%CYGWIN_ROOT%\etc\setup\net-proxy-host" 89 echo "" > "%CYGWIN_ROOT%\etc\setup\net-proxy-port" 90 echo "" > "%CYGWIN_ROOT%\etc\setup\extrakeys" 91 echo "" > "%CYGWIN_ROOT%\etc\setup\chooser_window_settings" 92 echo "" > "%CYGWIN_ROOT%\etc\setup\installed.db" 93 echo "" > "%CYGWIN_ROOT%\etc\setup\timestamp" 85 94 86 95 REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - … … 123 132 cls 124 133 echo "=====================================================" 125 echo " Please run `hadoop4win-init' to extract Hadoop and" 126 echo " JDK to proper PATH. It will format HDFS Namenode, too." 127 echo " ." 134 echo " run `hadoop4win-init' to extract Hadoop and JDK to " 135 echo " proper PATH. It will format HDFS Namenode, too." 136 echo "=====================================================" 137 %CYGWIN_ROOT%\bin\bash --login -c "/bin/hadoop4win-init" 138 cls 139 echo "=====================================================" 128 140 echo " Use `start-hadoop' and `stop-hadoop' to run single" 129 141 echo " machine hadoop configuration." 130 142 echo " ." 131 143 echo " Use `jps' to check java process for troubleshooting." 132 echo "=====================================================" 133 144 echo "=====================================================" 145 set PATH=%OLDPATH% 134 146 CALL "%CYGWIN_ROOT%\Cygwin.bat" -
hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init
r138 r139 24 24 cd /opt/hadoop 25 25 bin/hadoop namenode -format 26 bin/hadoop fs -mkdir tmp27 echo "Press any key to start HDFS and MapReduce Scheduler ..."28 read29 26 /opt/hadoop/bin/hadoop-daemon.sh start namenode 30 27 /opt/hadoop/bin/hadoop-daemon.sh start datanode … … 33 30 cygstart http://localhost:50070 34 31 cygstart http://localhost:50030 32 bin/hadoop fs -mkdir tmp 33 exit
Note: See TracChangeset
for help on using the changeset viewer.