MAPREDUCE-4307. TeraInputFormat calls FileSystem.getDefaultBlockSize() without a Path - Failure when using ViewFileSystem. Contributed by Ahmed Radwan

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1345546 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-06-02 18:47:40 +00:00
parent 2db30031d2
commit 18ba716922
2 changed files with 4 additions and 1 deletions

View File

@ -157,6 +157,9 @@ Release 2.0.1-alpha - UNRELEASED
MAPREDUCE-3493. Add the default mapreduce.shuffle.port property MAPREDUCE-3493. Add the default mapreduce.shuffle.port property
to mapred-default.xml (Madhukara Phatak via harsh) to mapred-default.xml (Madhukara Phatak via harsh)
MAPREDUCE-4307. TeraInputFormat calls FileSystem.getDefaultBlockSize()
without a Path - Failure when using ViewFileSystem. (Ahmed Radwan via eli)
Release 2.0.0-alpha - UNRELEASED Release 2.0.0-alpha - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -212,7 +212,7 @@ public void run() {
} }
FileSystem outFs = partFile.getFileSystem(conf); FileSystem outFs = partFile.getFileSystem(conf);
DataOutputStream writer = outFs.create(partFile, true, 64*1024, (short) 10, DataOutputStream writer = outFs.create(partFile, true, 64*1024, (short) 10,
outFs.getDefaultBlockSize()); outFs.getDefaultBlockSize(partFile));
for (int i = 0; i < samples; i++) { for (int i = 0; i < samples; i++) {
try { try {
samplerReader[i].join(); samplerReader[i].join();