Migrate existing tables to use strongly consistent indexing
You can use the index upgrade tool to rebuild your indexes. After you run this tool, your existing tables will use the strongly consistent global index.
If you have Apache Phoenix tables that you migrated to Cloudera Runtime 7.1.6 or higher, you must convert the tables to use the strongly consistent index using the index upgrade tool.
- SSH to your HBASE_HOME directory.
Run the following command:
$[***HBASE_HOME***]/bin/hbase org.apache.phoenix.mapreduce.index.IndexUpgradeTool -o [***UPGRADE / ROLLBACK***] -tb [***TABLE NAME***] -lf [***/tmp/index-upgrade-tool.log***]Parameters:
-oType whether you want to upgrade or rollback
-tbType the table name that you want to upgrade or rollback
-lfType the path where you want to store the index upgrade tool log file