Skip to content

Commit a02e836

Browse files
authored
Updating the AWS quickstart document. (#19) (#20)
1 parent 41312bd commit a02e836

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

AWS.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,20 @@ This is not intended to be a description of setting up a production environment.
5353
* See https://docs.bitnami.com/aws/faq/#how-to-find-application-credentials for more information
5454

5555
## Initializing Kafka
56-
* ssh -i kafka.pem bitnami@<Kafka instance Public DNS>
57-
* /opt/bitnami/kafka/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic marklogic
56+
* SSH to the Kafka instance
57+
<pre>ssh -i kafka.pem bitnami@&lt;Kafka instance Public DNS&gt;</pre>
58+
* Turn off SASL authentication (on lines 28, 36, and 142, change “SASL_PLAINTEXT” to “PLAINTEXT”):
59+
<pre>sudo vi /opt/bitnami/kafka/conf/server.properties</pre>
60+
* Restart the Kafka service
61+
<pre>sudo /opt/bitnami/ctlscript.sh restart kafka</pre>
62+
* Create a topic called, "marklogic". (Note - this won't work until the Kafka service has restarted)
63+
<pre>/opt/bitnami/kafka/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic marklogic</pre>
5864

5965
## Test Kafka
6066
* In one terminal, /opt/bitnami/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic marklogic --consumer.config /opt/bitnami/kafka/config/consumer.properties --from-beginning
6167
* In a second terminal, /opt/bitnami/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --producer.config /opt/bitnami/kafka/config/producer.properties --topic marklogic
6268
* In the producer console, enter a message. For example,
63-
{"A" : "a"}
69+
{ "Foo" : "bar" }
6470
* The terminal with the consumer should spit out the message you entered in the producer
6571

6672
## Configure & Build the MarkLogic Consumer
@@ -74,14 +80,14 @@ This is not intended to be a description of setting up a production environment.
7480

7581
## Deploy the MarkLogic Consumer
7682
* scp -i kafka.pem config/marklogic-* bitnami@<Kafka instance Public DNS>:/tmp
77-
* scp -i kafka.pem build/libs/kafka-connect-marklogic-0.9.0.jar bitnami@<Kafka instance Public DNS>:/tmp
83+
* scp -i kafka.pem build/libs/kafka-connect-marklogic-<version>.jar bitnami@<Kafka instance Public DNS>:/tmp
7884
* ssh -i kafka.pem bitnami@<Kafka instance Public DNS>
7985
sudo mv /tmp/marklogic-* /opt/bitnami/kafka/config
8086
sudo chmod 644 /opt/bitnami/kafka/config/marklogic-*
8187
sudo chown root:root /opt/bitnami/kafka/config/marklogic-*
82-
sudo mv /tmp/kafka-connect-marklogic-0.9.0.jar /opt/bitnami/kafka/libs
83-
sudo chmod 644 /opt/bitnami/kafka/libs/kafka-connect-marklogic-0.9.0.jar
84-
sudo chown root:root /opt/bitnami/kafka/libs/kafka-connect-marklogic-0.9.0.jar
88+
sudo mv /tmp/kafka-connect-marklogic-<version>.jar /opt/bitnami/kafka/libs
89+
sudo chmod 644 /opt/bitnami/kafka/libs/kafka-connect-marklogic-<version>.jar
90+
sudo chown root:root /opt/bitnami/kafka/libs/kafka-connect-marklogic-<version>.jar
8591

8692
## Start the MarkLogic Consumer
8793
* While still connected to the Kafka server

0 commit comments

Comments
 (0)