public abstract class GoogleHadoopFileSystemBase extends org.apache.hadoop.fs.FileSystem implements FileSystemDescriptor
It is implemented as a thin abstraction layer on top of GCS. The layer hides any specific characteristics of the underlying store and exposes FileSystem interface understood by the Hadoop engine.
Users interact with the files in the storage using fully qualified URIs. The file system
exposed by this class is identified using the 'gs' scheme. For example, gs://dir1/dir2/file1.txt
.
This implementation translates paths between hadoop Path and GCS URI with the convention that the Hadoop root directly corresponds to the GCS "root", e.g. gs:/. This is convenient for many reasons, such as data portability and close equivalence to gsutil paths, but imposes certain inherited constraints, such as files not being allowed in root (only 'directories' can be placed in root), and directory names inside root have a more limited set of allowed characters.
One of the main goals of this implementation is to maintain compatibility with behavior of HDFS implementation when accessed through FileSystem interface. HDFS implementation is not very consistent about the cases when it throws versus the cases when methods return false. We run GHFS tests and HDFS tests against the same test data and use that as a guide to decide whether to throw or to return false.
Modifier and Type | Class and Description |
---|---|
static class |
GoogleHadoopFileSystemBase.Counter
Defines names of counters we track for each operation.
|
static class |
GoogleHadoopFileSystemBase.GcsFileChecksumType
Available GCS checksum types for use with
GoogleHadoopFileSystemConfiguration.GCS_FILE_CHECKSUM_TYPE . |
protected static class |
GoogleHadoopFileSystemBase.ListStatusFileNotFoundBehavior
Behavior of listStatus when a path is not found.
|
static class |
GoogleHadoopFileSystemBase.OutputStreamType
Available types for use with
GoogleHadoopFileSystemConfiguration.GCS_OUTPUT_STREAM_TYPE . |
static class |
GoogleHadoopFileSystemBase.ParentTimestampUpdateIncludePredicate
A predicate that processes individual directory paths and evaluates the conditions set in
fs.gs.parent.timestamp.update.enable, fs.gs.parent.timestamp.update.substrings.include and
fs.gs.parent.timestamp.update.substrings.exclude to determine if a path should be ignored
when running directory timestamp updates.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHENTICATION_PREFIX
Prefix to use for common authentication keys.
|
static int |
BLOCK_SIZE_DEFAULT
Deprecated.
|
static java.lang.String |
BLOCK_SIZE_KEY
Deprecated.
|
static int |
BUFFERSIZE_DEFAULT
Deprecated.
|
static java.lang.String |
BUFFERSIZE_KEY
Deprecated.
|
protected com.google.common.collect.ImmutableMap<GoogleHadoopFileSystemBase.Counter,java.util.concurrent.atomic.AtomicLong> |
counters
Map of counter values
|
static org.apache.hadoop.fs.PathFilter |
DEFAULT_FILTER
Default PathFilter that accepts all paths.
|
protected long |
defaultBlockSize
Default block size.
|
static java.lang.String |
ENABLE_GCE_SERVICE_ACCOUNT_AUTH_KEY
Deprecated.
|
static boolean |
GCE_BUCKET_DELETE_ENABLE_DEFAULT
Deprecated.
|
static java.lang.String |
GCE_BUCKET_DELETE_ENABLE_KEY
Deprecated.
|
static java.lang.String |
GCS_APPLICATION_NAME_SUFFIX_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_APPLICATION_NAME_SUFFIX_KEY
Deprecated.
|
static java.lang.String |
GCS_BATCH_THREADS
Deprecated.
|
static int |
GCS_BATCH_THREADS_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_CLIENT_ID_KEY
Deprecated.
|
static java.lang.String |
GCS_CLIENT_SECRET_KEY
Deprecated.
|
static java.lang.String |
GCS_COPY_BATCH_THREADS
Deprecated.
|
static int |
GCS_COPY_BATCH_THREADS_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_COPY_MAX_REQUESTS_PER_BATCH
|
static long |
GCS_COPY_MAX_REQUESTS_PER_BATCH_DEFAULT
|
static boolean |
GCS_CREATE_SYSTEM_BUCKET_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_CREATE_SYSTEM_BUCKET_KEY
Deprecated.
|
static boolean |
GCS_ENABLE_COPY_WITH_REWRITE_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_ENABLE_COPY_WITH_REWRITE_KEY
Deprecated.
|
static boolean |
GCS_ENABLE_FLAT_GLOB_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_ENABLE_FLAT_GLOB_KEY
Deprecated.
|
static boolean |
GCS_ENABLE_INFER_IMPLICIT_DIRECTORIES_DEFAULT
|
static java.lang.String |
GCS_ENABLE_INFER_IMPLICIT_DIRECTORIES_KEY
|
static boolean |
GCS_ENABLE_MARKER_FILE_CREATION_DEFAULT
|
static java.lang.String |
GCS_ENABLE_MARKER_FILE_CREATION_KEY
|
static boolean |
GCS_ENABLE_PERFORMANCE_CACHE_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_ENABLE_PERFORMANCE_CACHE_KEY
Deprecated.
|
static boolean |
GCS_ENABLE_REPAIR_IMPLICIT_DIRECTORIES_DEFAULT
|
static java.lang.String |
GCS_ENABLE_REPAIR_IMPLICIT_DIRECTORIES_KEY
|
static java.lang.String |
GCS_FILE_SIZE_LIMIT_250GB
Deprecated.
|
static boolean |
GCS_FILE_SIZE_LIMIT_250GB_DEFAULT
Deprecated.
|
static GoogleCloudStorageReadOptions.GenerationReadConsistency |
GCS_GENERATION_READ_CONSISTENCY_DEFAULT
|
static java.lang.String |
GCS_GENERATION_READ_CONSISTENCY_KEY
|
static int |
GCS_HTTP_CONNECT_TIMEOUT_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_HTTP_CONNECT_TIMEOUT_KEY
Deprecated.
|
static int |
GCS_HTTP_MAX_RETRY_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_HTTP_MAX_RETRY_KEY
Deprecated.
|
static int |
GCS_HTTP_READ_TIMEOUT_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_HTTP_READ_TIMEOUT_KEY
Deprecated.
|
static java.lang.String |
GCS_HTTP_TRANSPORT_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_HTTP_TRANSPORT_KEY
Deprecated.
|
static GoogleCloudStorageReadOptions.Fadvise |
GCS_INPUTSTREAM_FADVISE_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_INPUTSTREAM_FADVISE_KEY
Deprecated.
|
static boolean |
GCS_INPUTSTREAM_FAST_FAIL_ON_NOT_FOUND_ENABLE_DEFAULT
|
static java.lang.String |
GCS_INPUTSTREAM_FAST_FAIL_ON_NOT_FOUND_ENABLE_KEY
|
static long |
GCS_INPUTSTREAM_INPLACE_SEEK_LIMIT_DEFAULT
|
static java.lang.String |
GCS_INPUTSTREAM_INPLACE_SEEK_LIMIT_KEY
|
static int |
GCS_INPUTSTREAM_MIN_RANGE_REQUEST_SIZE_DEFAULT
|
static java.lang.String |
GCS_INPUTSTREAM_MIN_RANGE_REQUEST_SIZE_KEY
|
static java.lang.String |
GCS_MARKER_FILE_PATTERN_KEY
Deprecated.
|
static java.lang.String |
GCS_MAX_LIST_ITEMS_PER_CALL
Deprecated.
|
static long |
GCS_MAX_LIST_ITEMS_PER_CALL_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_MAX_REQUESTS_PER_BATCH
Deprecated.
|
static long |
GCS_MAX_REQUESTS_PER_BATCH_DEFAULT
Deprecated.
|
static int |
GCS_MAX_WAIT_MILLIS_EMPTY_OBJECT_CREATE_DEFAULT
|
static java.lang.String |
GCS_MAX_WAIT_MILLIS_EMPTY_OBJECT_CREATE_KEY
|
static java.lang.String |
GCS_OUTPUTSTREAM_TYPE_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_OUTPUTSTREAM_TYPE_KEY
Deprecated.
|
static boolean |
GCS_PARENT_TIMESTAMP_UPDATE_ENABLE_DEFAULT
|
static java.lang.String |
GCS_PARENT_TIMESTAMP_UPDATE_ENABLE_KEY
|
static java.lang.String |
GCS_PARENT_TIMESTAMP_UPDATE_EXCLUDES_DEFAULT
|
static java.lang.String |
GCS_PARENT_TIMESTAMP_UPDATE_EXCLUDES_KEY
|
static java.lang.String |
GCS_PARENT_TIMESTAMP_UPDATE_INCLUDES_DEFAULT
|
static java.lang.String |
GCS_PARENT_TIMESTAMP_UPDATE_INCLUDES_KEY
|
static long |
GCS_PERFORMANCE_CACHE_DIR_METADATA_PREFETCH_LIMIT_DEFAULT
|
static java.lang.String |
GCS_PERFORMANCE_CACHE_DIR_METADATA_PREFETCH_LIMIT_KEY
|
static boolean |
GCS_PERFORMANCE_CACHE_LIST_CACHING_ENABLE_DEFAULT
|
static java.lang.String |
GCS_PERFORMANCE_CACHE_LIST_CACHING_ENABLE_KEY
|
static long |
GCS_PERFORMANCE_CACHE_MAX_ENTRY_AGE_MILLIS_DEFAULT
|
static java.lang.String |
GCS_PERFORMANCE_CACHE_MAX_ENTRY_AGE_MILLIS_KEY
|
static java.lang.String |
GCS_PROJECT_ID_KEY
Deprecated.
|
static java.lang.String |
GCS_PROXY_ADDRESS_DEFAULT
Deprecated.
|
static java.lang.String |
GCS_PROXY_ADDRESS_KEY
Deprecated.
|
static java.lang.String |
GCS_REQUESTER_PAYS_BUCKETS_KEY
Deprecated.
|
static java.lang.String |
GCS_REQUESTER_PAYS_MODE_KEY
Deprecated.
|
static java.lang.String |
GCS_REQUESTER_PAYS_PROJECT_ID_KEY
|
static java.lang.String |
GCS_SYSTEM_BUCKET_KEY
Deprecated.
|
static java.lang.String |
GCS_WORKING_DIRECTORY_KEY
Deprecated.
|
protected GoogleCloudStorageFileSystem |
gcsfs
Underlying GCS file system object.
|
static java.lang.String |
GHFS_ID
Identifies this version of the GoogleHadoopFileSystemBase library.
|
protected java.net.URI |
initUri
The URI the File System is passed in initialize.
|
protected GoogleHadoopFileSystemBase.ListStatusFileNotFoundBehavior |
listStatusFileNotFoundBehavior |
static java.lang.String |
MR_JOB_HISTORY_DONE_DIR_KEY
Deprecated.
|
static java.lang.String |
MR_JOB_HISTORY_INTERMEDIATE_DONE_DIR_KEY
|
static java.lang.String |
PATH_CODEC_DEFAULT
Deprecated.
|
static java.lang.String |
PATH_CODEC_KEY
Deprecated.
|
static java.lang.String |
PATH_CODEC_USE_LEGACY_ENCODING
Use LEGACY_PATH_CODEC.
|
static java.lang.String |
PATH_CODEC_USE_URI_ENCODING
Use new URI_ENCODED_PATH_CODEC.
|
static java.lang.String |
PERMISSIONS_TO_REPORT_DEFAULT
Deprecated.
|
static java.lang.String |
PERMISSIONS_TO_REPORT_KEY
Deprecated.
|
static java.lang.String |
PROPERTIES_FILE
A resource file containing GCS related build properties.
|
static short |
REPLICATION_FACTOR_DEFAULT
Default value of replication factor.
|
static java.lang.String |
SERVICE_ACCOUNT_AUTH_EMAIL_KEY
Deprecated.
|
static java.lang.String |
SERVICE_ACCOUNT_AUTH_KEYFILE_KEY
|
protected java.lang.String |
systemBucket
Deprecated.
|
static java.lang.String |
UNKNOWN_VERSION
The version returned when one cannot be found in properties.
|
static java.lang.String |
VERSION
Current version.
|
static java.lang.String |
VERSION_PROPERTY
The key in the PROPERTIES_FILE that contains the version built.
|
static int |
WRITE_BUFFERSIZE_DEFAULT
|
static java.lang.String |
WRITE_BUFFERSIZE_KEY
|
Constructor and Description |
---|
GoogleHadoopFileSystemBase()
Constructs an instance of GoogleHadoopFileSystemBase; the internal
GoogleCloudStorageFileSystem will be set up with config settings when initialize() is called.
|
GoogleHadoopFileSystemBase(GoogleCloudStorageFileSystem gcsfs)
Constructs an instance of GoogleHadoopFileSystemBase using the provided
GoogleCloudStorageFileSystem; initialize() will not re-initialize it.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path hadoopPath,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
Appends to an existing file (optional operation).
|
protected void |
checkPath(org.apache.hadoop.fs.Path path) |
void |
close() |
void |
completeLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile) |
void |
configureBuckets(java.lang.String systemBucketName,
boolean createSystemBucket)
Validates and possibly creates the system bucket.
|
void |
copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path[] srcs,
org.apache.hadoop.fs.Path dst) |
void |
copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
void |
copyToLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path hadoopPath,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
Opens the given file for writing.
|
protected com.google.common.collect.ImmutableMap<GoogleHadoopFileSystemBase.Counter,java.util.concurrent.atomic.AtomicLong> |
createCounterMap() |
org.apache.hadoop.fs.FSDataOutputStream |
createNonRecursive(org.apache.hadoop.fs.Path hadoopPath,
org.apache.hadoop.fs.permission.FsPermission permission,
java.util.EnumSet<org.apache.hadoop.fs.CreateFlag> flags,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress) |
boolean |
delete(org.apache.hadoop.fs.Path f)
Deprecated.
Use
delete(Path, boolean) instead |
boolean |
delete(org.apache.hadoop.fs.Path hadoopPath,
boolean recursive)
Deletes the given file or directory.
|
boolean |
deleteOnExit(org.apache.hadoop.fs.Path f) |
java.lang.String |
getCanonicalServiceName() |
org.apache.hadoop.fs.ContentSummary |
getContentSummary(org.apache.hadoop.fs.Path f) |
long |
getDefaultBlockSize() |
protected int |
getDefaultPort()
The default port is listed as -1 as an indication that ports are not used.
|
short |
getDefaultReplication()
Gets the default replication factor.
|
abstract org.apache.hadoop.fs.Path |
getDefaultWorkingDirectory()
Gets the default value of working directory.
|
org.apache.hadoop.security.token.Token<?> |
getDelegationToken(java.lang.String renewer) |
org.apache.hadoop.fs.FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path hadoopPath) |
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path hadoopPath)
Gets status of the given path item.
|
abstract org.apache.hadoop.fs.Path |
getFileSystemRoot()
Returns the Hadoop path representing the root of the FileSystem associated with this
FileSystemDescriptor.
|
GoogleCloudStorageFileSystem |
getGcsFs()
Gets GCS FS instance.
|
abstract java.net.URI |
getGcsPath(org.apache.hadoop.fs.Path hadoopPath)
Gets GCS path corresponding to the given Hadoop path, which can be relative or absolute,
and can have either gs://
|
abstract org.apache.hadoop.fs.Path |
getHadoopPath(java.net.URI gcsPath)
Gets Hadoop path corresponding to the given GCS path.
|
java.lang.String |
getHadoopScheme()
Deprecated.
|
org.apache.hadoop.fs.Path |
getHomeDirectory()
Returns home directory of the current user.
|
protected abstract java.lang.String |
getHomeDirectorySubpath()
Returns an unqualified path without any leading slash, relative to the filesystem root,
which serves as the home directory of the current user; see
getHomeDirectory for
a description of what the home directory means. |
abstract java.lang.String |
getScheme()
Returns the URI scheme for the Hadoop FileSystem associated with this FileSystemDescriptor.
|
java.net.URI |
getUri()
Returns a URI of the root of this FileSystem.
|
long |
getUsed() |
org.apache.hadoop.fs.Path |
getWorkingDirectory()
Gets the current working directory.
|
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path pathPattern)
Returns an array of FileStatus objects whose path names match pathPattern.
|
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.fs.PathFilter filter)
Returns an array of FileStatus objects whose path names match pathPattern and is accepted by
the user-supplied path filter.
|
void |
initialize(java.net.URI path,
org.apache.hadoop.conf.Configuration config)
See
initialize(URI, Configuration, boolean) for details; calls with third arg
defaulting to 'true' for initializing the superclass. |
void |
initialize(java.net.URI path,
org.apache.hadoop.conf.Configuration config,
boolean initSuperclass)
Initializes this file system instance.
|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path hadoopPath)
Lists file status.
|
org.apache.hadoop.fs.Path |
makeQualified(org.apache.hadoop.fs.Path path)
Overridden to make root it's own parent.
|
boolean |
mkdirs(org.apache.hadoop.fs.Path hadoopPath,
org.apache.hadoop.fs.permission.FsPermission permission)
Makes the given path and all non-existent parents directories.
|
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path hadoopPath,
int bufferSize)
Opens the given file for reading.
|
protected void |
processDeleteOnExit() |
boolean |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
Renames src to dst.
|
protected void |
setListStatusFileNotFoundBehavior(GoogleHadoopFileSystemBase.ListStatusFileNotFoundBehavior behavior) |
void |
setOwner(org.apache.hadoop.fs.Path p,
java.lang.String username,
java.lang.String groupname) |
void |
setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission) |
void |
setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime) |
void |
setVerifyChecksum(boolean verifyChecksum) |
void |
setWorkingDirectory(org.apache.hadoop.fs.Path hadoopPath)
Sets the current working directory to the given path.
|
org.apache.hadoop.fs.Path |
startLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile) |
access, addDelegationTokens, append, append, appendFile, areSymlinksEnabled, cancelDeleteOnExit, canonicalizeUri, clearStatistics, closeAll, closeAllForUGI, concat, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, create, createFile, createNewFile, createNonRecursive, createNonRecursive, createSnapshot, createSnapshot, createSymlink, deleteSnapshot, enableSymlinks, exists, fixRelativePart, get, get, get, getAclStatus, getAllStatistics, getAllStoragePolicies, getBlockSize, getCanonicalUri, getChildFileSystems, getDefaultBlockSize, getDefaultReplication, getDefaultUri, getFileBlockLocations, getFileBlockLocations, getFileChecksum, getFileLinkStatus, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getInitialWorkingDirectory, getLength, getLinkTarget, getLocal, getName, getNamed, getQuotaUsage, getReplication, getServerDefaults, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, getStoragePolicy, getStorageStatistics, getTrashRoot, getTrashRoots, getUsed, getXAttr, getXAttrs, getXAttrs, isDirectory, isFile, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, listStatusBatch, listStatusIterator, listXAttrs, mkdirs, mkdirs, modifyAclEntries, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, removeAcl, removeAclEntries, removeDefaultAcl, removeXAttr, rename, renameSnapshot, resolveLink, resolvePath, setAcl, setDefaultUri, setDefaultUri, setReplication, setStoragePolicy, setWriteChecksum, setXAttr, setXAttr, supportsSymlinks, truncate, unsetStoragePolicy
public static final java.lang.String PATH_CODEC_USE_URI_ENCODING
public static final java.lang.String PATH_CODEC_USE_LEGACY_ENCODING
public static final short REPLICATION_FACTOR_DEFAULT
public static final org.apache.hadoop.fs.PathFilter DEFAULT_FILTER
public static final java.lang.String AUTHENTICATION_PREFIX
public static final java.lang.String PROPERTIES_FILE
public static final java.lang.String VERSION_PROPERTY
public static final java.lang.String UNKNOWN_VERSION
public static final java.lang.String VERSION
public static final java.lang.String GHFS_ID
protected java.net.URI initUri
@Deprecated protected java.lang.String systemBucket
GoogleHadoopFileSystemConfiguration.GCS_SYSTEM_BUCKET
. Used as a fallback for a root bucket,
when required.protected GoogleCloudStorageFileSystem gcsfs
protected long defaultBlockSize
protected final com.google.common.collect.ImmutableMap<GoogleHadoopFileSystemBase.Counter,java.util.concurrent.atomic.AtomicLong> counters
protected GoogleHadoopFileSystemBase.ListStatusFileNotFoundBehavior listStatusFileNotFoundBehavior
@Deprecated public static final java.lang.String PERMISSIONS_TO_REPORT_KEY
GoogleHadoopFileSystemConfiguration.PERMISSIONS_TO_REPORT
@Deprecated public static final java.lang.String PERMISSIONS_TO_REPORT_DEFAULT
GoogleHadoopFileSystemConfiguration.PERMISSIONS_TO_REPORT
@Deprecated public static final java.lang.String BUFFERSIZE_KEY
GoogleHadoopFileSystemConfiguration.GCS_INPUT_STREAM_BUFFER_SIZE
@Deprecated public static final int BUFFERSIZE_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_INPUT_STREAM_BUFFER_SIZE
@Deprecated public static final java.lang.String WRITE_BUFFERSIZE_KEY
@Deprecated public static final int WRITE_BUFFERSIZE_DEFAULT
@Deprecated public static final java.lang.String BLOCK_SIZE_KEY
GoogleHadoopFileSystemConfiguration.BLOCK_SIZE
@Deprecated public static final int BLOCK_SIZE_DEFAULT
GoogleHadoopFileSystemConfiguration.BLOCK_SIZE
@Deprecated public static final java.lang.String ENABLE_GCE_SERVICE_ACCOUNT_AUTH_KEY
GoogleHadoopFileSystemConfiguration.AUTH_SERVICE_ACCOUNT_ENABLE
@Deprecated public static final java.lang.String SERVICE_ACCOUNT_AUTH_EMAIL_KEY
GoogleHadoopFileSystemConfiguration.AUTH_SERVICE_ACCOUNT_EMAIL
@Deprecated public static final java.lang.String SERVICE_ACCOUNT_AUTH_KEYFILE_KEY
@Deprecated public static final java.lang.String GCS_PROJECT_ID_KEY
GoogleHadoopFileSystemConfiguration.GCS_PROJECT_ID
@Deprecated public static final java.lang.String GCS_REQUESTER_PAYS_MODE_KEY
GoogleHadoopFileSystemConfiguration.GCS_REQUESTER_PAYS_MODE
@Deprecated public static final java.lang.String GCS_REQUESTER_PAYS_PROJECT_ID_KEY
@Deprecated public static final java.lang.String GCS_REQUESTER_PAYS_BUCKETS_KEY
GoogleHadoopFileSystemConfiguration.GCS_REQUESTER_PAYS_BUCKETS
@Deprecated public static final java.lang.String GCS_CLIENT_ID_KEY
GoogleHadoopFileSystemConfiguration.AUTH_CLIENT_ID
@Deprecated public static final java.lang.String GCS_CLIENT_SECRET_KEY
GoogleHadoopFileSystemConfiguration.AUTH_CLIENT_SECRET
@Deprecated public static final java.lang.String GCS_SYSTEM_BUCKET_KEY
GoogleHadoopFileSystemConfiguration.GCS_SYSTEM_BUCKET
@Deprecated public static final java.lang.String GCS_CREATE_SYSTEM_BUCKET_KEY
GoogleHadoopFileSystemConfiguration.GCS_CREATE_SYSTEM_BUCKET
@Deprecated public static final boolean GCS_CREATE_SYSTEM_BUCKET_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_CREATE_SYSTEM_BUCKET
@Deprecated public static final java.lang.String GCS_WORKING_DIRECTORY_KEY
GoogleHadoopFileSystemConfiguration.GCS_WORKING_DIRECTORY
@Deprecated public static final java.lang.String GCS_FILE_SIZE_LIMIT_250GB
GoogleHadoopFileSystemConfiguration.GCS_FILE_SIZE_LIMIT_250GB
@Deprecated public static final boolean GCS_FILE_SIZE_LIMIT_250GB_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_FILE_SIZE_LIMIT_250GB
@Deprecated public static final java.lang.String GCS_MARKER_FILE_PATTERN_KEY
GoogleHadoopFileSystemConfiguration.GCS_MARKER_FILE_PATTERN
@Deprecated public static final java.lang.String GCS_ENABLE_PERFORMANCE_CACHE_KEY
GoogleHadoopFileSystemConfiguration.GCS_PERFORMANCE_CACHE_ENABLE
@Deprecated public static final boolean GCS_ENABLE_PERFORMANCE_CACHE_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_PERFORMANCE_CACHE_ENABLE
@Deprecated public static final java.lang.String GCS_PERFORMANCE_CACHE_MAX_ENTRY_AGE_MILLIS_KEY
@Deprecated public static final long GCS_PERFORMANCE_CACHE_MAX_ENTRY_AGE_MILLIS_DEFAULT
@Deprecated public static final java.lang.String GCS_PERFORMANCE_CACHE_LIST_CACHING_ENABLE_KEY
@Deprecated public static final boolean GCS_PERFORMANCE_CACHE_LIST_CACHING_ENABLE_DEFAULT
@Deprecated public static final java.lang.String GCS_PERFORMANCE_CACHE_DIR_METADATA_PREFETCH_LIMIT_KEY
@Deprecated public static final long GCS_PERFORMANCE_CACHE_DIR_METADATA_PREFETCH_LIMIT_DEFAULT
@Deprecated public static final java.lang.String GCS_PARENT_TIMESTAMP_UPDATE_ENABLE_KEY
@Deprecated public static final boolean GCS_PARENT_TIMESTAMP_UPDATE_ENABLE_DEFAULT
@Deprecated public static final java.lang.String GCS_PARENT_TIMESTAMP_UPDATE_EXCLUDES_KEY
@Deprecated public static final java.lang.String GCS_PARENT_TIMESTAMP_UPDATE_EXCLUDES_DEFAULT
@Deprecated public static final java.lang.String MR_JOB_HISTORY_INTERMEDIATE_DONE_DIR_KEY
@Deprecated public static final java.lang.String MR_JOB_HISTORY_DONE_DIR_KEY
GoogleHadoopFileSystemConfiguration.MR_JOB_HISTORY_DONE_DIR_KEY
@Deprecated public static final java.lang.String GCS_PARENT_TIMESTAMP_UPDATE_INCLUDES_KEY
@Deprecated public static final java.lang.String GCS_PARENT_TIMESTAMP_UPDATE_INCLUDES_DEFAULT
@Deprecated public static final java.lang.String GCS_ENABLE_REPAIR_IMPLICIT_DIRECTORIES_KEY
@Deprecated public static final boolean GCS_ENABLE_REPAIR_IMPLICIT_DIRECTORIES_DEFAULT
@Deprecated public static final java.lang.String PATH_CODEC_KEY
GoogleHadoopFileSystemConfiguration.PATH_CODEC
@Deprecated public static final java.lang.String PATH_CODEC_DEFAULT
GoogleHadoopFileSystemConfiguration.PATH_CODEC
@Deprecated public static final java.lang.String GCS_ENABLE_INFER_IMPLICIT_DIRECTORIES_KEY
@Deprecated public static final boolean GCS_ENABLE_INFER_IMPLICIT_DIRECTORIES_DEFAULT
@Deprecated public static final java.lang.String GCS_ENABLE_FLAT_GLOB_KEY
GoogleHadoopFileSystemConfiguration.GCS_FLAT_GLOB_ENABLE
@Deprecated public static final boolean GCS_ENABLE_FLAT_GLOB_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_FLAT_GLOB_ENABLE
@Deprecated public static final java.lang.String GCS_ENABLE_MARKER_FILE_CREATION_KEY
@Deprecated public static final boolean GCS_ENABLE_MARKER_FILE_CREATION_DEFAULT
@Deprecated public static final java.lang.String GCS_ENABLE_COPY_WITH_REWRITE_KEY
GoogleHadoopFileSystemConfiguration.GCS_COPY_WITH_REWRITE_ENABLE
@Deprecated public static final boolean GCS_ENABLE_COPY_WITH_REWRITE_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_COPY_WITH_REWRITE_ENABLE
@Deprecated public static final java.lang.String GCS_COPY_MAX_REQUESTS_PER_BATCH
@Deprecated public static final long GCS_COPY_MAX_REQUESTS_PER_BATCH_DEFAULT
@Deprecated public static final java.lang.String GCS_COPY_BATCH_THREADS
GoogleHadoopFileSystemConfiguration.GCS_COPY_BATCH_THREADS
@Deprecated public static final int GCS_COPY_BATCH_THREADS_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_COPY_BATCH_THREADS
@Deprecated public static final java.lang.String GCS_MAX_LIST_ITEMS_PER_CALL
GoogleHadoopFileSystemConfiguration.GCS_MAX_LIST_ITEMS_PER_CALL
@Deprecated public static final long GCS_MAX_LIST_ITEMS_PER_CALL_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_MAX_LIST_ITEMS_PER_CALL
@Deprecated public static final java.lang.String GCS_MAX_REQUESTS_PER_BATCH
GoogleHadoopFileSystemConfiguration.GCS_MAX_REQUESTS_PER_BATCH
@Deprecated public static final long GCS_MAX_REQUESTS_PER_BATCH_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_MAX_REQUESTS_PER_BATCH
@Deprecated public static final java.lang.String GCS_BATCH_THREADS
GoogleHadoopFileSystemConfiguration.GCS_BATCH_THREADS
@Deprecated public static final int GCS_BATCH_THREADS_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_BATCH_THREADS
@Deprecated public static final java.lang.String GCS_HTTP_MAX_RETRY_KEY
GoogleHadoopFileSystemConfiguration.GCS_HTTP_MAX_RETRY
@Deprecated public static final int GCS_HTTP_MAX_RETRY_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_HTTP_MAX_RETRY
@Deprecated public static final java.lang.String GCS_HTTP_CONNECT_TIMEOUT_KEY
GoogleHadoopFileSystemConfiguration.GCS_HTTP_CONNECT_TIMEOUT
@Deprecated public static final int GCS_HTTP_CONNECT_TIMEOUT_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_HTTP_CONNECT_TIMEOUT
@Deprecated public static final java.lang.String GCS_HTTP_READ_TIMEOUT_KEY
GoogleHadoopFileSystemConfiguration.GCS_HTTP_READ_TIMEOUT
@Deprecated public static final int GCS_HTTP_READ_TIMEOUT_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_HTTP_READ_TIMEOUT
@Deprecated public static final java.lang.String GCS_PROXY_ADDRESS_KEY
GoogleHadoopFileSystemConfiguration.GCS_PROXY_ADDRESS
@Deprecated public static final java.lang.String GCS_PROXY_ADDRESS_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_PROXY_ADDRESS
@Deprecated public static final java.lang.String GCS_HTTP_TRANSPORT_KEY
GoogleHadoopFileSystemConfiguration.GCS_HTTP_TRANSPORT
@Deprecated public static final java.lang.String GCS_HTTP_TRANSPORT_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_HTTP_TRANSPORT
@Deprecated public static final java.lang.String GCS_APPLICATION_NAME_SUFFIX_KEY
GoogleHadoopFileSystemConfiguration.GCS_APPLICATION_NAME_SUFFIX
@Deprecated public static final java.lang.String GCS_APPLICATION_NAME_SUFFIX_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_APPLICATION_NAME_SUFFIX
@Deprecated public static final java.lang.String GCS_MAX_WAIT_MILLIS_EMPTY_OBJECT_CREATE_KEY
@Deprecated public static final int GCS_MAX_WAIT_MILLIS_EMPTY_OBJECT_CREATE_DEFAULT
@Deprecated public static final java.lang.String GCS_OUTPUTSTREAM_TYPE_KEY
GoogleHadoopFileSystemConfiguration.GCS_OUTPUT_STREAM_TYPE
@Deprecated public static final java.lang.String GCS_OUTPUTSTREAM_TYPE_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_OUTPUT_STREAM_TYPE
@Deprecated public static final java.lang.String GCS_GENERATION_READ_CONSISTENCY_KEY
@Deprecated public static final GoogleCloudStorageReadOptions.GenerationReadConsistency GCS_GENERATION_READ_CONSISTENCY_DEFAULT
@Deprecated public static final java.lang.String GCS_INPUTSTREAM_FAST_FAIL_ON_NOT_FOUND_ENABLE_KEY
@Deprecated public static final boolean GCS_INPUTSTREAM_FAST_FAIL_ON_NOT_FOUND_ENABLE_DEFAULT
@Deprecated public static final java.lang.String GCS_INPUTSTREAM_INPLACE_SEEK_LIMIT_KEY
@Deprecated public static final long GCS_INPUTSTREAM_INPLACE_SEEK_LIMIT_DEFAULT
@Deprecated public static final java.lang.String GCS_INPUTSTREAM_FADVISE_KEY
GoogleHadoopFileSystemConfiguration.GCS_INPUT_STREAM_FADVISE
@Deprecated public static final GoogleCloudStorageReadOptions.Fadvise GCS_INPUTSTREAM_FADVISE_DEFAULT
GoogleHadoopFileSystemConfiguration.GCS_INPUT_STREAM_FADVISE
@Deprecated public static final java.lang.String GCS_INPUTSTREAM_MIN_RANGE_REQUEST_SIZE_KEY
@Deprecated public static final int GCS_INPUTSTREAM_MIN_RANGE_REQUEST_SIZE_DEFAULT
@Deprecated public static final java.lang.String GCE_BUCKET_DELETE_ENABLE_KEY
GoogleHadoopFileSystemConfiguration.GCE_BUCKET_DELETE_ENABLE
@Deprecated public static final boolean GCE_BUCKET_DELETE_ENABLE_DEFAULT
GoogleHadoopFileSystemConfiguration.GCE_BUCKET_DELETE_ENABLE
public GoogleHadoopFileSystemBase()
public GoogleHadoopFileSystemBase(GoogleCloudStorageFileSystem gcsfs)
protected com.google.common.collect.ImmutableMap<GoogleHadoopFileSystemBase.Counter,java.util.concurrent.atomic.AtomicLong> createCounterMap()
protected void setListStatusFileNotFoundBehavior(GoogleHadoopFileSystemBase.ListStatusFileNotFoundBehavior behavior)
protected abstract java.lang.String getHomeDirectorySubpath()
getHomeDirectory
for
a description of what the home directory means.public abstract org.apache.hadoop.fs.Path getHadoopPath(java.net.URI gcsPath)
gcsPath
- Fully-qualified GCS path, of the form gs://public abstract java.net.URI getGcsPath(org.apache.hadoop.fs.Path hadoopPath)
hadoopPath
- Hadoop path.getGcsPath(Path)
public abstract org.apache.hadoop.fs.Path getDefaultWorkingDirectory()
public abstract org.apache.hadoop.fs.Path getFileSystemRoot()
FileSystemDescriptor
getFileSystemRoot
in interface FileSystemDescriptor
public abstract java.lang.String getScheme()
FileSystemDescriptor
getScheme
in interface FileSystemDescriptor
getScheme
in class org.apache.hadoop.fs.FileSystem
@Deprecated public java.lang.String getHadoopScheme()
FileSystemDescriptor
FileSystemDescriptor.getScheme()
, the name of which coincides
with Hadoop 2's method.getHadoopScheme
in interface FileSystemDescriptor
public org.apache.hadoop.fs.Path makeQualified(org.apache.hadoop.fs.Path path)
Overridden to make root it's own parent. This is POSIX compliant, but more importantly guards against poor directory accounting in the PathData class of Hadoop 2's FsShell.
makeQualified
in class org.apache.hadoop.fs.FileSystem
protected void checkPath(org.apache.hadoop.fs.Path path)
checkPath
in class org.apache.hadoop.fs.FileSystem
public void initialize(java.net.URI path, org.apache.hadoop.conf.Configuration config) throws java.io.IOException
initialize(URI, Configuration, boolean)
for details; calls with third arg
defaulting to 'true' for initializing the superclass.initialize
in class org.apache.hadoop.fs.FileSystem
path
- URI of a file/directory within this file system.config
- Hadoop configuration.java.io.IOException
public void initialize(java.net.URI path, org.apache.hadoop.conf.Configuration config, boolean initSuperclass) throws java.io.IOException
path
- URI of a file/directory within this file system.config
- Hadoop configuration.initSuperclass
- if false, doesn't call super.initialize(path, config); avoids
registering a global Statistics object for this instance.java.io.IOException
public java.net.URI getUri()
getUri
in class org.apache.hadoop.fs.FileSystem
protected int getDefaultPort()
getDefaultPort
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path hadoopPath, int bufferSize) throws java.io.IOException
Note: This function overrides the given bufferSize value with a higher number unless further
overridden using configuration parameter fs.gs.inputstream.buffer.size
.
open
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- File to open.bufferSize
- Size of buffer to use for IO.java.io.FileNotFoundException
- if the given path does not exist.java.io.IOException
- if an error occurs.public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path hadoopPath, org.apache.hadoop.fs.permission.FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws java.io.IOException
Note: This function overrides the given bufferSize value with a higher number unless further
overridden using configuration parameter fs.gs.outputstream.buffer.size
.
create
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- The file to open.permission
- Permissions to set on the new file. Ignored.overwrite
- If a file with this name already exists, then if true, the file will be
overwritten, and if false an error will be thrown.bufferSize
- The size of the buffer to use.replication
- Required block replication for the file. Ignored.blockSize
- The block-size to be used for the new file. Ignored.progress
- Progress is reported through this. Ignored.java.io.IOException
- if an error occurs.setPermission(Path, FsPermission)
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path hadoopPath, int bufferSize, org.apache.hadoop.util.Progressable progress) throws java.io.IOException
append
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- The existing file to be appended.bufferSize
- The size of the buffer to be used.progress
- For reporting progress if it is not null.java.io.IOException
- if an error occurs.public boolean rename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws java.io.IOException
rename
in class org.apache.hadoop.fs.FileSystem
src
- Source path.dst
- Destination path.java.io.FileNotFoundException
- if src does not exist.java.io.IOException
- if an error occurs.@Deprecated public boolean delete(org.apache.hadoop.fs.Path f) throws java.io.IOException
delete(Path, boolean)
insteaddelete
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public boolean delete(org.apache.hadoop.fs.Path hadoopPath, boolean recursive) throws java.io.IOException
delete
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- The path to delete.recursive
- If path is a directory and set to
true, the directory is deleted, else throws an exception.
In case of a file, the recursive parameter is ignored.java.io.IOException
- if an error occurs.public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path hadoopPath) throws java.io.IOException
listStatus
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- Given path.java.io.IOException
- if an error occurs.public void setWorkingDirectory(org.apache.hadoop.fs.Path hadoopPath)
setWorkingDirectory
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- New working directory.public org.apache.hadoop.fs.Path getWorkingDirectory()
getWorkingDirectory
in class org.apache.hadoop.fs.FileSystem
public boolean mkdirs(org.apache.hadoop.fs.Path hadoopPath, org.apache.hadoop.fs.permission.FsPermission permission) throws java.io.IOException
mkdirs
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- Given path.permission
- Permissions to set on the given directory.java.io.IOException
- if an error occurs.public short getDefaultReplication()
getDefaultReplication
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path hadoopPath) throws java.io.IOException
getFileStatus
in class org.apache.hadoop.fs.FileSystem
hadoopPath
- The path we want information about.java.io.FileNotFoundException
- when the path does not exist;java.io.IOException
- on other errors.public org.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path pathPattern) throws java.io.IOException
globStatus
in class org.apache.hadoop.fs.FileSystem
pathPattern
- A regular expression specifying the path pattern.java.io.IOException
- if an error occurs.public org.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path pathPattern, org.apache.hadoop.fs.PathFilter filter) throws java.io.IOException
Return null if pathPattern has no glob and the path does not exist. Return an empty array if pathPattern has a glob and no path matches it.
globStatus
in class org.apache.hadoop.fs.FileSystem
pathPattern
- A regular expression specifying the path pattern.filter
- A user-supplied path filter.java.io.IOException
- if an error occurs.public org.apache.hadoop.fs.Path getHomeDirectory()
getHomeDirectory
in class org.apache.hadoop.fs.FileSystem
public java.lang.String getCanonicalServiceName()
Returns null, because GHFS does not use security tokens.
getCanonicalServiceName
in class org.apache.hadoop.fs.FileSystem
public GoogleCloudStorageFileSystem getGcsFs()
getGcsFs()
public void configureBuckets(java.lang.String systemBucketName, boolean createSystemBucket) throws java.io.IOException
systemBucketName
- Name of system bucketcreateSystemBucket
- Whether or not to create systemBucketName if it does not exist.java.io.IOException
- if systemBucketName is invalid or cannot be found and createSystemBucket
is false.public boolean deleteOnExit(org.apache.hadoop.fs.Path f) throws java.io.IOException
deleteOnExit
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
protected void processDeleteOnExit()
processDeleteOnExit
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path f) throws java.io.IOException
getContentSummary
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public org.apache.hadoop.security.token.Token<?> getDelegationToken(java.lang.String renewer) throws java.io.IOException
getDelegationToken
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void copyFromLocalFile(boolean delSrc, boolean overwrite, org.apache.hadoop.fs.Path[] srcs, org.apache.hadoop.fs.Path dst) throws java.io.IOException
copyFromLocalFile
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void copyFromLocalFile(boolean delSrc, boolean overwrite, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws java.io.IOException
copyFromLocalFile
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void copyToLocalFile(boolean delSrc, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws java.io.IOException
copyToLocalFile
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public org.apache.hadoop.fs.Path startLocalOutput(org.apache.hadoop.fs.Path fsOutputFile, org.apache.hadoop.fs.Path tmpLocalFile) throws java.io.IOException
startLocalOutput
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void completeLocalOutput(org.apache.hadoop.fs.Path fsOutputFile, org.apache.hadoop.fs.Path tmpLocalFile) throws java.io.IOException
completeLocalOutput
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public long getUsed() throws java.io.IOException
getUsed
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public long getDefaultBlockSize()
getDefaultBlockSize
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FileChecksum getFileChecksum(org.apache.hadoop.fs.Path hadoopPath) throws java.io.IOException
getFileChecksum
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void setVerifyChecksum(boolean verifyChecksum)
setVerifyChecksum
in class org.apache.hadoop.fs.FileSystem
public void setPermission(org.apache.hadoop.fs.Path p, org.apache.hadoop.fs.permission.FsPermission permission) throws java.io.IOException
setPermission
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void setOwner(org.apache.hadoop.fs.Path p, java.lang.String username, java.lang.String groupname) throws java.io.IOException
setOwner
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public void setTimes(org.apache.hadoop.fs.Path p, long mtime, long atime) throws java.io.IOException
setTimes
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
public org.apache.hadoop.fs.FSDataOutputStream createNonRecursive(org.apache.hadoop.fs.Path hadoopPath, org.apache.hadoop.fs.permission.FsPermission permission, java.util.EnumSet<org.apache.hadoop.fs.CreateFlag> flags, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws java.io.IOException
createNonRecursive
in class org.apache.hadoop.fs.FileSystem
java.io.IOException
Copyright © 2018. All rights reserved.