| 131 | | $ for ((i=1;i<=50;i++)); do printf "10.131.33.$i G300-P%02d\n" $i; done >> /etc/hosts |
| | 131 | rm -rf /cygdrive/c/var/hadoop/hadoop-chtti/dfs/data/ |
| | 132 | rm /opt/hadoop/conf |
| | 133 | for ((i=1;i<=50;i++)); do printf "10.131.33.$i G300-P%02d\n" $i; done >> /etc/hosts |
| | 134 | cp /opt/hadoop/conf-pseudo /opt/hadoop/conf-full |
| | 135 | echo > /opt/hadoop/conf-full/core-site.xml << EOF |
| | 136 | <?xml version="1.0"?> |
| | 137 | <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> |
| | 138 | <configuration> |
| | 139 | <property> |
| | 140 | <name>fs.default.name</name> |
| | 141 | <value>hdfs://10.131.33.22:9000</value> |
| | 142 | </property> |
| | 143 | <property> |
| | 144 | <name>hadoop.tmp.dir</name> |
| | 145 | <value>/var/hadoop/hadoop-${user.name}</value> |
| | 146 | </property> |
| | 147 | </configuration> |
| | 148 | EOF |
| | 149 | echo > /opt/hadoop/conf-full/mapred-site.xml << EOF |
| | 150 | <?xml version="1.0"?> |
| | 151 | <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> |
| | 152 | <configuration> |
| | 153 | <property> |
| | 154 | <name>mapred.job.tracker</name> |
| | 155 | <value>10.131.33.22:9001</value> |
| | 156 | </property> |
| | 157 | </configuration> |
| | 158 | EOF |
| | 159 | ln -s /opt/hadoop/conf-full /opt/hadoop/conf |
| | 160 | /opt/hadoop/bin/hadoop-daemon.sh start datanode |
| | 161 | /opt/hadoop/bin/hadoop-daemon.sh start tasktracker |