类 AbstractHdfsConnector
- java.lang.Object
-
- org.apache.pulsar.io.hdfs3.AbstractHdfsConnector
-
- 直接已知子类:
HdfsAbstractSink
public abstract class AbstractHdfsConnector extends java.lang.ObjectA Simple abstract class for HDFS connectors. Provides methods for connecting to HDFS
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.apache.hadoop.io.compress.CompressionCodecFactorycompressionCodecFactoryprotected AbstractHdfsConfigconnectorConfigprotected java.util.concurrent.atomic.AtomicReference<HdfsResources>hdfsResources
-
构造器概要
构造器 构造器 说明 AbstractHdfsConnector()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidcheckHdfsUriForTimeout(org.apache.hadoop.conf.Configuration config)protected org.apache.hadoop.io.compress.CompressionCodecgetCompressionCodec()protected org.apache.hadoop.io.compress.CompressionCodecFactorygetCompressionCodecFactory()protected org.apache.hadoop.conf.ConfigurationgetConfiguration()protected java.lang.StringgetEncoding()protected org.apache.hadoop.fs.FileSystemgetFileSystem()protected org.apache.hadoop.fs.FileSystemgetFileSystem(org.apache.hadoop.conf.Configuration config)This exists in order to allow unit tests to override it so that they don't take several minutes waiting for UDP packets to be received.protected org.apache.hadoop.fs.FileSystemgetFileSystemAsUser(org.apache.hadoop.conf.Configuration config, org.apache.hadoop.security.UserGroupInformation ugi)protected org.apache.hadoop.security.UserGroupInformationgetUserGroupInformation()protected HdfsResourcesresetHDFSResources(HdfsSinkConfig hdfsSinkConfig)
-
-
-
字段详细资料
-
hdfsResources
protected final java.util.concurrent.atomic.AtomicReference<HdfsResources> hdfsResources
-
connectorConfig
protected AbstractHdfsConfig connectorConfig
-
compressionCodecFactory
protected org.apache.hadoop.io.compress.CompressionCodecFactory compressionCodecFactory
-
-
方法详细资料
-
resetHDFSResources
protected HdfsResources resetHDFSResources(HdfsSinkConfig hdfsSinkConfig) throws java.io.IOException
- 抛出:
java.io.IOException
-
checkHdfsUriForTimeout
protected void checkHdfsUriForTimeout(org.apache.hadoop.conf.Configuration config) throws java.io.IOException- 抛出:
java.io.IOException
-
getFileSystem
protected org.apache.hadoop.fs.FileSystem getFileSystem(org.apache.hadoop.conf.Configuration config) throws java.io.IOExceptionThis exists in order to allow unit tests to override it so that they don't take several minutes waiting for UDP packets to be received.- 参数:
config- the configuration to use- 返回:
- the FileSystem that is created for the given Configuration
- 抛出:
java.io.IOException- if unable to create the FileSystem
-
getFileSystemAsUser
protected org.apache.hadoop.fs.FileSystem getFileSystemAsUser(org.apache.hadoop.conf.Configuration config, org.apache.hadoop.security.UserGroupInformation ugi) throws java.io.IOException- 抛出:
java.io.IOException
-
getConfiguration
protected org.apache.hadoop.conf.Configuration getConfiguration()
-
getFileSystem
protected org.apache.hadoop.fs.FileSystem getFileSystem()
-
getUserGroupInformation
protected org.apache.hadoop.security.UserGroupInformation getUserGroupInformation()
-
getEncoding
protected java.lang.String getEncoding()
-
getCompressionCodec
protected org.apache.hadoop.io.compress.CompressionCodec getCompressionCodec()
-
getCompressionCodecFactory
protected org.apache.hadoop.io.compress.CompressionCodecFactory getCompressionCodecFactory()
-
-