Author: eli Date: Tue Nov 16 18:28:07 2010 New Revision: 1035728 URL: http://svn.apache.org/viewvc?rev=1035728&view=rev Log: HDFS-908. TestDistributedFileSystem fails with Wrong FS on weird hosts. Contributed by Todd Lipcon
Modified: hadoop/common/branches/branch-0.20/CHANGES.txt hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/TestDistributedFileSystem.java Modified: hadoop/common/branches/branch-0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20/CHANGES.txt?rev=1035728&r1=1035727&r2=1035728&view=diff ============================================================================== --- hadoop/common/branches/branch-0.20/CHANGES.txt (original) +++ hadoop/common/branches/branch-0.20/CHANGES.txt Tue Nov 16 18:28:07 2010 @@ -67,6 +67,9 @@ Release 0.20.3 - Unreleased HDFS-727. bug setting block size hdfsOpenFile (Eli Collins via cos) + HDFS-908. TestDistributedFileSystem fails with Wrong FS on weird hosts. + (Todd Lipcon via eli) + IMPROVEMENTS MAPREDUCE-1407. Update javadoc in mapreduce.{Mapper,Reducer} to match Modified: hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/TestDistributedFileSystem.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/TestDistributedFileSystem.java?rev=1035728&r1=1035727&r2=1035728&view=diff ============================================================================== --- hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/TestDistributedFileSystem.java (original) +++ hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/TestDistributedFileSystem.java Tue Nov 16 18:28:07 2010 @@ -130,9 +130,12 @@ public class TestDistributedFileSystem e final MiniDFSCluster cluster = new MiniDFSCluster(conf, 2, true, null); final FileSystem hdfs = cluster.getFileSystem(); - final String hftpuri = "hftp://" + conf.get("dfs.http.address"); + + String hftpuri = "hftp://" + conf.get("dfs.http.address"); + System.out.println("hftpuri=" + hftpuri); final FileSystem hftp = new Path(hftpuri).getFileSystem(conf); + hftpuri = hftp.getUri().toString(); final String dir = "/filechecksum"; final int block_size = 1024;