Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra 通过thrift或CQL api检索环形令牌_Cassandra - Fatal编程技术网

Cassandra 通过thrift或CQL api检索环形令牌

Cassandra 通过thrift或CQL api检索环形令牌,cassandra,Cassandra,是否可以通过thrift或CQL api检索令牌到节点的分配信息(也称为环状态)。我正在寻找类似于nodetool ring命令返回的输出?我需要这一点来优化客户端应用程序,使其直接到达包含请求数据的节点,从而节省一个网络跳数。thrift接口有一个方法description\u ring,可以返回此信息 在CQL中,此信息位于系统中。对等方表: select * from system.peers;

是否可以通过thrift或CQL api检索令牌到节点的分配信息(也称为环状态)。我正在寻找类似于
nodetool ring
命令返回的输出?我需要这一点来优化客户端应用程序,使其直接到达包含请求数据的节点,从而节省一个网络跳数。

thrift接口有一个方法
description\u ring
,可以返回此信息

在CQL中,此信息位于
系统中。对等方
表:

select * from system.peers;