HADOOP-11491. HarFs incorrectly declared as requiring an authority. (Brahma Reddy Battula via gera)
(cherry picked from commitf343f8657e
) (cherry picked from commit58970d69de
)
This commit is contained in:
parent
d3f41f6ed8
commit
afa8189a07
|
@ -10,6 +10,9 @@ Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
HADOOP-12232. Upgrade Tomcat dependency to 6.0.44. (cnauroth)
|
HADOOP-12232. Upgrade Tomcat dependency to 6.0.44. (cnauroth)
|
||||||
|
|
||||||
|
HADOOP-11491. HarFs incorrectly declared as requiring an authority.
|
||||||
|
(Brahma Reddy Battula via gera)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.hadoop.conf.Configuration;
|
||||||
public class HarFs extends DelegateToFileSystem {
|
public class HarFs extends DelegateToFileSystem {
|
||||||
HarFs(final URI theUri, final Configuration conf)
|
HarFs(final URI theUri, final Configuration conf)
|
||||||
throws IOException, URISyntaxException {
|
throws IOException, URISyntaxException {
|
||||||
super(theUri, new HarFileSystem(), conf, "har", true);
|
super(theUri, new HarFileSystem(), conf, "har", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -398,4 +398,11 @@ public class TestHarFileSystemBasics {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testHarFsWithoutAuthority() throws Exception {
|
||||||
|
final URI uri = harFileSystem.getUri();
|
||||||
|
Assert.assertNull("har uri authority not null: " + uri, uri.getAuthority());
|
||||||
|
FileContext.getFileContext(uri, conf);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue