Also has utility for keeping up the table descriptors tableinfo file. The table schema file is kept under the table directory in the filesystem. It has a {@link #TABLEINFO_NAME} prefix and then a suffix that is theedit sequenceid: e.g. .tableinfo.0000000003
. This sequenceid is always increasing. It starts at zero. The table schema file with the highest sequenceid has the most recent schema edit. Usually there is one file only, the most recent but there may be short periods where there are more than one file. Old files are eventually cleaned. Presumption is that there will not be lots of concurrent clients making table schema edits. If so, the below needs a bit of a reworking and perhaps some supporting api in hdfs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|