@InterfaceAudience.LimitedPrivate(value="Tools") public class CopyReplicationPeers extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
static String |
NAME |
Constructor and Description |
---|
CopyReplicationPeers(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
private ReplicationPeerStorage |
create(String type,
org.apache.hadoop.fs.FileSystem fs,
ZKWatcher zk) |
private ZKWatcher |
createZKWatcher() |
static void |
main(String[] args) |
private void |
migrate(ReplicationPeerStorage src,
ReplicationPeerStorage dst) |
int |
run(String[] args) |
private static final org.slf4j.Logger LOG
public static final String NAME
public CopyReplicationPeers(org.apache.hadoop.conf.Configuration conf)
private ReplicationPeerStorage create(String type, org.apache.hadoop.fs.FileSystem fs, ZKWatcher zk)
private ZKWatcher createZKWatcher() throws IOException
IOException
private void migrate(ReplicationPeerStorage src, ReplicationPeerStorage dst) throws ReplicationException
ReplicationException
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.