close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Aug 15, 2012, 1:29:01 PM (12 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v3
|
v4
|
|
126 | 126 | * 中華電信 hicloud 帳務 - 02-23445568 |
127 | 127 | |
128 | | = 建立 /etc/hosts = |
| 128 | = 串聯多台 Hadoop4Win = |
129 | 129 | |
130 | 130 | {{{ |
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 |
132 | 162 | }}} |