nodetool upgradesstables — SSTable 업그레이드 재작성
nodetool upgradesstables — SSTable 업그레이드 재작성
이 명령은 요청한 테이블의 SSTable을 현재의 스토리지 엔진 버전과 호환되는 형식으로 다시 작성해요. Cassandra 버전 업그레이드 후 이전 버전이 남긴 오래된 SSTable 형식을 새 형식으로 스트리밍 없이 로컬에서 재작성하여 정리할 때 사용합니다.
본문
실제 사용 구문은 아래와 같아요. 옵션 설명은 명령의 도움말(usage)을 그대로 옮긴 것이니, 실행 환경에 맞춰 필요한 옵션만 골라 사용하면 됩니다.
NAME
nodetool upgradesstables - Rewrite sstables (for the requested tables)
that are not on the current version (thus upgrading them to said current
version)
SYNOPSIS
nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
[(-pp | --print-port)] [(-pw <password> | --password <password>)]
[(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
[(-u <username> | --username <username>)] upgradesstables
[(-a | --include-all-sstables)] [(-j <jobs> | --jobs <jobs>)]
[(-t <max_timestamp> | --max-timestamp <max_timestamp>)] [--]
[<keyspace> <tables>...]
OPTIONS
-a, --include-all-sstables
Use -a to include all sstables, even those already on the current
version
-h <host>, --host <host>
Node hostname or ip address
-j <jobs>, --jobs <jobs>
Number of sstables to upgrade simultanously, set to 0 to use all
available compaction threads
-p <port>, --port <port>
Remote jmx agent port number
-pp, --print-port
Operate in 4.0 mode with hosts disambiguated by port number
-pw <password>, --password <password>
Remote jmx agent password
-pwf <passwordFilePath>, --password-file <passwordFilePath>
Path to the JMX password file
-t <max_timestamp>, --max-timestamp <max_timestamp>
Use -t to compact only SSTables that have local creation time
_older_ than the given timestamp
-u <username>, --username <username>
Remote jmx agent username
--
This option can be used to separate command-line options from the
list of argument, (useful when arguments might be mistaken for
command-line options
[<keyspace> <tables>...]
The keyspace followed by one or many tables