public abstract class AbstractHdfsConnector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.io.compress.CompressionCodecFactory |
compressionCodecFactory |
protected AbstractHdfsConfig |
connectorConfig |
protected AtomicReference<HdfsResources> |
hdfsResources |
| Constructor and Description |
|---|
AbstractHdfsConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkHdfsUriForTimeout(org.apache.hadoop.conf.Configuration config) |
protected org.apache.hadoop.io.compress.CompressionCodec |
getCompressionCodec() |
protected org.apache.hadoop.io.compress.CompressionCodecFactory |
getCompressionCodecFactory() |
protected org.apache.hadoop.conf.Configuration |
getConfiguration() |
protected String |
getEncoding() |
protected org.apache.hadoop.fs.FileSystem |
getFileSystem() |
protected org.apache.hadoop.fs.FileSystem |
getFileSystem(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.FileSystem |
getFileSystemAsUser(org.apache.hadoop.conf.Configuration config,
org.apache.hadoop.security.UserGroupInformation ugi) |
protected org.apache.hadoop.security.UserGroupInformation |
getUserGroupInformation() |
protected HdfsResources |
resetHDFSResources(HdfsSinkConfig hdfsSinkConfig) |
protected final AtomicReference<HdfsResources> hdfsResources
protected AbstractHdfsConfig connectorConfig
protected org.apache.hadoop.io.compress.CompressionCodecFactory compressionCodecFactory
protected HdfsResources resetHDFSResources(HdfsSinkConfig hdfsSinkConfig) throws IOException
IOExceptionprotected void checkHdfsUriForTimeout(org.apache.hadoop.conf.Configuration config)
throws IOException
IOExceptionprotected org.apache.hadoop.fs.FileSystem getFileSystem(org.apache.hadoop.conf.Configuration config)
throws IOException
config - the configuration to useIOException - if unable to create the FileSystemprotected org.apache.hadoop.fs.FileSystem getFileSystemAsUser(org.apache.hadoop.conf.Configuration config,
org.apache.hadoop.security.UserGroupInformation ugi)
throws IOException
IOExceptionprotected org.apache.hadoop.conf.Configuration getConfiguration()
protected org.apache.hadoop.fs.FileSystem getFileSystem()
protected org.apache.hadoop.security.UserGroupInformation getUserGroupInformation()
protected String getEncoding()
protected org.apache.hadoop.io.compress.CompressionCodec getCompressionCodec()
protected org.apache.hadoop.io.compress.CompressionCodecFactory getCompressionCodecFactory()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.