Changeset 232 for hadoop4win-setup/my_packages/hadoop
- Timestamp:
- Dec 22, 2010, 12:43:15 AM (14 years ago)
- Location:
- hadoop4win-setup/my_packages/hadoop
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init
r143 r232 25 25 chmod a+x `find . -name "*.exe"` 26 26 chmod a+x `find . -name "*.dll"` 27 javac -version28 27 cd /opt/hadoop 29 28 bin/hadoop namenode -format 29 source /etc/profile 30 30 /bin/start-hadoop 31 31 bin/hadoop fs -mkdir tmp -
hadoop4win-setup/my_packages/hadoop/bin/start-hadoop
r140 r232 1 1 #!/bin/bash 2 cygstart --showminnoactive /bin/bash -c /bin/start-hadoop-daemon 3 for ((i=1;i<=10;i++)); do sleep 1; printf "."; done 4 printf "\n" 5 jps 2 if [ -z "$(jps | grep NameNode)" ]; then 3 cygstart --showminnoactive /bin/bash -c /bin/start-hadoop-daemon 4 for ((i=1;i<=10;i++)); do sleep 1; printf "."; done 5 printf "\n" 6 jps 7 else 8 echo "Hadoop had already started!!" 9 jps 10 fi 11 12 echo "===============================================" 13 echo " check http://localhost:50030 for Job Status. " 14 echo " check http://localhost:50070 for HDFS status. " 15 echo "===============================================" -
hadoop4win-setup/my_packages/hadoop/bin/start-hadoop-daemon
r142 r232 1 1 #!/bin/bash 2 2 /opt/hadoop/bin/hadoop-daemon.sh start namenode 3 /opt/hadoop/bin/hadoop-daemon.sh start secondarynamenode 3 4 /opt/hadoop/bin/hadoop-daemon.sh start datanode 4 5 /opt/hadoop/bin/hadoop-daemon.sh start jobtracker -
hadoop4win-setup/my_packages/hadoop/bin/stop-hadoop
r129 r232 1 1 #!/bin/bash 2 /opt/hadoop/bin/hadoop-daemon.sh stop tasktracker 3 /opt/hadoop/bin/hadoop-daemon.sh stop jobtracker 4 /opt/hadoop/bin/hadoop-daemon.sh stop datanode 5 /opt/hadoop/bin/hadoop-daemon.sh stop namenode 2 if [ ! -z "$(jps | grep TaskTracker)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop tasktracker ; fi 3 if [ ! -z "$(jps | grep DataNode)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop datanode ; fi 4 if [ ! -z "$(jps | grep JobTracker)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop jobtracker ; fi 5 if [ ! -z "$(jps | grep SecondaryNameNode)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop secondarynamenode ; fi 6 if [ ! -z "$(jps | grep NameNode)" ]; then /opt/hadoop/bin/hadoop-daemon.sh stop namenode ; fi -
hadoop4win-setup/my_packages/hadoop/conf-examples/core-site.xml
r129 r232 9 9 <value>hdfs://localhost:9000</value> 10 10 </property> 11 <property> 12 <name>hadoop.tmp.dir</name> 13 <value>/var/hadoop</value> 14 </property> 11 15 </configuration> -
hadoop4win-setup/my_packages/hadoop/conf-examples/hdfs-site.xml
r129 r232 5 5 6 6 <configuration> 7 7 <property> 8 <name>dfs.replication</name> 9 <value>1</value> 10 </property> 8 11 </configuration>
Note: See TracChangeset
for help on using the changeset viewer.