public class HttpFileSystem extends StreamedFileSystem
FileSystem
for accessing remote HTTP and HTTPS data.
To use this FileSystem, just use regular http:// or https:// URLs.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP_SCHEME
Field HTTP_SCHEME
|
static java.lang.String |
HTTPS_SCHEME
Field HTTPS_SCHEME
|
Constructor and Description |
---|
HttpFileSystem() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path path) |
java.net.URI |
getUri() |
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.PathFilter pathFilter) |
void |
initialize(java.net.URI uri,
org.apache.hadoop.conf.Configuration configuration) |
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path path,
int i) |
append, create, delete, delete, getMD5SumFor, getMD5SumFor, getWorkingDirectory, listStatus, mkdirs, rename, setMD5SumFor, setMD5SumFor, setWorkingDirectory
addFileSystemForTesting, append, append, checkPath, clearStatistics, close, closeAll, closeAllForUGI, completeLocalOutput, concat, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, createNonRecursive, deleteOnExit, get, get, get, getAllStatistics, getBlockSize, getCacheSize, getCanonicalServiceName, getCanonicalUri, getContentSummary, getDefaultBlockSize, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultReplication, getDefaultUri, getDelegationToken, getFileBlockLocations, getFileChecksum, getHomeDirectory, getLength, getLocal, getName, getNamed, getReplication, getStatistics, getStatistics, getUsed, globStatus, isDirectory, isFile, listStatus, listStatus, listStatus, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, open, printStatistics, processDeleteOnExit, setDefaultUri, setDefaultUri, setOwner, setPermission, setReplication, setTimes, setVerifyChecksum, startLocalOutput
public static final java.lang.String HTTP_SCHEME
public static final java.lang.String HTTPS_SCHEME
public void initialize(java.net.URI uri, org.apache.hadoop.conf.Configuration configuration) throws java.io.IOException
initialize
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public java.net.URI getUri()
getUri
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.PathFilter pathFilter) throws java.io.IOException
globStatus
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path path, int i) throws java.io.IOException
open
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public boolean exists(org.apache.hadoop.fs.Path path) throws java.io.IOException
exists
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path path) throws java.io.IOException
getFileStatus
in class org.apache.hadoop.fs.FileSystem
java.io.IOException