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:
-
Jun 29, 2013, 1:05:20 PM (11 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
35 | 35 | }}} |
36 | 36 | |
| 37 | * 觀察開了哪些 port,綁在哪個 IP 位址 |
| 38 | {{{ |
| 39 | ### 取得 NameNode 的 java process id |
| 40 | user@node2:~/hadoop_labs$ NN=$(jps | grep NameNode | awk '{ print $1 }') |
| 41 | ## 查詢 NameNode 開了哪些 port |
| 42 | user@node2:~/hadoop_labs$ netstat -nap | grep $NN | grep ":" | nl |
| 43 | }}} |
| 44 | |
| 45 | <問題 2> 當您下 netstat -nap | grep java 指令之後, NameNode 開了幾個 process |
| 46 | {{{ |
| 47 | #!text |
| 48 | (A) 1 |
| 49 | (B) 2 |
| 50 | (C) 3 |
| 51 | (D) 4 |
| 52 | }}} |
| 53 | |
37 | 54 | * 使用 hadoop fs -ls 指令來觀察目錄結構 |
38 | 55 | {{{ |
… |
… |
|
55 | 72 | }}} |
56 | 73 | |
57 | | < 問題 2 > 執行 hadoop fs -mkdir tmp 指令,對本機工作目錄有何影響? |
| 74 | < 問題 3 > 執行 hadoop fs -mkdir tmp 指令,對本機工作目錄有何影響? |
58 | 75 | {{{ |
59 | 76 | #!text |
… |
… |
|
71 | 88 | }}} |
72 | 89 | |
73 | | < 問題 3 > 執行 hadoop fs -put 指令,對本機工作目錄有何影響? |
| 90 | < 問題 4 > 執行 hadoop fs -put 指令,對本機工作目錄有何影響? |
74 | 91 | {{{ |
75 | 92 | #!text |
… |
… |
|
78 | 95 | }}} |
79 | 96 | |
80 | | < 問題 4 > Local Mode 與 Pseudo-Distributed Mode 對"相對路徑"的認定差異,以下哪些陳述是正確的? (複選) |
| 97 | < 問題 5 > Local Mode 與 Pseudo-Distributed Mode 對"相對路徑"的認定差異,以下哪些陳述是正確的? (複選) |
81 | 98 | {{{ |
82 | 99 | #!text |