nodetool verify — 테이블 데이터 검증

nodetool verify — 테이블 데이터 검증

이 명령은 하나 이상의 테이블에 대해 데이터 체크섬(checksum) 검증을 수행해요. SSTable 데이터가 손상되지 않았는지, 디스크 손상이나 비정상 종료로 인한 문제가 없는지를 확인할 때 사용합니다.

출처: nodetool verify — 테이블 데이터 검증

본문

실제 사용 구문은 아래와 같아요. 옵션 설명은 명령의 도움말(usage)을 그대로 옮긴 것이니, 실행 환경에 맞춰 필요한 옵션만 골라 사용하면 됩니다.

NAME
        nodetool verify - Verify (check data checksum for) one or more tables

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>)] verify
                [(-c | --check-version)] [(-d | --dfp)] [(-e | --extended-verify)]
                [(-f | --force)] [(-q | --quick)] [(-r | --rsc)] [(-t | --check-tokens)]
                [--] [<keyspace> <tables>...]

OPTIONS
        -c, --check-version
            Also check that all sstables are the latest version

        -d, --dfp
            Invoke the disk failure policy if a corrupt sstable is found

        -e, --extended-verify
            Verify each cell data, beyond simply checking sstable checksums

        -f, --force
            Override disabling of verify tool - see CASSANDRA-9947 for caveats

        -h <host>, --host <host>
            Node hostname or ip address

        -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

        -q, --quick
            Do a quick check - avoid reading all data to verify checksums

        -r, --rsc
            Mutate the repair status on corrupt sstables

        -t, --check-tokens
            Verify that all tokens in sstables are owned by this node

        -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

더 알아보기 (Learn more)