nodetool invalidatepermissionscache — 권한 캐시 무효화

nodetool invalidatepermissionscache — 권한 캐시 무효화

invalidatepermissionscache 명령은 권한(permissions) 캐시를 무효화하는 nodetool 명령이에요. 역할/키스페이스/테이블/함수/MBean 등 세부 리소스 단위로 캐시를 비울 수 있어요.

출처: nodetool invalidatepermissionscache

본문

이 명령은 노드의 권한 캐시를 무효화해요. --all-* 옵션으로 전체 리소스를 한 번에, --role, --keyspace, --table, --function, --mbean 옵션으로 특정 리소스의 권한만 무효화할 수 있어요.

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

NAME
        nodetool invalidatepermissionscache - Invalidate the permissions cache
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>)] invalidatepermissionscache
                [--all-functions] [--all-keyspaces] [--all-mbeans] [--all-roles]
                [--all-tables] [--function <function>]
                [--functions-in-keyspace <functions-in-keyspace>]
                [--keyspace <keyspace>] [--mbean <mbean>] [--role <role>]
                [--table <table>] [--] [<role>]
OPTIONS
        --all-functions
            Invalidate permissions for 'ALL FUNCTIONS'
        --all-keyspaces
            Invalidate permissions for 'ALL KEYSPACES'
        --all-mbeans
            Invalidate permissions for 'ALL MBEANS'
        --all-roles
            Invalidate permissions for 'ALL ROLES'
        --all-tables
            Invalidate permissions for 'ALL TABLES'
        --function <function>
            Function to invalidate permissions for (you must specify
            --functions-in-keyspace for using this option; function format:
            name[arg1^..^agrN], for example: foo[Int32Type^DoubleType])
        --functions-in-keyspace <functions-in-keyspace>
            Keyspace to invalidate permissions for
        -h <host>, --host <host>
            Node hostname or ip address
        --keyspace <keyspace>
            Keyspace to invalidate permissions for
        --mbean <mbean>
            MBean to invalidate permissions for
        -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
        --role <role>
            Role to invalidate permissions for
        --table <table>
            Table to invalidate permissions for (you must specify --keyspace for
            using this option)
        -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
        [<role>]
            A role for which permissions to specified resources need to be
            invalidated

옵션을 하나씩 살펴볼게요.

  • --all-functions — 'ALL FUNCTIONS'에 대한 권한을 무효화해요.
  • --all-keyspaces — 'ALL KEYSPACES'에 대한 권한을 무효화해요.
  • --all-mbeans — 'ALL MBEANS'에 대한 권한을 무효화해요.
  • --all-roles — 'ALL ROLES'에 대한 권한을 무효화해요.
  • --all-tables — 'ALL TABLES'에 대한 권한을 무효화해요.
  • --function <function> — 권한을 무효화할 함수를 지정해요. 이 옵션을 쓰려면 --functions-in-keyspace를 함께 지정해야 해요. 함수 형식은 name[arg1^..^agrN]이며, 예: foo[Int32Type^DoubleType].
  • --functions-in-keyspace <functions-in-keyspace> — 권한을 무효화할 키스페이스를 지정해요.
  • --keyspace <keyspace> — 권한을 무효화할 키스페이스를 지정해요.
  • --mbean <mbean> — 권한을 무효화할 MBean을 지정해요.
  • --role <role> — 권한을 무효화할 역할을 지정해요.
  • --table <table> — 권한을 무효화할 테이블을 지정해요. 이 옵션을 쓰려면 --keyspace를 함께 지정해야 해요.
  • -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 에이전트 사용자 이름을 지정해요.
  • -- — 명령줄 옵션과 인자 목록을 구분할 때 써요.
  • [<role>] — 지정한 리소스에 대한 권한을 무효화할 역할을 지정해요.

더 알아보기