confluent kafka topic update¶
フラグ¶
--config strings A comma-separated list of topics. Configuration ('key=value') overrides for the topic being created.
--dry-run Execute request without committing changes to Kafka.
--cluster string Kafka cluster ID.
--context string CLI context name.
--environment string Environment ID.
--url string Base URL of REST Proxy Endpoint of Kafka Cluster (include /kafka for embedded Rest Proxy). Must set flag or CONFLUENT_REST_URL.
--ca-cert-path string Path to a PEM-encoded CA to verify the Confluent REST Proxy.
--client-cert-path string Path to client cert to be verified by Confluent REST Proxy, include for mTLS authentication.
--client-key-path string Path to client private key, include for mTLS authentication.
--no-auth Include if requests should be made without authentication headers, and user will not be prompted for credentials.
--prompt Bypass use of available login credentials and prompt for Kafka Rest credentials.
--config strings A comma-separated list of topics configuration ('key=value') overrides for the topic being created.
-o, --output string Specify the output format as "human", "json", or "yaml". (default "human")
グローバルフラグ¶
-h, --help Show help for this command.
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
例¶
保持期間が 3 日(259200000 ミリ秒)となるように my_topic
トピックを変更します。
confluent kafka topic update my_topic --config="retention.ms=259200000"
指定されたクラスター(Kafka REST Proxy エンドポイントを提供)の my_topic
トピックを、保持期間が 3 日(259200000 ミリ秒)となるように変更します。
confluent kafka topic update my_topic --url http://localhost:8082 --config="retention.ms=259200000"
関連情報¶
- confluent kafka topic - Kafka のトピックを管理します。