Skip to content
Open
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
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ repos:
^providers/amazon/src/airflow/providers/amazon/aws/operators/emr\.py$|
^providers/.*/get_provider_info\.py$|
^providers/.*/provider\.yaml$|
^providers/apache/cassandra/docs/connections/cassandra\.rst$|
^providers/apache/cassandra/src/airflow/providers/apache/cassandra/hooks/cassandra\.py$|
^providers/apache/hdfs/docs/connections\.rst$|
^providers/apache/hive/src/airflow/providers/apache/hive/operators/hive_stats\.py$|
Expand Down
6 changes: 3 additions & 3 deletions providers/apache/cassandra/docs/connections/cassandra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Extra (optional)
are supported:

* ``load_balancing_policy`` - This parameter specifies the load balancing policy to be used. There are four available policies:
``RoundRobinPolicy``, ``DCAwareRoundRobinPolicy``, ``AllowListRoundRobinPolicy`` and ``TokenAwarePolicy``. ``RoundRobinPolicy`` is the default load balancing policy.
``RoundRobinPolicy``, ``DCAwareRoundRobinPolicy``, ``WhiteListRoundRobinPolicy`` and ``TokenAwarePolicy``. ``RoundRobinPolicy`` is the default load balancing policy.
* ``load_balancing_policy_args`` - This parameter specifies the arguments for the load balancing policy being used.
* ``cql_version`` - This parameter specifies the CQL version of cassandra.
* ``protocol_version`` - This parameter specifies the maximum version of the native protocol to use.
Expand Down Expand Up @@ -88,12 +88,12 @@ DCAwareRoundRobinPolicy:
}
}

AllowListRoundRobinPolicy
WhiteListRoundRobinPolicy

.. code-block:: json

{
"load_balancing_policy": "AllowListRoundRobinPolicy",
"load_balancing_policy": "WhiteListRoundRobinPolicy",
"load_balancing_policy_args": {
"hosts": ["HOST1", "HOST2", "HOST3"]
}
Expand Down
Loading