Skip to content
Permalink
Browse files
CassadraQL Examples: Moved to 0.10.0
  • Loading branch information
oscerd committed May 26, 2021
1 parent 948528e commit 961488ccc1bc16e385450f02bae28c1420f160f8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
@@ -28,8 +28,8 @@ In this example we'll use `/home/oscerd/connectors/`

```
> cd /home/oscerd/connectors/
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-cql-kafka-connector/0.9.0/camel-cql-kafka-connector-0.9.0-package.tar.gz
> untar.gz camel-cql-kafka-connector-0.9.0-package.tar.gz
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-cql-kafka-connector/0.10.0/camel-cql-kafka-connector-0.10.0-package.tar.gz
> untar.gz camel-cql-kafka-connector-0.10.0-package.tar.gz
```

## Setting up Apache Cassandra
@@ -210,8 +210,8 @@ So we need to do something like this:

```
> cd my-connectors/
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-cql-kafka-connector/0.9.0/camel-cql-kafka-connector-0.9.0-package.tar.gz
> untar.gz camel-cql-kafka-connector-0.9.0-package.tar.gz
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-cql-kafka-connector/0.10.0/camel-cql-kafka-connector-0.10.0-package.tar.gz
> untar.gz camel-cql-kafka-connector-0.10.0-package.tar.gz
```

Now we can start the build
@@ -240,22 +240,22 @@ You should see something like this:
{
"class": "org.apache.camel.kafkaconnector.CamelSinkConnector",
"type": "sink",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.camel.kafkaconnector.CamelSourceConnector",
"type": "source",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.camel.kafkaconnector.cql.CamelCqlSinkConnector",
"type": "sink",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.camel.kafkaconnector.cql.CamelCqlSourceConnector",
"type": "source",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.kafka.connect.file.FileStreamSinkConnector",
@@ -27,7 +27,7 @@ and set the `plugin.path` property to your choosen location
You'll need to build your connector starting from an archetype:

```
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.9.0
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.10.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
@@ -43,31 +43,31 @@ You'll need to build your connector starting from an archetype:
[INFO] Generating project in Interactive mode
Define value for property 'groupId': org.apache.camel.kafkaconnector.cql.extended
Define value for property 'artifactId': cql-extended
Define value for property 'version' 1.0-SNAPSHOT: : 0.9.0
Define value for property 'version' 1.0-SNAPSHOT: : 0.10.0
Define value for property 'package' org.apache.camel.kafkaconnector.cql.extended: :
Define value for property 'camel-kafka-connector-name': camel-cql-kafka-connector
[INFO] Using property: camel-kafka-connector-version = 0.9.0
[INFO] Using property: camel-kafka-connector-version = 0.10.0
Confirm properties configuration:
groupId: org.apache.camel.kafkaconnector.cql.extended
artifactId: cql-extended
version: 0.9.0
version: 0.10.0
package: org.apache.camel.kafkaconnector.cql.extended
camel-kafka-connector-name: camel-cql-kafka-connector
camel-kafka-connector-version: 0.9.0
camel-kafka-connector-version: 0.10.0
Y: : Y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.9.0
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.10.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: artifactId, Value: cql-extended
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: version, Value: 0.10.0
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: packageInPathFormat, Value: org/apache/camel/kafkaconnector/cql/extended
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: version, Value: 0.10.0
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: camel-kafka-connector-name, Value: camel-cql-kafka-connector
[INFO] Parameter: camel-kafka-connector-version, Value: 0.9.0
[INFO] Parameter: camel-kafka-connector-version, Value: 0.10.0
[INFO] Parameter: artifactId, Value: cql-extended
[INFO] Project created from Archetype in dir: /home/oscerd/playground/cql-extended
[INFO] ------------------------------------------------------------------------
@@ -124,8 +124,8 @@ In this example we'll use `/home/oscerd/connectors/` as plugin.path, but we'll n

```
> cd /home/oscerd/connectors/
> cp /home/oscerd/playground/cql-extended/target/cql-extended-0.9.0-package.tar.gz .
> untar.gz cql-extended-0.9.0-package.tar.gz
> cp /home/oscerd/playground/cql-extended/target/cql-extended-0.10.0-package.tar.gz .
> untar.gz cql-extended-0.10.0-package.tar.gz
```

and we're now ready to setting up the Cassandra cluster.
@@ -276,7 +276,7 @@ so that each one is in its own subfolder
(alternatively you can download the latest officially released and packaged connectors from maven):

```
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.9.0
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.10.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
@@ -292,31 +292,31 @@ so that each one is in its own subfolder
[INFO] Generating project in Interactive mode
Define value for property 'groupId': org.apache.camel.kafkaconnector.cql.extended
Define value for property 'artifactId': cql-extended
Define value for property 'version' 1.0-SNAPSHOT: : 0.9.0
Define value for property 'version' 1.0-SNAPSHOT: : 0.10.0
Define value for property 'package' org.apache.camel.kafkaconnector.cql.extended: :
Define value for property 'camel-kafka-connector-name': camel-cql-kafka-connector
[INFO] Using property: camel-kafka-connector-version = 0.9.0
[INFO] Using property: camel-kafka-connector-version = 0.10.0
Confirm properties configuration:
groupId: org.apache.camel.kafkaconnector.cql.extended
artifactId: cql-extended
version: 0.9.0
version: 0.10.0
package: org.apache.camel.kafkaconnector.cql.extended
camel-kafka-connector-name: camel-cql-kafka-connector
camel-kafka-connector-version: 0.9.0
camel-kafka-connector-version: 0.10.0
Y: : Y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.9.0
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.10.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: artifactId, Value: cql-extended
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: version, Value: 0.10.0
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: packageInPathFormat, Value: org/apache/camel/kafkaconnector/cql/extended
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: version, Value: 0.10.0
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector.cql.extended
[INFO] Parameter: camel-kafka-connector-name, Value: camel-cql-kafka-connector
[INFO] Parameter: camel-kafka-connector-version, Value: 0.9.0
[INFO] Parameter: camel-kafka-connector-version, Value: 0.10.0
[INFO] Parameter: artifactId, Value: cql-extended
[INFO] Project created from Archetype in dir: /home/oscerd/playground/cql-extended
[INFO] ------------------------------------------------------------------------
@@ -373,8 +373,8 @@ In this example we'll use `/home/oscerd/connectors/` as plugin.path, but we'll n

```
> cd my-connectors/
> cp /home/oscerd/playground/cql-extended/target/cql-extended-0.9.0-package.tar.gz .
> untar.gz cql-extended-0.9.0-package.tar.gz
> cp /home/oscerd/playground/cql-extended/target/cql-extended-0.10.0-package.tar.gz .
> untar.gz cql-extended-0.10.0-package.tar.gz
```

Now we can start the build
@@ -403,22 +403,22 @@ You should see something like this:
{
"class": "org.apache.camel.kafkaconnector.CamelSinkConnector",
"type": "sink",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.camel.kafkaconnector.CamelSourceConnector",
"type": "source",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.camel.kafkaconnector.cql.CamelCqlSinkConnector",
"type": "sink",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.camel.kafkaconnector.cql.CamelCqlSourceConnector",
"type": "source",
"version": "0.9.0"
"version": "0.10.0"
},
{
"class": "org.apache.kafka.connect.file.FileStreamSinkConnector",

0 comments on commit 961488c

Please sign in to comment.