@InterfaceAudience.Private public class DumpReplicationQueues extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description | 
|---|---|
| (package private) static class  | DumpReplicationQueues.DumpOptions | 
| private static class  | DumpReplicationQueues.WarnOnlyAbortable | 
| private static class  | DumpReplicationQueues.WarnOnlyStoppable | 
| Modifier and Type | Field and Description | 
|---|---|
| private List<String> | deadRegionServers | 
| private List<String> | deletedQueues | 
| private static org.slf4j.Logger | LOG | 
| private long | numWalsNotFound | 
| private org.apache.hbase.thirdparty.com.google.common.util.concurrent.AtomicLongMap<String> | peersQueueSize | 
| private long | totalSizeOfWALs | 
| Constructor and Description | 
|---|
| DumpReplicationQueues() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | dumpPeersState(List<ReplicationPeerDescription> peers) | 
| String | dumpQueues(ZKWatcher zkw,
          Set<String> peerIds,
          boolean hdfs) | 
| private int | dumpReplicationQueues(DumpReplicationQueues.DumpOptions opts) | 
| String | dumpReplicationSummary() | 
| private String | formatQueue(ServerName regionserver,
           ReplicationQueueStorage queueStorage,
           ReplicationQueueInfo queueInfo,
           String queueId,
           List<String> wals,
           boolean isDeleted,
           boolean hdfs) | 
| private long | getTotalWALSize(org.apache.hadoop.fs.FileSystem fs,
               List<String> wals,
               ServerName server)return total size in bytes from a list of WALs | 
| static void | main(String[] args)Main | 
| (package private) static DumpReplicationQueues.DumpOptions | parseOpts(Queue<String> args) | 
| protected void | printUsage() | 
| protected static void | printUsage(String message) | 
| protected static void | printUsage(String className,
          String message) | 
| protected static void | printUsageAndExit(String message,
                 int exitCode) | 
| int | run(String[] args) | 
private static final org.slf4j.Logger LOG
private List<String> deadRegionServers
private List<String> deletedQueues
private org.apache.hbase.thirdparty.com.google.common.util.concurrent.AtomicLongMap<String> peersQueueSize
private long totalSizeOfWALs
private long numWalsNotFound
public DumpReplicationQueues()
static DumpReplicationQueues.DumpOptions parseOpts(Queue<String> args)
public static void main(String[] args) throws Exception
args - Exceptionpublic int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionprotected void printUsage()
protected static void printUsage(String message)
protected static void printUsage(String className, String message)
protected static void printUsageAndExit(String message, int exitCode)
private int dumpReplicationQueues(DumpReplicationQueues.DumpOptions opts) throws Exception
Exceptionpublic String dumpReplicationSummary()
public String dumpPeersState(List<ReplicationPeerDescription> peers) throws Exception
Exceptionpublic String dumpQueues(ZKWatcher zkw, Set<String> peerIds, boolean hdfs) throws Exception
Exceptionprivate String formatQueue(ServerName regionserver, ReplicationQueueStorage queueStorage, ReplicationQueueInfo queueInfo, String queueId, List<String> wals, boolean isDeleted, boolean hdfs) throws Exception
Exceptionprivate long getTotalWALSize(org.apache.hadoop.fs.FileSystem fs, List<String> wals, ServerName server) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.