HBASE-6971 .META. directory does not contain .tableinfo serialization
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1396928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00f8c0d6ca
commit
da4fd3e29b
|
@ -380,16 +380,12 @@ public class MasterFileSystem {
|
||||||
if (!FSUtils.rootRegionExists(fs, rd)) {
|
if (!FSUtils.rootRegionExists(fs, rd)) {
|
||||||
bootstrap(rd, c);
|
bootstrap(rd, c);
|
||||||
}
|
}
|
||||||
createRootTableInfo(rd);
|
|
||||||
return rd;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createRootTableInfo(Path rd) throws IOException {
|
// Create tableinfo-s for ROOT and META if not already there.
|
||||||
// Create ROOT tableInfo if required.
|
FSTableDescriptors.createTableDescriptor(fs, rd, HTableDescriptor.ROOT_TABLEDESC, false);
|
||||||
if (!FSTableDescriptors.isTableInfoExists(fs, rd,
|
FSTableDescriptors.createTableDescriptor(fs, rd, HTableDescriptor.META_TABLEDESC, false);
|
||||||
Bytes.toString(HRegionInfo.ROOT_REGIONINFO.getTableName()))) {
|
|
||||||
FSTableDescriptors.createTableDescriptor(HTableDescriptor.ROOT_TABLEDESC, this.conf);
|
return rd;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void bootstrap(final Path rd, final Configuration c)
|
private static void bootstrap(final Path rd, final Configuration c)
|
||||||
|
|
Loading…
Reference in New Issue