sstableloader是cassandra提供的bulkload工具,可以將sstable文件導(dǎo)入到集群中。本文詳細(xì)介紹其用法和實(shí)現(xiàn)原理。
用法
sstableloader工具在cassandra的bin目錄下面,用法如下:
bin/sstableloader <options> <dir_path>
具體的選項(xiàng)可以參考官方文檔的介紹
<https://yq.aliyun.com/go/articleRenderRedirect?url=http%3A%2F%2Fcassandra.apache.org%2Fdoc%2Flatest%2Ftools%2Fsstable%2Fsstableloader.html%23usage>
,常見(jiàn)的選項(xiàng)有:
-d, –nodes 目標(biāo)集群的nodes
-u, –username 用戶名
-pw, –password 密碼
-t, –throttle 限速,單位Mbits/s (默認(rèn)不限制)
-cph, –connections-per-host 和每個(gè)節(jié)點(diǎn)建立多少連接
<dir_path>參數(shù)指定要導(dǎo)入的sstable文件所在的
熱門(mén)工具 換一換
