Changes between Version 18 and Version 19 of MR_manual
- Timestamp:
- Jul 11, 2008, 5:34:47 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MR_manual
v18 v19 179 179 = 四、效能測試 = 180 180 = 五、開發程式 = 181 182 * [http://trac.nchc.org.tw/cloud/browser/hadoop-eclipse.pdf 可以參考Programming hadoop in Eclipse .pdf] 183 181 184 == 5.1 install IBM !MapReduce tool == 182 185 1. Download the IBM !MapReduce Tools zip file and extract to /tmp/. [[br]] … … 200 203 set compiler compliance level to 5.0 201 204 }}} 202 * Some eclipse-plugin may exhaust much resource, you may happen to “out of 203 204 memory error”. We suggest to execute eclipse with some parameters as that : 205 * Some eclipse-plugin may exhaust much resource, you may happen to “out of memory error”. We suggest to execute eclipse with some parameters as that : 205 206 {{{ 206 207 $ eclipse -vmargs -Xmx 512m … … 217 218 > Finish 218 219 }}} 219 * at “Project explorer”, you will see “sample” tree. Now, you should 220 221 create a sample code. 220 * at “Project explorer”, you will see “sample” tree. Now, you should create a sample code. 222 221 {{{ 223 222 Eclipse … … 227 226 * the sample code is here 228 227 229 [http://trac.nchc.org.tw/cloud/attachment/wiki/hadoop-sample-code/ !WordCount.java]228 [http://trac.nchc.org.tw/cloud/attachment/wiki/hadoop-sample-code/WordCount.java] 230 229 231 230 * paste the contents to your new adding file “!WordCount.java” … … 238 237 }}} 239 238 240 * At the bottom of your window, you should have a "!MapReduce Servers" tab. 241 242 If not, see second bullet above. Switch to that tab. 243 244 * At the top right edge of the tab, you should see a little blue elephant 245 246 icons. 239 * At the bottom of your window, you should have a "!MapReduce Servers" tab. If not, see second bullet above. Switch to that tab. 240 241 * At the top right edge of the tab, you should see a little blue elephant icons. 247 242 {{{ 248 243 Eclipse … … 253 248 Username : waue 254 249 }}} 255 * If any password prompt, please input the password which you login to 256 257 local 258 259 * It should show up under a little elephant icon in the Project Explorer 260 261 (on the left side of Eclipse). 262 263 * ps : Pleast make sure your Hadoop is working on local system. If not, 264 265 please refer “session 2 Hadoop Setup” for debuging, or you can not pass 266 267 through. 268 250 * If any password prompt, please input the password which you login to local 251 252 * It should show up under a little elephant icon in the Project Explorer (on the left side of Eclipse). 253 254 * ps : Pleast make sure your Hadoop is working on local system. If not, please refer “session 2 Hadoop Setup” for debuging, or you can not pass through. 255 256 {{{ 269 257 $ cd /home/waue/workspace/hadoop/ [[br]] 270 258 $ wget http://www.gutenberg.org/etext/132/132.txt [[br]] 271 259 $ bin/hadoop dfs -mkdir input [[br]] 272 260 $ bin/hadoop dfs -ls [[br]] 273 {{{ 261 274 262 Found 1 items 275 263 /user/waue/input <dir> 2008-05-23 15:15 rwxr-xr-x 276 277 264 waue supergroup 278 265 }}} … … 288 275 * A “console” tag will show beside “!MapReduce Server” tag. 289 276 290 * While Map Reduce is running, you can visit http://localhost:50030/ to 291 292 view that Hadoop is dispatching jobs by Map Reduce. 277 * While Map Reduce is running, you can visit http://localhost:50030/ to view that Hadoop is dispatching jobs by Map Reduce. 293 278 294 279 * After finish, you can go to http://localhost:50060/ to see the result.