瀏覽代碼

HADOOP-1568. Expose HDFS as a xml/http filesystem.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@564803 13f79535-47bb-0310-9956-ffa450edef68
Owen O'Malley 17 年之前
父節點
當前提交
8f7a488269
共有 4 個文件被更改,包括 10 次插入0 次删除
  1. 3 0
      CHANGES.txt
  2. 5 0
      conf/hadoop-default.xml
  3. 二進制
      lib/xmlenc-0.52.jar
  4. 2 0
      src/java/org/apache/hadoop/dfs/FSNamesystem.java

+ 3 - 0
CHANGES.txt

@@ -509,6 +509,9 @@ Branch 0.14 (unreleased changes)
 149. HADOOP-71.  Allow Text and SequenceFile Map/Reduce inputs from non-default 
      filesystems. (omalley)
 
+150. HADOOP-1568.  Expose HDFS as xml/http filesystem to provide cross-version
+     compatability. (Chris Douglas via omalley)
+
 Release 0.13.0 - 2007-06-08
 
  1. HADOOP-1047.  Fix TestReplication to succeed more reliably.

+ 5 - 0
conf/hadoop-default.xml

@@ -144,6 +144,11 @@ creations/deletions), or "all".</description>
   <description>The FileSystem for s3: uris.</description>
 </property>
 
+<property>
+  <name>fs.hftp.impl</name>
+  <value>org.apache.hadoop.dfs.HftpFileSystem</value>
+</property>
+
 <property>
   <name>fs.ramfs.impl</name>
   <value>org.apache.hadoop.fs.InMemoryFileSystem</value>

二進制
lib/xmlenc-0.52.jar


+ 2 - 0
src/java/org/apache/hadoop/dfs/FSNamesystem.java

@@ -240,6 +240,8 @@ class FSNamesystem implements FSConstants {
     this.infoServer.setAttribute("name.conf", conf);
     this.infoServer.addServlet("fsck", "/fsck", FsckServlet.class);
     this.infoServer.addServlet("getimage", "/getimage", GetImageServlet.class);
+    this.infoServer.addServlet("listPaths", "/listPaths/*", ListPathsServlet.class);
+    this.infoServer.addServlet("data", "/data/*", FileDataServlet.class);
     this.infoServer.start();
         
     // The web-server port can be ephemeral... ensure we have the correct info