nodetool move — 노드 토큰 이동

nodetool move — 노드 토큰 이동

move 명령은 토큰 링에서 노드를 새 토큰으로 이동시키는 nodetool 명령이에요. 노드의 토큰(파티셔닝 위치)을 변경할 때 씁니다.

출처: nodetool move

본문

이 명령은 토큰 링에서 노드의 위치로 사용할 새 토큰을 지정해 노드를 이동시켜요. 노드가 담당하는 데이터 범위를 변경하면 리스트리밍이 발생할 수 있어 주의해야 해요.

원문의 사용법은 다음과 같습니다.

NAME
        nodetool move - Move node on the token ring to a new token
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>)] move [--] <new token>
OPTIONS
        -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
        -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
        <new token>
            The new token.

옵션과 인자를 하나씩 살펴볼게요.

  • -h <host>, --host <host> — 대상 노드의 호스트명 또는 IP 주소를 지정해요.
  • -p <port>, --port <port> — 원격 JMX 에이전트 포트 번호를 지정해요.
  • -pp, --print-port — 호스트를 포트 번호로 구분하는 4.0 모드로 동작해요.
  • -pw <password>, --password <password> — 원격 JMX 에이전트 비밀번호를 지정해요.
  • -pwf <passwordFilePath>, --password-file <passwordFilePath> — JMX 비밀번호 파일의 경로를 지정해요.
  • -u <username>, --username <username> — 원격 JMX 에이전트 사용자 이름을 지정해요.
  • -- — 명령줄 옵션과 인자 목록을 구분할 때 써요.
  • <new token> — 이동할 새 토큰 값을 지정해요.

더 알아보기