|
[
Permlink
| « Hide
]
Doug Cutting added a comment - 25/Nov/08 10:05 PM
It seems to me that the output directory should somewhere be normalized by calling FileSystem#makeQualified() on it, so that it's of the form "hdfs://localhost/out/".
I wrote a test. It showed that FileSystem#makeQualified() did not remove the default port# even if the input path contains the default port #.
Here's a patch that changes DistributedFileSystem#makeQualified() to remove the default port if it's specified. Does that fix things for you?
Doug Cutting made changes - 25/Nov/08 11:45 PM
Nigel Daley made changes - 01/Dec/08 07:13 PM
Nigel Daley made changes - 01/Dec/08 07:13 PM
Hairong Kuang made changes - 01/Dec/08 09:40 PM
Yes, it works as long as we also fix
Hairong Kuang made changes - 02/Dec/08 07:53 AM
I understand that
575 URI relativePath = taskOutputPath.toUri().relativize(taskOutput.toUri()); doesn't return a relativePath? In addition to Doug's change, this patch
1. throws IOException if relativitize fails as Koji suggested; 2. add a unit test to make sure a map/reduce job with output path containing no port works.
Hairong Kuang made changes - 04/Dec/08 01:29 AM
This new patch makes two changes in my newly added unit test:
1. When dfs cluster fails to start because of server binding exception, log the error and skip the test; 2. The map/reduce job has a output path that includes the default NameNode port#.
Hairong Kuang made changes - 04/Dec/08 08:16 PM
Ant test-core succeeded:
BUILD SUCCESSFUL Total time: 113 minutes 54 seconds Ant test-patch succeeded: [exec] +1 @author. The patch does not contain any @author tags. [exec] +1 tests included. The patch appears to include 3 new or modified tests. [exec] +1 javadoc. The javadoc tool did not generate any warning messages. [exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings. [exec] +1 findbugs. The patch does not introduce any new Findbugs warnings. [exec] +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
Hairong Kuang made changes - 05/Dec/08 08:00 PM
Integrated in Hadoop-trunk #680 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/680/
Nigel Daley made changes - 30/Jan/09 08:14 PM
Owen O'Malley made changes - 08/Jul/09 04:43 PM
Koji Noguchi made changes - 07/Aug/09 08:01 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||