HBASE-17648: HBase Table-level synchronization fails between two secured(kerberized) cluster
Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
parent
4038917239
commit
b141603e2e
|
@ -144,6 +144,12 @@ public class SyncTable extends Configured implements Tool {
|
||||||
// would be nice to add an option for bulk load instead
|
// would be nice to add an option for bulk load instead
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Obtain an authentication token, for the specified cluster, on behalf of the current user
|
||||||
|
if (sourceZkCluster != null) {
|
||||||
|
Configuration peerConf =
|
||||||
|
HBaseConfiguration.createClusterConf(job.getConfiguration(), sourceZkCluster);
|
||||||
|
TableMapReduceUtil.initCredentialsForCluster(job, peerConf);
|
||||||
|
}
|
||||||
return job;
|
return job;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue