Changes between Version 5 and Version 6 of Hinet130923/Lab5
- Timestamp:
- Sep 23, 2013, 4:59:15 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hinet130923/Lab5
v5 v6 23 23 * 接著,讓我們用指令 file 來查出這個 hadoop 指令是什麼格式。 24 24 {{{ 25 user@node 50:~/hadoop_labs$ file `which hadoop`25 user@node1:~/hadoop_labs$ file `which hadoop` 26 26 /home/user/hadoop/bin/hadoop: a bash script, ASCII text executable 27 27 }}} … … 29 29 * 現在我們知道它是 bash script,那如何針對 bash script 進行除錯呢?我們可以用 bash -x 參數來進行除錯! 30 30 {{{ 31 user@node 50:~/hadoop_labs$ bash -x `which hadoop` fs -ls31 user@node1:~/hadoop_labs$ bash -x `which hadoop` fs -ls 32 32 .... 略 .... 33 33 adoop/libexec/../lib/slf4j-api-1.4.3.jar:/home/user/hadoop/libexec/../lib/slf4j-log4j12-1.4.3.jar:/home/user/hadoop/libex … … 43 43 * 讓我們來看一下其他的 hadoop 指令是使用哪個 Java Class 44 44 {{{ 45 user@node 50:~/hadoop_labs$ bash -x `which hadoop` jar46 user@node 50:~/hadoop_labs$ bash -x `which hadoop` fsck45 user@node1:~/hadoop_labs$ bash -x `which hadoop` jar 46 user@node1:~/hadoop_labs$ bash -x `which hadoop` fsck 47 47 }}} 48 48