Index: src/main/java/org/apache/hadoop/hbase/util/FSUtils.java =================================================================== --- src/main/java/org/apache/hadoop/hbase/util/FSUtils.java (revision 1153722) +++ src/main/java/org/apache/hadoop/hbase/util/FSUtils.java (working copy) @@ -966,7 +966,10 @@ /** * Create new HTableDescriptor in HDFS. Happens when we are creating table. - /** + * + * Note: If .tableinfo already exists in file system, it would be deleted + * before new one is written + * * @param htableDescriptor * @param conf */ @@ -981,6 +984,9 @@ } /** + * Note: If .tableinfo already exists in file system, it would be deleted + * before new one is written + * * @param fs * @param htableDescriptor * @param rootdir @@ -993,8 +999,8 @@ LOG.info("Current tableInfoPath = " + tableInfoPath) ; if (fs.exists(tableInfoPath) && fs.getFileStatus(tableInfoPath).getLen() > 0) { - LOG.info("TableInfo already exists.. Skipping creation"); - return; + LOG.info("TableInfo already exists.. Deleting " + tableInfoPath); + deleteDirectory(fs, tableInfoPath); } writeTableDescriptor(fs, htableDescriptor, getTablePath(rootdir, htableDescriptor.getNameAsString()));