@InterfaceAudience.Private public final class FanOutOneBlockAsyncDFSOutputHelper extends Object
FanOutOneBlockAsyncDFSOutput
.Modifier and Type | Class and Description |
---|---|
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.BlockAdder |
(package private) static class |
FanOutOneBlockAsyncDFSOutputHelper.CancelOnClose |
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater |
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.DFSClientAdaptor |
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.FileCreator |
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.LeaseManager |
static class |
FanOutOneBlockAsyncDFSOutputHelper.NameNodeException
Exception other than RemoteException thrown when calling create on namenode
|
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.PBHelper |
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter |
private static interface |
FanOutOneBlockAsyncDFSOutputHelper.StorageTypeSetter |
Modifier | Constructor and Description |
---|---|
private |
FanOutOneBlockAsyncDFSOutputHelper() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
beginFileLease(org.apache.hadoop.hdfs.DFSClient client,
long inodeId) |
(package private) static void |
completeFile(org.apache.hadoop.hdfs.DFSClient client,
org.apache.hadoop.hdfs.protocol.ClientProtocol namenode,
String src,
String clientName,
org.apache.hadoop.hdfs.protocol.ExtendedBlock block,
long fileId) |
private static List<org.apache.hbase.thirdparty.io.netty.util.concurrent.Future<org.apache.hbase.thirdparty.io.netty.channel.Channel>> |
connectToDataNodes(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hdfs.DFSClient client,
String clientName,
org.apache.hadoop.hdfs.protocol.LocatedBlock locatedBlock,
long maxBytesRcvd,
long latestGS,
org.apache.hadoop.hdfs.protocol.datatransfer.BlockConstructionStage stage,
org.apache.hadoop.util.DataChecksum summer,
org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup,
Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass) |
private static FanOutOneBlockAsyncDFSOutputHelper.BlockAdder |
createBlockAdder() |
(package private) static org.apache.hadoop.util.DataChecksum |
createChecksum(org.apache.hadoop.hdfs.DFSClient client) |
private static FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater |
createChecksumCreater() |
private static FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater |
createChecksumCreater27(Method getConfMethod,
Class<?> confClass) |
private static FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater |
createChecksumCreater28(Method getConfMethod,
Class<?> confClass) |
private static FanOutOneBlockAsyncDFSOutputHelper.DFSClientAdaptor |
createDFSClientAdaptor() |
private static FanOutOneBlockAsyncDFSOutputHelper.FileCreator |
createFileCreator() |
private static FanOutOneBlockAsyncDFSOutputHelper.FileCreator |
createFileCreator2() |
private static FanOutOneBlockAsyncDFSOutputHelper.FileCreator |
createFileCreator3() |
private static FanOutOneBlockAsyncDFSOutputHelper.LeaseManager |
createLeaseManager() |
static FanOutOneBlockAsyncDFSOutput |
createOutput(org.apache.hadoop.hdfs.DistributedFileSystem dfs,
org.apache.hadoop.fs.Path f,
boolean overwrite,
boolean createParent,
short replication,
long blockSize,
org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup,
Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass)
Create a
FanOutOneBlockAsyncDFSOutput . |
private static FanOutOneBlockAsyncDFSOutput |
createOutput(org.apache.hadoop.hdfs.DistributedFileSystem dfs,
String src,
boolean overwrite,
boolean createParent,
short replication,
long blockSize,
org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup,
Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass) |
private static FanOutOneBlockAsyncDFSOutputHelper.PBHelper |
createPBHelper() |
private static FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter |
createPipelineAckStatusGetter() |
private static FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter |
createPipelineAckStatusGetter26() |
private static FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter |
createPipelineAckStatusGetter27() |
private static FanOutOneBlockAsyncDFSOutputHelper.StorageTypeSetter |
createStorageTypeSetter() |
(package private) static void |
endFileLease(org.apache.hadoop.hdfs.DFSClient client,
long inodeId) |
(package private) static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.Status |
getStatus(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.PipelineAckProto ack) |
private static void |
initialize(org.apache.hadoop.conf.Configuration conf,
org.apache.hbase.thirdparty.io.netty.channel.Channel channel,
org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo,
Enum<?> storageType,
org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpWriteBlockProto.Builder writeBlockProtoBuilder,
int timeoutMs,
org.apache.hadoop.hdfs.DFSClient client,
org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> accessToken,
org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<org.apache.hbase.thirdparty.io.netty.channel.Channel> promise) |
private static void |
processWriteBlockResponse(org.apache.hbase.thirdparty.io.netty.channel.Channel channel,
org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo,
org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<org.apache.hbase.thirdparty.io.netty.channel.Channel> promise,
int timeoutMs) |
private static void |
requestWriteBlock(org.apache.hbase.thirdparty.io.netty.channel.Channel channel,
Enum<?> storageType,
org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpWriteBlockProto.Builder writeBlockProtoBuilder) |
static boolean |
shouldRetryCreate(org.apache.hadoop.ipc.RemoteException e) |
(package private) static void |
sleepIgnoreInterrupt(int retry) |
private static final org.slf4j.Logger LOG
public static final String ASYNC_DFS_OUTPUT_CREATE_MAX_RETRIES
public static final int DEFAULT_ASYNC_DFS_OUTPUT_CREATE_MAX_RETRIES
private static final org.apache.hbase.thirdparty.io.netty.buffer.ByteBufAllocator ALLOC
public static final long HEART_BEAT_SEQNO
public static final int READ_TIMEOUT
private static final org.apache.hadoop.hdfs.protocol.DatanodeInfo[] EMPTY_DN_ARRAY
private static final FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter PIPELINE_ACK_STATUS_GETTER
private static final FanOutOneBlockAsyncDFSOutputHelper.StorageTypeSetter STORAGE_TYPE_SETTER
private static final FanOutOneBlockAsyncDFSOutputHelper.BlockAdder BLOCK_ADDER
private static final FanOutOneBlockAsyncDFSOutputHelper.LeaseManager LEASE_MANAGER
private static final FanOutOneBlockAsyncDFSOutputHelper.DFSClientAdaptor DFS_CLIENT_ADAPTOR
private static final FanOutOneBlockAsyncDFSOutputHelper.PBHelper PB_HELPER
private static final FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater CHECKSUM_CREATER
private static final FanOutOneBlockAsyncDFSOutputHelper.FileCreator FILE_CREATOR
private FanOutOneBlockAsyncDFSOutputHelper()
private static FanOutOneBlockAsyncDFSOutputHelper.DFSClientAdaptor createDFSClientAdaptor() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.LeaseManager createLeaseManager() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter createPipelineAckStatusGetter27() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter createPipelineAckStatusGetter26() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.PipelineAckStatusGetter createPipelineAckStatusGetter() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.StorageTypeSetter createStorageTypeSetter() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.BlockAdder createBlockAdder() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.PBHelper createPBHelper() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater createChecksumCreater28(Method getConfMethod, Class<?> confClass) throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater createChecksumCreater27(Method getConfMethod, Class<?> confClass) throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.ChecksumCreater createChecksumCreater() throws NoSuchMethodException, ClassNotFoundException
private static FanOutOneBlockAsyncDFSOutputHelper.FileCreator createFileCreator3() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.FileCreator createFileCreator2() throws NoSuchMethodException
NoSuchMethodException
private static FanOutOneBlockAsyncDFSOutputHelper.FileCreator createFileCreator() throws NoSuchMethodException
NoSuchMethodException
static void beginFileLease(org.apache.hadoop.hdfs.DFSClient client, long inodeId)
static void endFileLease(org.apache.hadoop.hdfs.DFSClient client, long inodeId)
static org.apache.hadoop.util.DataChecksum createChecksum(org.apache.hadoop.hdfs.DFSClient client)
static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.Status getStatus(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.PipelineAckProto ack)
private static void processWriteBlockResponse(org.apache.hbase.thirdparty.io.netty.channel.Channel channel, org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo, org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<org.apache.hbase.thirdparty.io.netty.channel.Channel> promise, int timeoutMs)
private static void requestWriteBlock(org.apache.hbase.thirdparty.io.netty.channel.Channel channel, Enum<?> storageType, org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpWriteBlockProto.Builder writeBlockProtoBuilder) throws IOException
IOException
private static void initialize(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.channel.Channel channel, org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo, Enum<?> storageType, org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpWriteBlockProto.Builder writeBlockProtoBuilder, int timeoutMs, org.apache.hadoop.hdfs.DFSClient client, org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> accessToken, org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<org.apache.hbase.thirdparty.io.netty.channel.Channel> promise) throws IOException
IOException
private static List<org.apache.hbase.thirdparty.io.netty.util.concurrent.Future<org.apache.hbase.thirdparty.io.netty.channel.Channel>> connectToDataNodes(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hdfs.DFSClient client, String clientName, org.apache.hadoop.hdfs.protocol.LocatedBlock locatedBlock, long maxBytesRcvd, long latestGS, org.apache.hadoop.hdfs.protocol.datatransfer.BlockConstructionStage stage, org.apache.hadoop.util.DataChecksum summer, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass)
private static FanOutOneBlockAsyncDFSOutput createOutput(org.apache.hadoop.hdfs.DistributedFileSystem dfs, String src, boolean overwrite, boolean createParent, short replication, long blockSize, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass) throws IOException
IOException
public static FanOutOneBlockAsyncDFSOutput createOutput(org.apache.hadoop.hdfs.DistributedFileSystem dfs, org.apache.hadoop.fs.Path f, boolean overwrite, boolean createParent, short replication, long blockSize, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass) throws IOException
FanOutOneBlockAsyncDFSOutput
. The method maybe blocked so do not call it
inside an EventLoop
.IOException
public static boolean shouldRetryCreate(org.apache.hadoop.ipc.RemoteException e)
static void completeFile(org.apache.hadoop.hdfs.DFSClient client, org.apache.hadoop.hdfs.protocol.ClientProtocol namenode, String src, String clientName, org.apache.hadoop.hdfs.protocol.ExtendedBlock block, long fileId)
static void sleepIgnoreInterrupt(int retry)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.