Nayananga commented on pull request #185:
URL: 
https://github.com/apache/camel-kafka-connector/pull/185#issuecomment-628833627


   > Can you please show how you're running the example step by step? I think 
there is something wrong in your classpath
   
   ### Here my steps to reproduce,
   #### 1) Download the Kafka 2.5.0 release and un-tar it.
   #### 2) Add ```export KAFKA_HOME=<your kafka install dir>``` into 
.bash_profile file.
   #### 3) Each time call ```source ~/.bash_profile```
   ##### 3.1) ```$KAFKA_HOME/bin/zookeeper-server-start.sh 
$KAFKA_HOME/config/zookeeper.properties```
   ##### 3.2) ```$KAFKA_HOME/bin/kafka-server-start.sh 
$KAFKA_HOME/config/server.properties```
   ##### 3.4)
   ```
   $KAFKA_HOME/bin/kafka-topics.sh --create \
     --zookeeper localhost:2181 \
     --replication-factor 1 \
     --partitions 1 \
     --topic myopic
   ```
   ##### 3.5)```$KAFKA_HOME/bin/kafka-console-consumer.sh --bootstrap-server 
localhost:9092 --topic mytopic --from-beginning```
   ##### 3.6) ```$KAFKA_HOME/bin/kafka-console-producer.sh --broker-list 
localhost:9092 --topic mytopic```
   #### 4) Add ```export CLASSPATH="$(find core/target/ -type f -name '*.jar'| 
grep '\-package' | tr '\n' ':')"``` into .bash_profile file
   #### 5) clone this projec
   #### 6) in project root run ```./mvnw package```
   #### 7) call ```source ~/.bash_profile```
   ![Screenshot from 2020-05-15 
00-22-49](https://user-images.githubusercontent.com/25351304/81975372-8a45e380-9644-11ea-8570-05b38ad0327c.png)
   #####
    7.1) ```$KAFKA_HOME/bin/connect-standalone.sh 
$KAFKA_HOME/config/connect-standalone.properties 
config/CamelSourceConnector.properties```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to