A new feature has been added to acquire tablet id and schema hash of all the tablets on a particular BE node via Web page,so that more detailed information of each tablet can be obtained according to these tablet id and schema hash. In accordance with different web request, there are two ways (table and json)to show these acquired tablet id and schema hash on Web page.
2.4 KiB
title, language
| title | language |
|---|---|
| GET TABLETS ON A PARTICULAR BE | en |
GET TABLETS ON A PARTICULAR BE
Get the tablet id and schema hash for a certain number of tablets on a particular BE node
curl -X GET http://be_host:webserver_port/tablets_page?limit=XXXXX
The return is the tablet id and schema hash for a certain number of tablets on the BE node. The data is returned as a rendered Web page. The number of returned tablets is determined by the parameter limit. If parameter limit does not exist, none tablet will be returned. if the value of parameter limit is "all", all the tablets on the BE node will be returned. if the value of parameter limit is non-numeric type other than "all", none tablet will be returned.
curl -X GET http://be_host:webserver_port/tablets_json?limit=XXXXX
The return is the tablet id and schema hash for a certain number of tablets on the BE node. The returned data is organized as a Json object. The number of returned tablets is determined by the parameter limit. If parameter limit does not exist, none tablet will be returned. if the value of parameter limit is "all", all the tablets on the BE node will be returned. if the value of parameter limit is non-numeric type other than "all", none tablet will be returned.
{
msg: "OK",
code: 0,
data: {
host: "10.38.157.107",
tablets: [
{
tablet_id: 11119,
schema_hash: 714349777
},
...
{
tablet_id: 11063,
schema_hash: 714349777
}
]
},
count: 30
}