Kafka Connect-Konfiguration aktualisieren
Aktualisieren Sie eine Kafka Connect-Konfiguration im Streaming-Service. Sie können Tags aktualisieren.
Informationen zum Prüfen der Anforderungen für die Arbeit mit Kafka Connect finden Sie unter Verwenden von Kafka Connect.
Verwenden Sie den Befehl oci streaming admin connect-harness update und die erforderlichen Parameter, um eine Kafka Connect-Konfiguration zu aktualisieren:
oci streaming admin connect-harness update --connect-harness-id <kafka_connect_configuration_OCID> --defined-tags <JSON_tags>
Beispiel:
oci streaming admin connect-harness update --connect-harness-id exampleuniqueid --defined-tags "{\"tagNamespace\": {\"tagKey1\": \"tagValue1\",\"tagKey2\": \"tagValue2\"}}" WARNING: Updates to freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue? [y/N]: y
Wählen Sie
y
aus, und drücken Sie dieEingabetaste
. Die Kafka Connect-Konfiguration wird aktualisiert:{ "data": { "compartment-id": "ocid1.tenancy.oc1..exampleuniqueID", "defined-tags": { "tagNamespace": { "tagKey1": "tagValue1", "tagKey2": "tagValue2" } }, "freeform-tags": {}, "id": "ocid1.connectharness.oc1.phx.exampleuniqueID", "lifecycle-state": "UPDATING", "lifecycle-state-details": null, "name": "MyKafkaConnectConfig", "time-created": "2020-08-31T17:26:09.640000+00:00" }, "etag": "\"f3b74455-2584-4f20-a8bd-24068b1d0cba-2f66ecee-2e34-4c92-90d6-5c643b2be3fb\"" }
Eine vollständige Liste der Parameter und Werte für CLI-Befehle finden Sie in der CLI-Befehlsreferenz.
Führen Sie den Vorgang UpdateConnectHarness aus, um eine Kafka Connect-Konfiguration zu aktualisieren.