Changes between Version 5 and Version 6 of Hadoop_Lab1
- Timestamp:
- Apr 26, 2010, 5:29:01 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hadoop_Lab1
v5 v6 93 93 94 94 * 第二個設定檔是 '''hadoop-site.xml''',由於官方所提供的範例並無法直接執行,因此我們參考[http://hadoop.apache.org/core/docs/r0.20.2/quickstart.html 線上文件],做了以下的修改。 95 96 {{{ 97 /opt/hadoop$ cat > conf/ hadoop-site.xml << EOF95 96 {{{ 97 /opt/hadoop$ cat > conf/core-site.xml << EOF 98 98 }}} 99 99 … … 106 106 <name>fs.default.name</name> 107 107 <value>hdfs://localhost:9000</value> 108 <description> default file system for NDFS </description> 109 </property> 108 </property> 109 <property> 110 <name>hadoop.tmp.dir</name> 111 <value>/tmp/hadoop/hadoop-${user.name}</value> 112 </property> 113 </configuration> 114 115 EOF 116 }}} 117 118 119 {{{ 120 /opt/hadoop$ cat > conf/hdfs-site.xml << EOF 121 }}} 122 123 貼上以下內容 124 125 {{{ 126 #!sh 127 <configuration> 128 <property> 129 <name>dfs.replication</name> 130 <value>1</value> 131 </property> 132 </configuration> 133 EOF 134 }}} 135 136 137 {{{ 138 /opt/hadoop$ cat > conf/mapred-site.xml << EOF 139 }}} 140 141 貼上以下內容 142 143 {{{ 144 #!sh 145 <configuration> 110 146 <property> 111 147 <name>mapred.job.tracker</name> 112 148 <value>localhost:9001</value> 113 <description>The host:port that job tracker runs at.</description>114 149 </property> 115 150 </configuration> 116 151 EOF 117 152 }}} 118 119 153 120 154 == step 6. 格式化HDFS == … … 135 169 STARTUP_MSG: args = [-format] 136 170 STARTUP_MSG: version = 0.20.2 137 STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0. 18-r 736250; compiled by 'ndaley' on Thu Jan 22 23:12:08 UTC 2009171 STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20 -r 736250; compiled by 'ndaley' on Thu Jan 22 23:12:08 UTC 2009 138 172 ************************************************************/ 139 173 09/03/23 20:19:47 INFO fs.FSNamesystem: fsOwner=hadooper,hadooper