Changes between Version 1 and Version 2 of waue/2009/0616


Ignore:
Timestamp:
Jun 16, 2009, 6:58:21 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/0616

    v1 v2  
     1[[PageOutline]]
    12
    23 * eclipse 的hadoop-*-{core,ant,tools}.jar 這三個包的
     
    2021
    2122
     23 = hadoop 0.20 的重大改變 =
     24
     25 * 原本的 hadoop-site.xml 與 hadoop-default.xml 都不見了
     26 == *-site.xml ==
     27 * 放在 $hadoop_conf_dir 內就會被載入
     28 === core-site.xml ===
     29{{{
     30<configuration>
     31  <property>
     32    <name>fs.default.name</name>
     33    <value>hdfs://localhost:9000</value>
     34  </property>
     35</configuration>
     36}}}
     37 === hdfs-site.xml ===
     38{{{
     39<configuration>
     40  <property>
     41    <name>dfs.replication</name>
     42    <value>1</value>
     43  </property>
     44</configuration>
     45}}}
     46 === mapred-site.xml ===
     47{{{
     48<configuration>
     49  <property>
     50    <name>mapred.job.tracker</name>
     51    <value>localhost:9001</value>
     52  </property>
     53</configuration>
     54}}}
     55 == default.xml ==
     56 - 詳細的設定,被放置於src 資料夾內
     57 - 將 *-default.xml檔案與*-site.xml 放在一起就會載入其內部的設定值
     58 - 此程式說明載入設定動作:/opt/hadoop/src/core/org/apache/hadoop/conf/Configuration.java
     59 === core-default.xml ===
     60 * /opt/hadoop/src/core
     61 === hdfs-default.xml ===
     62 * /opt/hadoop/src/hdfs
     63 === mapred-default.xml ===
     64 * /opt/hadoop/src/mapred