简体   繁体   English

Cassandra:SSTableLoader使用什么协议?

[英]Cassandra: what protocol used in SSTableLoader?

Imho, there are 2 available protocols to connect client app to cassandra server: CQL and thrift. Imho,有两种可用的协议可将客户端应用程序连接到cassandra服务器:CQL和Thrift。

What protocol used by SSTableLoader utility to load sstables to cassandra cluster? SSTableLoader实用程序使用什么协议将sstables加载到cassandra集群? As I understand it does not use CQL because it is impossible to do bulk loading with good performance via CQL. 据我了解,它不使用CQL,因为不可能通过CQL进行具有良好性能的批量加载。

If thrift then the question is: how it uses thrift for bulk loading? 如果是节俭的,那么问题是:如何使用节俭进行批量装载?

Yep, thrift is used . 是的,使用节俭

it is impossible to do bulk loading with good performance via CQL 通过CQL不可能以良好的性能进行批量加载

Not really true, its just that the functionality has already been implemented and there's no reason for re-implementing it in CQL because thrift wont be getting dropped (allows for good backwards compatibility) 并不是真的,只是功能已经实现,没有理由在CQL中重新实现它,因为节俭不会被丢弃(允许良好的向后兼容性)

To sum it up, the sstables are read in, a thrift client is created for streaming said data and then a LoaderFuture task is created to coordinate the streaming. 总而言之,读入稳定表,创建节俭客户端以流传输所述数据,然后创建LoaderFuture任务以协调流传输。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM