Full index build

更新时间:
复制 MD 格式

After you configure the mapping between an HBase table and a search index, new data written to the table is automatically synchronized to the index. For existing data in the table, you must manually run a full build to synchronize the data.

Full build

In HBase Shell, run the build_external_index command to build an index for the data in your HBase table. This command runs asynchronously.

Important During a full build, DDL operations on the HBase table are blocked until the build is complete. However, this does not affect read and write operations on the table.
  hbase shell> build_external_index 'testTable'

Full build progress

The full build for existing data is performed by the associated BDS. You can monitor the progress on the BDS web console.

  1. Open the web console for the associated BDS instance. On the instance details page, click Database Connection in the left-side navigation pane. In the UI Access section, click the BDS link in the Engine Software UI row to open the web console.
  2. On the BDS web console, click Lindorm Search and select Full Synchronization. The Lindorm Search Full Synchronization page has two sections: Running Tasks and Completed Tasks. The table displays the Task Name, source cluster, target cluster, and Status for each task. The status of completed tasks is SUCCESS.
  3. Click a task name to view the status of the full build. A status of SUCCESS indicates that the build is complete.

Cancel build task

To stop an index build task, use one of the following methods:

 hbase> cancel_build_external_index 'testTable'

Alternatively, on the full build progress page in the BDS web console, you can click Stop and then delete the task.