Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

add project parameter to clickhouse and cassandra cli #2382

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Use the :ref:`avn service terminate <avn-cli-service-terminate>` command to disa

.. code-block:: bash

avn service terminate ccr_peer_service_name
avn service terminate --project PROJECT_NAME ccr_peer_service_name

Disable CCR with API
--------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Create a new CCR service pair
.. code-block:: bash

avn service create \
--project project_name \
--service-type cassandra \
--cloud cloud_region_name \
--plan service_plan_name \
Expand All @@ -138,6 +139,7 @@ Create a new CCR service pair
.. code-block:: bash

avn service create \
--project project_name \
--service-type cassandra \
--cloud cloud_region_name \
--plan service_plan_name \
Expand All @@ -159,6 +161,7 @@ Use the :ref:`avn service create <avn-cli-service-create>` command to create a n
.. code-block:: bash

avn service create \
--project project_name \
--service-type cassandra \
--cloud cloud_region_name \
--plan service_plan_name \
Expand Down
4 changes: 2 additions & 2 deletions docs/products/clickhouse/howto/integrate-kafka.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@ Follow these instructions:
.. code::

avn service integration-list \
--project PROJECT \
--project PROJECT_NAME \
CLICKHOUSE_SERVICE_NAME | grep KAFKA_SERVICE_NAME

2. Update the configuration settings using the service integration id retrieved in the previous step and your integration settings. Replace ``SERVICE_INTEGRATION_ID``, ``CONNECTOR_TABLE_NAME``, ``DATA_FORMAT`` and ``CONSUMER_NAME`` with your values:

.. code::

avn service integration-update SERVICE_INTEGRATION_ID \
--project PROJECT \
--project PROJECT_NAME \
--user-config-json '{
"tables": [
{
Expand Down
6 changes: 3 additions & 3 deletions docs/products/clickhouse/howto/integrate-postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ When connecting to a PostgreSQL service, ClickHouse needs to know the name of th

.. code::

avn service integration-list CLICKHOUSE_SERVICE_NAME | grep PG_SERVICE_NAME
avn service integration-list --project PROJECT_NAME CLICKHOUSE_SERVICE_NAME | grep PG_SERVICE_NAME

2. Update the configuration settings using the service integration id retrieved in the previous step and your integration settings. Replace ``SERVICE_INTEGRATION_ID``, ``PG_DATABASE`` and ``PG_SCHEMA`` with your values, you can add more than one combination of database/schema in the object ``databases``:
1. Update the configuration settings using the service integration id retrieved in the previous step and your integration settings. Replace ``SERVICE_INTEGRATION_ID``, ``PG_DATABASE`` and ``PG_SCHEMA`` with your values, you can add more than one combination of database/schema in the object ``databases``:

.. code::

avn service integration-update SERVICE_INTEGRATION_ID \
avn service integration-update --project PROJECT_NAME SERVICE_INTEGRATION_ID \
--user-config-json '{
"databases":[{"database":"PG_DATABASE","schema":"PG_SCHEMA"}]
}'
Expand Down
Loading