org.apache.hadoop.hdfs
Class HsftpFileSystem

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.fs.FileSystem
          extended by org.apache.hadoop.hdfs.HftpFileSystem
              extended by org.apache.hadoop.hdfs.HsftpFileSystem
All Implemented Interfaces:
Closeable, org.apache.hadoop.conf.Configurable

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class HsftpFileSystem
extends HftpFileSystem

An implementation of a protocol for accessing filesystems over HTTPS. The following implementation provides a limited, read-only interface to a filesystem over HTTPS.

See Also:
ListPathsServlet, FileDataServlet

Nested Class Summary
protected static class HsftpFileSystem.DummyHostnameVerifier
          Dummy hostname verifier that is used to bypass hostname checking
protected static class HsftpFileSystem.DummyTrustManager
          Dummy trustmanager that is used to trust all server certificates
 
Nested classes/interfaces inherited from class org.apache.hadoop.fs.FileSystem
org.apache.hadoop.fs.FileSystem.Statistics
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hdfs.HftpFileSystem
df, HFTP_DATE_FORMAT, HFTP_TIMEZONE, nnAddr, ran, ugi
 
Fields inherited from class org.apache.hadoop.fs.FileSystem
DEFAULT_FS, FS_DEFAULT_NAME_KEY, LOG, statistics
 
Constructor Summary
HsftpFileSystem()
           
 
Method Summary
 URI getUri()
           
 void initialize(URI name, org.apache.hadoop.conf.Configuration conf)
           
protected  HttpURLConnection openConnection(String path, String query)
          Open an HTTP connection to the namenode to read file data and metadata.
 
Methods inherited from class org.apache.hadoop.hdfs.HftpFileSystem
append, create, delete, getContentSummary, getDateFormat, getFileChecksum, getFileStatus, getWorkingDirectory, listStatus, mkdirs, open, rename, setWorkingDirectory
 
Methods inherited from class org.apache.hadoop.fs.FileSystem
append, append, checkPath, clearStatistics, close, closeAll, completeLocalOutput, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, createNewFile, delete, deleteOnExit, exists, get, get, get, getAllStatistics, getBlockSize, getDefaultBlockSize, getDefaultReplication, getDefaultUri, getFileBlockLocations, getFileBlockLocations, getHomeDirectory, getInitialWorkingDirectory, getLength, getLocal, getName, getNamed, getReplication, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, getUsed, globStatus, globStatus, isDirectory, isFile, listStatus, listStatus, listStatus, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, rename, setDefaultUri, setDefaultUri, setOwner, setPermission, setReplication, setTimes, setVerifyChecksum, startLocalOutput
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HsftpFileSystem

public HsftpFileSystem()
Method Detail

initialize

public void initialize(URI name,
                       org.apache.hadoop.conf.Configuration conf)
                throws IOException
Overrides:
initialize in class HftpFileSystem
Throws:
IOException

openConnection

protected HttpURLConnection openConnection(String path,
                                           String query)
                                    throws IOException
Description copied from class: HftpFileSystem
Open an HTTP connection to the namenode to read file data and metadata.

Overrides:
openConnection in class HftpFileSystem
Parameters:
path - The path component of the URL
query - The query component of the URL
Throws:
IOException

getUri

public URI getUri()
Overrides:
getUri in class HftpFileSystem


Copyright © 2009 The Apache Software Foundation