Tablet metadata management tool
To facilitate the maintenance of these metadata, we provide an online HTTP interface and an offline meta tool to complete related management operations.
The HTTP interface is only used to view tablet metadata online, and can be used when the BE process is running.
However, meta tool is only used for off-line metadata management operations. BE must be stopped before it can be used.
The meta tool tool is stored in the Lib / directory of BE.
Operation
Viewing Tablet Meta information can be divided into online and offline methods
On-line
Access BE’s HTTP interface to obtain the corresponding Tablet Meta information:
api:
Give an example:
http://be_host:8040/api/meta/header/14156/2458238340
If the final query is successful, the Tablet Meta will be returned as json.
Offline
Order:
root_path: The corresponding root_path path path configured in be.conf.
The result is also a presentation of Tablet Meta in JSON format.
The function of loading header is provided to realize manual migration of tablet. This function is based on Tablet Meta in JSON format, so if changes in the shard field and version information are involved, they can be changed directly in the JSON content of Tablet Meta. Then use the following commands to load.
Order:
In order to realize the function of deleting a tablet from a disk of a be.
Order:
Order: