HBASE-6397 [hbck] print out bulk load commands for sidelined regions if necessary
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1362245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b51219af6
commit
265aa530a5
@ -2135,9 +2135,14 @@ public class HBaseFsck {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void dumpSidelinedRegions(Map<Path, HbckInfo> regions) {
|
public void dumpSidelinedRegions(Map<Path, HbckInfo> regions) {
|
||||||
for (Path k : regions.keySet()) {
|
for (Map.Entry<Path, HbckInfo> entry: regions.entrySet()) {
|
||||||
System.out.println("To be bulk loaded sidelined region dir: "
|
String tableName = Bytes.toStringBinary(entry.getValue().getTableName());
|
||||||
+ k.toString());
|
Path path = entry.getKey();
|
||||||
|
System.out.println("This sidelined region dir should be bulk loaded: "
|
||||||
|
+ path.toString());
|
||||||
|
System.out.println("Bulk load command looks like: "
|
||||||
|
+ "hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles "
|
||||||
|
+ path.toUri().getPath() + " "+ tableName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user