HADOOP-10454. Provide FileContext version of har file system. (Kihwal Lee via jeagles)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1584431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Turner Eagles 2014-04-03 22:20:47 +00:00
parent f9df4d7377
commit 7a655d5633
3 changed files with 46 additions and 0 deletions

View File

@ -349,6 +349,9 @@ Release 2.4.1 - UNRELEASED
IMPROVEMENTS
HADOOP-10454. Provide FileContext version of har file system. (Kihwal Lee
via jeagles)
OPTIMIZATIONS
BUG FIXES

View File

@ -0,0 +1,38 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import org.apache.hadoop.conf.Configuration;
public class HarFs extends DelegateToFileSystem {
HarFs(final URI theUri, final Configuration conf)
throws IOException, URISyntaxException {
super(theUri, new HarFileSystem(), conf, "har", true);
}
@Override
public int getUriDefaultPort() {
return -1;
}
}

View File

@ -452,6 +452,11 @@
<description>The AbstractFileSystem for file: uris.</description>
</property>
<property>
<name>fs.AbstractFileSystem.har.impl</name>
<value>org.apache.hadoop.fs.HarFs</value>
<description>The AbstractFileSystem for har: uris.</description>
</property>
<property>
<name>fs.AbstractFileSystem.hdfs.impl</name>