이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 19. Cassandra Source
Send a query to an Apache Cassandra cluster table.
19.1. Configuration Options 링크 복사링크가 클립보드에 복사되었습니다!
The following table summarizes the configuration options available for the cassandra-source Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| connectionHost * | Connection Host | The hostname(s) for the Cassandra server(s). Use a comma to separate multiple hostnames. | string | localhost | |
| connectionPort * | Connection Port | The port number(s) of the cassandra server(s). Use a comma to separate multiple port numbers. | string | 9042 | |
| keyspace * | Keyspace | The keyspace to use. | string | customers | |
| query * | Query | The query to execute against the Cassandra cluster table. | string | ||
| consistencyLevel | Consistency Level | The consistency level to use. | string | QUORUM | |
| extraTypeCodecs | Extra Type Codecs | To use a specific comma separated list of Extra Type codecs. | string | ||
| password | Password | The password for accessing a secured Cassandra cluster. | string | ||
| resultStrategy | Result Strategy | The strategy to convert the result set of the query. | string | ALL | |
| username | Username | The username for accessing a secured Cassandra cluster. | string |
* = Fields marked with an asterisk are mandatory.
19.2. Dependencies 링크 복사링크가 클립보드에 복사되었습니다!
19.2.1. Quarkus dependencies 링크 복사링크가 클립보드에 복사되었습니다!
19.3. Usage 링크 복사링크가 클립보드에 복사되었습니다!
19.3.1. Camel JBang usage 링크 복사링크가 클립보드에 복사되었습니다!
19.3.1.1. Prerequisites for JBang 링크 복사링크가 클립보드에 복사되었습니다!
- Install JBang.
You have executed the following command:
jbang app install camel@apache/camel
jbang app install camel@apache/camelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
19.3.1.2. Running a route with JBang 링크 복사링크가 클립보드에 복사되었습니다!
Suppose you have a file named route.yaml with this content:
You can now run it directly through the following command.
camel run route.yaml
camel run route.yaml
19.3.2. Knative Source 링크 복사링크가 클립보드에 복사되었습니다!
You can use the cassandra-source Kamelet as a Knative source by binding it to a Knative object.
cassandra-source-binding.yaml
19.3.3. Kafka Source 링크 복사링크가 클립보드에 복사되었습니다!
You can use the cassandra-source Kamelet as a Kafka source by binding it to a Kafka topic.
cassandra-source-binding.yaml