Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run aws s3 source connector #95

Closed
ruchirvaninasdaq opened this issue Feb 25, 2020 · 37 comments
Closed

Not able to run aws s3 source connector #95

ruchirvaninasdaq opened this issue Feb 25, 2020 · 37 comments

Comments

@ruchirvaninasdaq
Copy link

ruchirvaninasdaq commented Feb 25, 2020

I am trying to run the aws s3 source connector. I have followed this documetation to install connector:
https://camel.apache.org/camel-kafka-connector/latest/try-it-out-on-openshift-with-strimzi.html.

I have installed the connectors correctly as I can list it connecor:

kubectl exec -i kafka-cluster-kafka-0 -n rucvan -- curl -X GET http://my-connect-cluster-connect-api:8083/connector-plugins
Defaulting container name to kafka.
Use 'kubectl describe pod/kafka-cluster-kafka-0 -n rucvan' to see all of the containers in this pod.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0[{"class":"io.confluent.connect.s3.source.S3SourceConnector","type":"source","version":"1.2.1"},{"class":"org.apache.camel.kafkaconnector.CamelSinkConnector","type":"sink","version":"0.0.1-SNAPSHOT"},{"class":"org.apache.camel.kafkaconnector.CamelSourceConnector","type":"source","version":"0.0.1-SNAPSHOT"},{"class":"org.apache.kafka.connect.file.FileStreamSinkConnector","type":"sink","version":"2.3.0"},{"class":"org.apache.kafka.connect.file.FileStreamSourceConnector","type":"sink","version":"2.3.0"}]

This is the json for source connector:

{
"name": "s3-connector-camel",
"config": {
  "connector.class": "org.apache.camel.kafkaconnector.CamelSourceConnector",
  "tasks.max": "1",
  "key.converter": "org.apache.kafka.connect.storage.StringConverter",
  "value.converter": "org.apache.camel.kafkaconnector.converters.S3ObjectConverter",
  "camel.source.kafka.topic": "s3-topic",
  "camel.source.url": "aws-s3://{BucketName}?autocloseBody=false",
  "camel.component.aws-s3.configuration.access-key": "*****",
  "camel.component.aws-s3.configuration.secret-key": "*****",
  "camel.source.maxPollDuration": 10000
  }
}

Now when I am trying to print status for the connector, I get following error:
{"name":"s3-connector-camel","connector":{"state":"RUNNING","worker_id":"100.80.22.122:8083"},"tasks":[{"id":0,"state":"FAILED","worker_id":"100.80.22.122:8083","trace":"org.apache.kafka.connect.errors.ConnectException: Failed to create and start Camel context\n\tat org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:98)\n\tat org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:199)\n\tat org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)\n\tat org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.lang.IllegalArgumentException: Error configuring property: camel.component.aws-s3.configuration.secret-key because cannot find component with name aws-s3. Make sure you have the component on the classpath\n\tat org.apache.camel.main.BaseMainSupport.lambda$autoConfigurationFromProperties$14(BaseMainSupport.java:895)\n\tat org.apache.camel.main.BaseMainSupport.computeProperties(BaseMainSupport.java:1084)\n\tat org.apache.camel.main.BaseMainSupport.autoConfigurationFromProperties(BaseMainSupport.java:892)\n\tat org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:545)\n\tat org.apache.camel.main.BaseMainSupport.initCamelContext(BaseMainSupport.java:422)\n\tat org.apache.camel.main.Main.doInit(Main.java:108)\n\tat org.apache.camel.support.service.ServiceSupport.init(ServiceSupport.java:80)\n\tat org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:108)\n\tat org.apache.camel.main.MainSupport.run(MainSupport.java:77)\n\tat org.apache.camel.kafkaconnector.utils.CamelMainSupport$CamelContextStarter.run(CamelMainSupport.java:214)\n\t... 3 more\n"}],"type":"source"}

@oscerd
Copy link
Contributor

oscerd commented Feb 25, 2020

I read you're using the s3 confluent connector. It's not clear what are you trying to do, but mixing confluent connector and camel connector from this project is not tested or recommended

@ruchirvaninasdaq
Copy link
Author

No, I have added the {"class":"org.apache.kafka.connect.file.FileStreamSourceConnector","type":"sink","version":"2.3.0"}
also. If you see in list.

@oscerd
Copy link
Contributor

oscerd commented Feb 25, 2020

Also in your pom you need to explicitly add the camel-aws-s3 dependency from camel 3.0.1

@ruchirvaninasdaq
Copy link
Author

Let me explicitly add try the build. Thanks, I will update you with how it goes.

@ruchirvaninasdaq
Copy link
Author

Now, I am getting the following error:

2020-02-25 19:00:30,364 INFO [Worker clientId=connect-1, groupId=connect-cluster] Finished starting connectors and tasks (org.apache.kafka.connect.runtime.distributed.DistributedHerder) [DistributedHerder-connect-1]
2020-02-25 19:00:30,370 INFO CamelSourceConnectorConfig values:
        camel.source.camelMessageHeaderKey = null
        camel.source.component = null
        camel.source.kafka.topic = s3-topic
        camel.source.maxBatchPollSize = 1000
        camel.source.maxPollDuration = 10000
        camel.source.pollingConsumerBlockTimeout = 0
        camel.source.pollingConsumerBlockWhenFull = true
        camel.source.pollingConsumerQueueSize = 1000
        camel.source.unmarshal = null
        camel.source.url = aws-s3://{bucketName}?autocloseBody=false
 (org.apache.camel.kafkaconnector.CamelSourceConnectorConfig) [task-thread-s3-connector-camel-0]
2020-02-25 19:00:30,375 INFO WorkerSourceTask{id=s3-connector-camel-0} Committing offsets (org.apache.kafka.connect.runtime.WorkerSourceTask) [task-thread-s3-connector-camel-0]
2020-02-25 19:00:30,375 INFO WorkerSourceTask{id=s3-connector-camel-0} flushing 0 outstanding messages for offset commit (org.apache.kafka.connect.runtime.WorkerSourceTask) [task-thread-s3-connector-camel-0]
2020-02-25 19:00:30,377 ERROR WorkerSourceTask{id=s3-connector-camel-0} Task threw an uncaught and unrecoverable exception (org.apache.kafka.connect.runtime.WorkerTask) [task-thread-s3-connector-camel-0]
java.lang.NoClassDefFoundError: org/apache/camel/CamelContext
        at org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:89)
        at org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:199)
        at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)
        at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.camel.CamelContext
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at org.apache.kafka.connect.runtime.isolation.PluginClassLoader.loadClass(PluginClassLoader.java:104)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 9 more
2020-02-25 19:00:30,396 ERROR WorkerSourceTask{id=s3-connector-camel-0} Task is being killed and will not recover until manually restarted (org.apache.kafka.connect.runtime.WorkerTask) [task-thread-s3-connector-camel-0]
2020-02-25 19:00:30,396 INFO Stopping CamelSourceTask connector task (org.apache.camel.kafkaconnector.CamelSourceTask) [task-thread-s3-connector-camel-0]
2020-02-25 19:00:30,397 WARN Could not stop task (org.apache.kafka.connect.runtime.WorkerSourceTask) [task-thread-s3-connector-camel-0]
java.lang.NoClassDefFoundError: org/apache/camel/PollingConsumer
        at org.apache.camel.kafkaconnector.CamelSourceTask.stop(CamelSourceTask.java:156)
        at org.apache.kafka.connect.runtime.WorkerSourceTask.tryStop(WorkerSourceTask.java:187)
        at org.apache.kafka.connect.runtime.WorkerSourceTask.close(WorkerSourceTask.java:151)
        at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:156)
        at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:183)
        at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.camel.PollingConsumer
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at org.apache.kafka.connect.runtime.isolation.PluginClassLoader.loadClass(PluginClassLoader.java:104)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 11 more

@oscerd
Copy link
Contributor

oscerd commented Feb 25, 2020

Can you please show your pom file?

1 similar comment
@oscerd
Copy link
Contributor

oscerd commented Feb 25, 2020

Can you please show your pom file?

@ruchirvaninasdaq
Copy link
Author

As I am using the stimzi, I followed the documentation to deploy the connector to the my strimzi cluster.

This is my docker File:

FROM strimzi/kafka:latest-kafka-2.3.0 as s3-xml-connect
USER root:root

#Copy in jars (I have build the jars using the `mvn clean package`)
#Moving the plugins file from `camel-kafka-connector\core\target\camel-kafka-connector-0.0.1-SNAPSHOT-package\share\java>` to kafka-plugins folder. 
COPY . .

#Move plugins
COPY plugins/camel-kafka-connector/ /opt/kafka/plugins/

SO I run this docker file and push the image to the internal gitlab registry.

This is my connector deployment yaml file:

apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaConnect
metadata:
  name: my-connect-cluster
#  annotations:
#  # use-connector-resources configures this KafkaConnect
#  # to use KafkaConnector resources to avoid
#  # needing to call the Connect REST API directly
#    strimzi.io/use-connector-resources: "true"
spec:
  version: 2.3.0
  replicas: 1
  bootstrapServers: kafka-cluster-kafka-bootstrap.rucvan:9092
  image: {insternal gitlab repo}/s3-xml-connect:latest

I use the follwing command to deploy the connector:
kubectl apply -f my-cluster-connect.yaml -n rucvan

@oscerd
Copy link
Contributor

oscerd commented Feb 25, 2020

I'll try to reproduce

@ruchirvaninasdaq
Copy link
Author

Thank you!!

@ruchirvaninasdaq
Copy link
Author

Strimzi documentation, if it's useful: https://strimzi.io/docs/master/#kafka-connect-str

@oscerd
Copy link
Contributor

oscerd commented Feb 25, 2020

@ruchirvaninasdaq
Copy link
Author

So, I see the difference in the deployment of the my-cluster-connect. As I dont used OpenShift, I dont know how its start-build command (oc start-build my-connect-cluster-connect --from-dir=./core/target/camel-kafka-connector-0.0.1-SNAPSHOT-package/share/java --follow) works compare to my kubectl apply -f my-cluster-connect.yaml -n rucvan. Do you have any idea how it could be different?

@ruchirvaninasdaq
Copy link
Author

@oscerd : Were you able to re-generate the error?

@oscerd
Copy link
Contributor

oscerd commented Feb 25, 2020

I'll have a look tomorrow or this week

@ruchirvaninasdaq
Copy link
Author

Ok thanks

@valdar
Copy link
Member

valdar commented Feb 25, 2020

Hello @ruchirvaninasdaq, are you 100% sure that when you have built the project with mvn clean package the core/pom.xml was containing this dependency:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-aws-s3</artifactId>
</dependency>

please note that <scope>provided</scope> has been removed.

Can you post the list of the content of the directory camel-kafka-connector\core\target\camel-kafka-connector-0.0.1-SNAPSHOT-package\share\java after the build?

@ruchirvaninasdaq
Copy link
Author

Hello @valdar : The pom file here (

<scope>provided</scope>
) has tag <scope>provided</scope>. I will try removing and rebuild again and update you with results.

Thanks

@valdar
Copy link
Member

valdar commented Feb 26, 2020

I know that on master it has that scope, we should probably be more precise in the documentation.

The fact is that we are also, slowly, producing one Kafka connector for each camel-component pre-packaged with all the needed dependencies and pre-configured to be simpler to use, see #15.

So in the near future, all of this will not be necessary anymore

@ruchirvaninasdaq
Copy link
Author

These jars are in the folder:

total 53812
-rw-r--r-- 1 rucvan 1049089   317195 Sep  4 10:31 FastInfoset-1.2.16.jar
-rw-r--r-- 1 rucvan 1049089   114165 Jun 11  2019 HdrHistogram-2.1.9.jar
-rw-r--r-- 1 rucvan 1049089    59866 Feb 14 10:50 aggs-matrix-stats-client-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    53231 Aug  5  2019 asm-5.0.3.jar
-rw-r--r-- 1 rucvan 1049089    20443 Aug  5  2019 asm-analysis-5.0.3.jar
-rw-r--r-- 1 rucvan 1049089    41717 Aug  5  2019 asm-commons-5.0.3.jar
-rw-r--r-- 1 rucvan 1049089    29036 Aug  5  2019 asm-tree-5.0.3.jar
-rw-r--r-- 1 rucvan 1049089    43296 Aug  5  2019 asm-util-5.0.3.jar
-rw-r--r-- 1 rucvan 1049089   973945 Feb 14 10:53 aws-java-sdk-core-1.11.658.jar
-rw-r--r-- 1 rucvan 1049089  1333571 Feb 14 10:53 aws-java-sdk-kinesis-1.11.658.jar
-rw-r--r-- 1 rucvan 1049089   518416 Feb 14 10:53 aws-java-sdk-kms-1.11.658.jar
-rw-r--r-- 1 rucvan 1049089  1013106 Feb 14 10:53 aws-java-sdk-s3-1.11.658.jar
-rw-r--r-- 1 rucvan 1049089   368611 Feb 14 10:53 aws-java-sdk-sns-1.11.658.jar
-rw-r--r-- 1 rucvan 1049089   323342 Feb 14 10:53 aws-java-sdk-sqs-1.11.658.jar
-rw-r--r-- 1 rucvan 1049089   879660 Feb 14 10:49 caffeine-2.8.0.jar
-rw-r--r-- 1 rucvan 1049089   373351 Feb 14 10:49 camel-api-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    18720 Feb 14 10:53 camel-attachments-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    62073 Feb 14 10:53 camel-aws-kinesis-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    63287 Feb 14 10:53 camel-aws-s3-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    34602 Feb 14 10:53 camel-aws-sns-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    64191 Feb 14 10:53 camel-aws-sqs-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089  1196385 Feb 14 10:49 camel-base-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   121324 Feb 14 10:49 camel-bean-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    18017 Feb 14 10:49 camel-browse-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    18901 Feb 14 10:49 camel-caffeine-lrucache-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    57033 Feb 14 10:53 camel-cassandraql-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    73010 Feb 14 10:53 camel-cloud-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    27158 Feb 14 10:49 camel-controlbus-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089     7451 Feb 14 10:49 camel-core-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089  1355904 Feb 14 10:49 camel-core-engine-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    19238 Feb 14 10:49 camel-dataformat-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    39851 Feb 14 10:49 camel-dataset-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    23061 Feb 14 10:49 camel-direct-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    31284 Feb 14 10:49 camel-directvm-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    49511 Feb 14 10:49 camel-elasticsearch-rest-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   181078 Feb 14 10:49 camel-file-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    92033 Feb 14 10:53 camel-http-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    78190 Feb 14 10:53 camel-http-common-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   124143 Feb 14 10:49 camel-jaxp-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    41791 Feb 26 11:28 camel-kafka-connector-0.0.1-SNAPSHOT.jar
-rw-r--r-- 1 rucvan 1049089    24073 Feb 14 10:49 camel-language-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    29585 Feb 14 10:49 camel-log-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   103663 Feb 14 10:49 camel-main-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   123863 Feb 14 10:49 camel-management-api-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    89648 Feb 14 10:49 camel-mock-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   163020 Feb 14 10:53 camel-netty-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    16794 Feb 14 10:49 camel-ref-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    65770 Feb 14 10:49 camel-rest-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    20025 Feb 14 10:49 camel-saga-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    24568 Feb 14 10:49 camel-scheduler-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    48570 Feb 14 10:49 camel-seda-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    16864 Feb 14 10:49 camel-stub-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   565949 Feb 14 10:49 camel-support-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    29518 Feb 14 10:53 camel-syslog-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    89109 Feb 14 10:53 camel-telegram-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    28131 Feb 14 10:49 camel-timer-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089   169544 Feb 14 10:49 camel-util-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    42196 Feb 14 10:49 camel-util-json-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    28619 Feb 14 10:49 camel-validator-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    16014 Feb 14 10:49 camel-vm-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    27953 Feb 14 10:53 camel-webhook-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    43364 Feb 14 10:49 camel-xpath-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    53523 Feb 14 10:49 camel-xslt-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089  1135500 Feb 14 10:53 cassandra-driver-core-3.7.2.jar
-rw-r--r-- 1 rucvan 1049089   335042 Jun 11  2019 commons-codec-1.11.jar
-rw-r--r-- 1 rucvan 1049089    61829 Aug  5  2019 commons-logging-1.2.jar
-rw-r--r-- 1 rucvan 1049089   111119 Jun 11  2019 commons-pool-1.6.jar
-rw-r--r-- 1 rucvan 1049089    99939 Feb 14 10:50 compiler-0.9.3.jar
-rw-r--r-- 1 rucvan 1049089  1421256 Feb 14 10:53 cxf-core-3.3.4.jar
-rw-r--r-- 1 rucvan 1049089   693545 Feb 14 10:53 cxf-rt-frontend-jaxrs-3.3.4.jar
-rw-r--r-- 1 rucvan 1049089   187749 Feb 14 10:53 cxf-rt-rs-client-3.3.4.jar
-rw-r--r-- 1 rucvan 1049089    41793 Feb 14 10:53 cxf-rt-security-3.3.4.jar
-rw-r--r-- 1 rucvan 1049089   368224 Feb 14 10:53 cxf-rt-transports-http-3.3.4.jar
-rw-r--r-- 1 rucvan 1049089 11242604 Feb 14 10:49 elasticsearch-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    16057 Feb 14 10:49 elasticsearch-cli-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    39935 Feb 14 10:49 elasticsearch-core-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    41972 Feb 14 10:49 elasticsearch-geo-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    59828 Feb 14 10:50 elasticsearch-rest-client-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    25211 Feb 14 10:50 elasticsearch-rest-client-sniffer-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089  1192938 Feb 14 10:49 elasticsearch-rest-high-level-client-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    10881 Feb 14 10:49 elasticsearch-secure-sm-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089   119249 Feb 14 10:49 elasticsearch-x-content-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089  1159086 Feb 14 10:49 hppc-0.8.1.jar
-rw-r--r-- 1 rucvan 1049089   179964 Feb 14 10:50 httpasyncclient-4.1.4.jar
-rw-r--r-- 1 rucvan 1049089   774640 Nov 29 10:11 httpclient-4.5.10.jar
-rw-r--r-- 1 rucvan 1049089   328347 Nov 29 10:11 httpcore-4.4.12.jar
-rw-r--r-- 1 rucvan 1049089   365892 Feb 14 10:50 httpcore-nio-4.4.11.jar
-rw-r--r-- 1 rucvan 1049089   565410 Dec 31  2018 ion-java-1.0.2.jar
-rw-r--r-- 1 rucvan 1049089    27156 Sep  4 10:31 istack-commons-runtime-3.0.8.jar
-rw-r--r-- 1 rucvan 1049089    68081 Feb 14 10:50 jackson-annotations-2.10.1.jar
-rw-r--r-- 1 rucvan 1049089   349074 Feb 14 10:50 jackson-core-2.10.2.jar
-rw-r--r-- 1 rucvan 1049089  1403051 Feb 14 10:50 jackson-databind-2.10.1.jar
-rw-r--r-- 1 rucvan 1049089    58564 Feb 14 10:49 jackson-dataformat-cbor-2.10.2.jar
-rw-r--r-- 1 rucvan 1049089    73890 Feb 14 10:49 jackson-dataformat-smile-2.8.11.jar
-rw-r--r-- 1 rucvan 1049089    40879 Feb 14 10:49 jackson-dataformat-yaml-2.8.11.jar
-rw-r--r-- 1 rucvan 1049089    33178 Feb 14 10:53 jackson-jaxrs-base-2.10.1.jar
-rw-r--r-- 1 rucvan 1049089    15555 Feb 14 10:53 jackson-jaxrs-json-provider-2.10.1.jar
-rw-r--r-- 1 rucvan 1049089    34995 Feb 14 10:53 jackson-module-jaxb-annotations-2.10.1.jar
-rw-r--r-- 1 rucvan 1049089    44399 Sep  4 10:31 jakarta.activation-api-1.2.1.jar
-rw-r--r-- 1 rucvan 1049089   140262 Feb 14 10:53 jakarta.ws.rs-api-2.1.5.jar
-rw-r--r-- 1 rucvan 1049089   115498 Sep  4 10:31 jakarta.xml.bind-api-2.3.2.jar
-rw-r--r-- 1 rucvan 1049089    78030 Feb 14 10:53 javax.activation-1.2.0.jar
-rw-r--r-- 1 rucvan 1049089    26586 Jun 11  2019 javax.annotation-api-1.3.2.jar
-rw-r--r-- 1 rucvan 1049089    95806 Dec 31  2018 javax.servlet-api-3.1.0.jar
-rw-r--r-- 1 rucvan 1049089  1013367 Sep  4 10:31 jaxb-runtime-2.3.2.jar
-rw-r--r-- 1 rucvan 1049089   664435 Feb 14 10:53 jffi-1.2.16-native.jar
-rw-r--r-- 1 rucvan 1049089   150998 Feb 14 10:53 jffi-1.2.16.jar
-rw-r--r-- 1 rucvan 1049089    26879 Feb 14 10:53 jmespath-java-1.11.658.jar
-rw-r--r-- 1 rucvan 1049089   885297 Feb 14 10:50 jna-4.5.1.jar
-rw-r--r-- 1 rucvan 1049089   359323 Feb 14 10:53 jnr-constants-0.9.9.jar
-rw-r--r-- 1 rucvan 1049089   681158 Feb 14 10:53 jnr-ffi-2.1.7.jar
-rw-r--r-- 1 rucvan 1049089   239993 Feb 14 10:53 jnr-posix-3.0.44.jar
-rw-r--r-- 1 rucvan 1049089   219943 Aug  5  2019 jnr-x86asm-1.0.2.jar
-rw-r--r-- 1 rucvan 1049089   570478 Feb 14 10:54 joda-time-2.1.jar
-rw-r--r-- 1 rucvan 1049089    78074 Feb 14 10:49 jopt-simple-5.0.2.jar
-rw-r--r-- 1 rucvan 1049089    62335 Feb 14 10:50 lang-mustache-client-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089  1655243 Feb 14 10:49 lucene-analyzers-common-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   102248 Feb 14 10:49 lucene-backward-codecs-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089  3176995 Feb 14 10:49 lucene-core-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089    90661 Feb 14 10:49 lucene-grouping-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   208879 Feb 14 10:49 lucene-highlighter-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   147529 Feb 14 10:49 lucene-join-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089    51875 Feb 14 10:49 lucene-memory-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089    96686 Feb 14 10:49 lucene-misc-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   251094 Feb 14 10:49 lucene-queries-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   381056 Feb 14 10:49 lucene-queryparser-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   342845 Feb 14 10:49 lucene-sandbox-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089    14492 Feb 14 10:49 lucene-spatial-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   238757 Feb 14 10:49 lucene-spatial-extras-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   306584 Feb 14 10:49 lucene-spatial3d-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   245804 Feb 14 10:49 lucene-suggest-8.1.0.jar
-rw-r--r-- 1 rucvan 1049089   129402 Sep 19 13:02 metrics-core-3.2.2.jar
-rw-r--r-- 1 rucvan 1049089  4087848 Feb 14 10:53 netty-all-4.1.43.Final.jar
-rw-r--r-- 1 rucvan 1049089   234444 Feb 14 10:54 netty-buffer-4.0.56.Final.jar
-rw-r--r-- 1 rucvan 1049089   153509 Feb 14 10:54 netty-codec-4.0.56.Final.jar
-rw-r--r-- 1 rucvan 1049089   408119 Feb 14 10:54 netty-common-4.0.56.Final.jar
-rw-r--r-- 1 rucvan 1049089   359145 Feb 14 10:53 netty-handler-4.0.56.Final.jar
-rw-r--r-- 1 rucvan 1049089   390239 Feb 14 10:54 netty-transport-4.0.56.Final.jar
-rw-r--r-- 1 rucvan 1049089    82083 Feb 14 10:50 parent-join-client-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    76128 Feb 14 10:50 rank-eval-client-7.3.2.jar
-rw-r--r-- 1 rucvan 1049089    41424 Dec  3 11:18 slf4j-api-1.7.29.jar
-rw-r--r-- 1 rucvan 1049089   273599 May  7  2019 snakeyaml-1.17.jar
-rw-r--r-- 1 rucvan 1049089    12320 Feb 14 10:49 spi-annotations-3.0.1.jar
-rw-r--r-- 1 rucvan 1049089    38099 Sep  4 10:31 stax-ex-1.8.1.jar
-rw-r--r-- 1 rucvan 1049089   161867 May  7  2019 stax2-api-3.1.4.jar
-rw-r--r-- 1 rucvan 1049089    51208 Feb 14 10:50 t-digest-3.2.jar
-rw-r--r-- 1 rucvan 1049089    72080 Sep  4 10:31 txw2-2.3.2.jar
-rw-r--r-- 1 rucvan 1049089   512742 Aug 29 13:05 woodstox-core-5.0.3.jar
-rw-r--r-- 1 rucvan 1049089   173253 Feb 14 10:53 xmlschema-core-2.2.4.jar```

@ruchirvaninasdaq
Copy link
Author

@valdar : I am still getting this error:

java.lang.NoClassDefFoundError: org/apache/camel/CamelContext
        at org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:89)
        at org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:199)
        at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)
        at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.camel.CamelContext
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at org.apache.kafka.connect.runtime.isolation.PluginClassLoader.loadClass(PluginClassLoader.java:104)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 9 more
2020-02-25 19:00:30,396 ERROR WorkerSourceTask{id=s3-connector-camel-0} Task is being killed and will not recover until manually restarted (org.apache.kafka.connect.runtime.WorkerTask) [task-thread-s3-connector-camel-0]
2020-02-25 19:00:30,396 INFO Stopping CamelSourceTask connector task (org.apache.camel.kafkaconnector.CamelSourceTask) [task-thread-s3-connector-camel-0]
2020-02-25 19:00:30,397 WARN Could not stop task (org.apache.kafka.connect.runtime.WorkerSourceTask) [task-thread-s3-connector-camel-0]
java.lang.NoClassDefFoundError: org/apache/camel/PollingConsumer
        at org.apache.camel.kafkaconnector.CamelSourceTask.stop(CamelSourceTask.java:156)
        at org.apache.kafka.connect.runtime.WorkerSourceTask.tryStop(WorkerSourceTask.java:187)
        at org.apache.kafka.connect.runtime.WorkerSourceTask.close(WorkerSourceTask.java:151)
        at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:156)
        at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:183)
        at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.camel.PollingConsumer
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at org.apache.kafka.connect.runtime.isolation.PluginClassLoader.loadClass(PluginClassLoader.java:104)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 11 more```

@oscerd
Copy link
Contributor

oscerd commented Feb 26, 2020

You need to add camel-api jar.

@ruchirvaninasdaq
Copy link
Author

Is there a maven repo for that?

@oscerd
Copy link
Contributor

oscerd commented Feb 26, 2020

@ruchirvaninasdaq
Copy link
Author

and I just noticed that I have this in my plugins
rw-rw-rw- 1 root root 373351 Feb 26 16:36 camel-api-3.0.1.jar

@oscerd
Copy link
Contributor

oscerd commented Feb 26, 2020

The class are all there, so your classpath is clearly not complete.

@oscerd
Copy link
Contributor

oscerd commented Feb 26, 2020

By the way is probably something related to difference between openshift and kubernetes approach.

@valdar
Copy link
Member

valdar commented Feb 26, 2020

@ruchirvaninasdaq I think now you have the correct jars, but for some reason, they are not picked up in the Kafka connect classpath.

I see that the Strimzi doc mention this as a recipe to make a custom image for kafka connectors:

FROM strimzi/kafka:latest-kafka-2.4.0
USER root:root
COPY ./my-plugins/ /opt/kafka/plugins/
USER 1001

I see 2 differences with your Dockerfile:

  • USER 1001 (i.e. some permissions problems?)
  • Probably you end up with a different directory layout? (i.e. it seems that each plugin should be in its own sub-directory under /opt/kafka/plugins/ like COPY plugins/ /opt/kafka/plugins/ ?)

@ruchirvaninasdaq
Copy link
Author

@valdar & @oscerd : Just to verify that I have all the right plugins files within my connect pod. I logged into it and verify.

[root@my-connect-cluster-connect-5b8645bd5-g67f8 plugins]# pwd
/opt/kafka/plugins
[root@my-connect-cluster-connect-5b8645bd5-g67f8 plugins]# ls -l
total 54908
-rw-rw-rw- 1 root root   317195 Feb 26 16:36 FastInfoset-1.2.16.jar
-rw-rw-rw- 1 root root   114165 Feb 26 16:36 HdrHistogram-2.1.9.jar
-rw-rw-rw- 1 root root    59866 Feb 26 16:36 aggs-matrix-stats-client-7.3.2.jar
-rw-rw-rw- 1 root root    53231 Feb 26 16:36 asm-5.0.3.jar
-rw-rw-rw- 1 root root    20443 Feb 26 16:36 asm-analysis-5.0.3.jar
-rw-rw-rw- 1 root root    41717 Feb 26 16:36 asm-commons-5.0.3.jar
-rw-rw-rw- 1 root root    29036 Feb 26 16:36 asm-tree-5.0.3.jar
-rw-rw-rw- 1 root root    43296 Feb 26 16:36 asm-util-5.0.3.jar
-rw-rw-rw- 1 root root   973945 Feb 26 16:36 aws-java-sdk-core-1.11.658.jar
-rw-rw-rw- 1 root root  1333571 Feb 26 16:36 aws-java-sdk-kinesis-1.11.658.jar
-rw-rw-rw- 1 root root   518416 Feb 26 16:36 aws-java-sdk-kms-1.11.658.jar
-rw-rw-rw- 1 root root  1013106 Feb 26 16:36 aws-java-sdk-s3-1.11.658.jar
-rw-rw-rw- 1 root root   368611 Feb 26 16:36 aws-java-sdk-sns-1.11.658.jar
-rw-rw-rw- 1 root root   323342 Feb 26 16:36 aws-java-sdk-sqs-1.11.658.jar
-rw-rw-rw- 1 root root   879660 Feb 26 16:36 caffeine-2.8.0.jar
-rw-rw-rw- 1 root root   373351 Feb 26 16:36 camel-api-3.0.1.jar
-rw-rw-rw- 1 root root    18720 Feb 26 16:36 camel-attachments-3.0.1.jar
-rw-rw-rw- 1 root root    62073 Feb 26 16:36 camel-aws-kinesis-3.0.1.jar
-rw-rw-rw- 1 root root    63287 Feb 26 16:36 camel-aws-s3-3.0.1.jar
-rw-rw-rw- 1 root root    34602 Feb 26 16:36 camel-aws-sns-3.0.1.jar
-rw-rw-rw- 1 root root    64191 Feb 26 16:36 camel-aws-sqs-3.0.1.jar
-rw-rw-rw- 1 root root  1196385 Feb 26 16:36 camel-base-3.0.1.jar
-rw-rw-rw- 1 root root   121324 Feb 26 16:36 camel-bean-3.0.1.jar
-rw-rw-rw- 1 root root    18017 Feb 26 16:36 camel-browse-3.0.1.jar
-rw-rw-rw- 1 root root    18901 Feb 26 16:36 camel-caffeine-lrucache-3.0.1.jar
-rw-rw-rw- 1 root root    57033 Feb 26 16:36 camel-cassandraql-3.0.1.jar
-rw-rw-rw- 1 root root    73010 Feb 26 16:36 camel-cloud-3.0.1.jar
-rw-rw-rw- 1 root root    27158 Feb 26 16:36 camel-controlbus-3.0.1.jar
-rw-rw-rw- 1 root root     7451 Feb 26 16:36 camel-core-3.0.1.jar
-rw-rw-rw- 1 root root  1355904 Feb 26 16:36 camel-core-engine-3.0.1.jar
-rw-rw-rw- 1 root root    19238 Feb 26 16:36 camel-dataformat-3.0.1.jar
-rw-rw-rw- 1 root root    39851 Feb 26 16:36 camel-dataset-3.0.1.jar
-rw-rw-rw- 1 root root    23061 Feb 26 16:36 camel-direct-3.0.1.jar
-rw-rw-rw- 1 root root    31284 Feb 26 16:36 camel-directvm-3.0.1.jar
-rw-rw-rw- 1 root root    49511 Feb 26 16:36 camel-elasticsearch-rest-3.0.1.jar
-rw-rw-rw- 1 root root   181078 Feb 26 16:36 camel-file-3.0.1.jar
-rw-rw-rw- 1 root root    92033 Feb 26 16:36 camel-http-3.0.1.jar
-rw-rw-rw- 1 root root    78190 Feb 26 16:36 camel-http-common-3.0.1.jar
-rw-rw-rw- 1 root root   124143 Feb 26 16:36 camel-jaxp-3.0.1.jar
drwxrwxrwx 2 root root     8192 Feb 26 16:36 camel-kafka-connector
-rw-rw-rw- 1 root root    41791 Feb 26 16:36 camel-kafka-connector-0.0.1-SNAPSHOT.jar
-rw-rw-rw- 1 root root    24073 Feb 26 16:36 camel-language-3.0.1.jar
-rw-rw-rw- 1 root root    29585 Feb 26 16:36 camel-log-3.0.1.jar
-rw-rw-rw- 1 root root   103663 Feb 26 16:36 camel-main-3.0.1.jar
-rw-rw-rw- 1 root root   123863 Feb 26 16:36 camel-management-api-3.0.1.jar
-rw-rw-rw- 1 root root    89648 Feb 26 16:36 camel-mock-3.0.1.jar
-rw-rw-rw- 1 root root   163020 Feb 26 16:36 camel-netty-3.0.1.jar
-rw-rw-rw- 1 root root    16794 Feb 26 16:36 camel-ref-3.0.1.jar
-rw-rw-rw- 1 root root    65770 Feb 26 16:36 camel-rest-3.0.1.jar
-rw-rw-rw- 1 root root    20025 Feb 26 16:36 camel-saga-3.0.1.jar
-rw-rw-rw- 1 root root    24568 Feb 26 16:36 camel-scheduler-3.0.1.jar
-rw-rw-rw- 1 root root    48570 Feb 26 16:36 camel-seda-3.0.1.jar
-rw-rw-rw- 1 root root    16864 Feb 26 16:36 camel-stub-3.0.1.jar
-rw-rw-rw- 1 root root   565949 Feb 26 16:36 camel-support-3.0.1.jar
-rw-rw-rw- 1 root root    29518 Feb 26 16:36 camel-syslog-3.0.1.jar
-rw-rw-rw- 1 root root    89109 Feb 26 16:36 camel-telegram-3.0.1.jar
-rw-rw-rw- 1 root root    28131 Feb 26 16:36 camel-timer-3.0.1.jar
-rw-rw-rw- 1 root root   169544 Feb 26 16:36 camel-util-3.0.1.jar
-rw-rw-rw- 1 root root    42196 Feb 26 16:36 camel-util-json-3.0.1.jar
-rw-rw-rw- 1 root root    28619 Feb 26 16:36 camel-validator-3.0.1.jar
-rw-rw-rw- 1 root root    16014 Feb 26 16:36 camel-vm-3.0.1.jar
-rw-rw-rw- 1 root root    27953 Feb 26 16:36 camel-webhook-3.0.1.jar
-rw-rw-rw- 1 root root    43364 Feb 26 16:36 camel-xpath-3.0.1.jar
-rw-rw-rw- 1 root root    53523 Feb 26 16:36 camel-xslt-3.0.1.jar
-rw-rw-rw- 1 root root  1135500 Feb 26 16:36 cassandra-driver-core-3.7.2.jar
-rw-rw-rw- 1 root root   335042 Feb 26 16:36 commons-codec-1.11.jar
-rw-rw-rw- 1 root root    61829 Feb 26 16:36 commons-logging-1.2.jar
-rw-rw-rw- 1 root root   111119 Feb 26 16:36 commons-pool-1.6.jar
-rw-rw-rw- 1 root root    99939 Feb 26 16:36 compiler-0.9.3.jar
-rw-rw-rw- 1 root root     7374 Feb 26 16:36 custom-s3-source-converter-1.0-SNAPSHOT.jar
-rw-rw-rw- 1 root root  1421256 Feb 26 16:36 cxf-core-3.3.4.jar
-rw-rw-rw- 1 root root   693545 Feb 26 16:36 cxf-rt-frontend-jaxrs-3.3.4.jar
-rw-rw-rw- 1 root root   187749 Feb 26 16:36 cxf-rt-rs-client-3.3.4.jar
-rw-rw-rw- 1 root root    41793 Feb 26 16:36 cxf-rt-security-3.3.4.jar
-rw-rw-rw- 1 root root   368224 Feb 26 16:36 cxf-rt-transports-http-3.3.4.jar
-rw-rw-rw- 1 root root 11242604 Feb 26 16:36 elasticsearch-7.3.2.jar
-rw-rw-rw- 1 root root    16057 Feb 26 16:36 elasticsearch-cli-7.3.2.jar
-rw-rw-rw- 1 root root    39935 Feb 26 16:36 elasticsearch-core-7.3.2.jar
-rw-rw-rw- 1 root root    41972 Feb 26 16:36 elasticsearch-geo-7.3.2.jar
-rw-rw-rw- 1 root root    59828 Feb 26 16:36 elasticsearch-rest-client-7.3.2.jar
-rw-rw-rw- 1 root root    25211 Feb 26 16:36 elasticsearch-rest-client-sniffer-7.3.2.jar
-rw-rw-rw- 1 root root  1192938 Feb 26 16:36 elasticsearch-rest-high-level-client-7.3.2.jar
-rw-rw-rw- 1 root root    10881 Feb 26 16:36 elasticsearch-secure-sm-7.3.2.jar
-rw-rw-rw- 1 root root   119249 Feb 26 16:36 elasticsearch-x-content-7.3.2.jar
-rw-rw-rw- 1 root root  1159086 Feb 26 16:36 hppc-0.8.1.jar
-rw-rw-rw- 1 root root   179964 Feb 26 16:36 httpasyncclient-4.1.4.jar
-rw-rw-rw- 1 root root   774640 Feb 26 16:36 httpclient-4.5.10.jar
-rw-rw-rw- 1 root root   772386 Feb 26 16:36 httpclient-4.5.8.jar
-rw-rw-rw- 1 root root   326874 Feb 26 16:36 httpcore-4.4.11.jar
-rw-rw-rw- 1 root root   328347 Feb 26 16:36 httpcore-4.4.12.jar
-rw-rw-rw- 1 root root   365892 Feb 26 16:36 httpcore-nio-4.4.11.jar
-rw-rw-rw- 1 root root   565410 Feb 26 16:36 ion-java-1.0.2.jar
-rw-rw-rw- 1 root root    27156 Feb 26 16:36 istack-commons-runtime-3.0.8.jar
-rw-rw-rw- 1 root root    68081 Feb 26 16:36 jackson-annotations-2.10.1.jar
-rw-rw-rw- 1 root root   349074 Feb 26 16:36 jackson-core-2.10.2.jar
-rw-rw-rw- 1 root root  1403051 Feb 26 16:36 jackson-databind-2.10.1.jar
-rw-rw-rw- 1 root root    58564 Feb 26 16:36 jackson-dataformat-cbor-2.10.2.jar
-rw-rw-rw- 1 root root    73890 Feb 26 16:36 jackson-dataformat-smile-2.8.11.jar
-rw-rw-rw- 1 root root    40879 Feb 26 16:36 jackson-dataformat-yaml-2.8.11.jar
-rw-rw-rw- 1 root root    33178 Feb 26 16:36 jackson-jaxrs-base-2.10.1.jar
-rw-rw-rw- 1 root root    15555 Feb 26 16:36 jackson-jaxrs-json-provider-2.10.1.jar
-rw-rw-rw- 1 root root    34995 Feb 26 16:36 jackson-module-jaxb-annotations-2.10.1.jar
-rw-rw-rw- 1 root root    44399 Feb 26 16:36 jakarta.activation-api-1.2.1.jar
-rw-rw-rw- 1 root root   140262 Feb 26 16:36 jakarta.ws.rs-api-2.1.5.jar
-rw-rw-rw- 1 root root   115498 Feb 26 16:36 jakarta.xml.bind-api-2.3.2.jar
-rw-rw-rw- 1 root root    78030 Feb 26 16:36 javax.activation-1.2.0.jar
-rw-rw-rw- 1 root root    26586 Feb 26 16:36 javax.annotation-api-1.3.2.jar
-rw-rw-rw- 1 root root    95806 Feb 26 16:36 javax.servlet-api-3.1.0.jar
-rw-rw-rw- 1 root root  1013367 Feb 26 16:36 jaxb-runtime-2.3.2.jar
-rw-rw-rw- 1 root root   664435 Feb 26 16:36 jffi-1.2.16-native.jar
-rw-rw-rw- 1 root root   150998 Feb 26 16:36 jffi-1.2.16.jar
-rw-rw-rw- 1 root root    26879 Feb 26 16:36 jmespath-java-1.11.658.jar
-rw-rw-rw- 1 root root   885297 Feb 26 16:36 jna-4.5.1.jar
-rw-rw-rw- 1 root root   359323 Feb 26 16:36 jnr-constants-0.9.9.jar
-rw-rw-rw- 1 root root   681158 Feb 26 16:36 jnr-ffi-2.1.7.jar
-rw-rw-rw- 1 root root   239993 Feb 26 16:36 jnr-posix-3.0.44.jar
-rw-rw-rw- 1 root root   219943 Feb 26 16:36 jnr-x86asm-1.0.2.jar
-rw-rw-rw- 1 root root   570478 Feb 26 16:36 joda-time-2.1.jar
-rw-rw-rw- 1 root root    78074 Feb 26 16:36 jopt-simple-5.0.2.jar
-rw-rw-rw- 1 root root    62335 Feb 26 16:36 lang-mustache-client-7.3.2.jar
-rw-rw-rw- 1 root root  1655243 Feb 26 16:36 lucene-analyzers-common-8.1.0.jar
-rw-rw-rw- 1 root root   102248 Feb 26 16:36 lucene-backward-codecs-8.1.0.jar
-rw-rw-rw- 1 root root  3176995 Feb 26 16:36 lucene-core-8.1.0.jar
-rw-rw-rw- 1 root root    90661 Feb 26 16:36 lucene-grouping-8.1.0.jar
-rw-rw-rw- 1 root root   208879 Feb 26 16:36 lucene-highlighter-8.1.0.jar
-rw-rw-rw- 1 root root   147529 Feb 26 16:36 lucene-join-8.1.0.jar
-rw-rw-rw- 1 root root    51875 Feb 26 16:36 lucene-memory-8.1.0.jar
-rw-rw-rw- 1 root root    96686 Feb 26 16:36 lucene-misc-8.1.0.jar
-rw-rw-rw- 1 root root   251094 Feb 26 16:36 lucene-queries-8.1.0.jar
-rw-rw-rw- 1 root root   381056 Feb 26 16:36 lucene-queryparser-8.1.0.jar
-rw-rw-rw- 1 root root   342845 Feb 26 16:36 lucene-sandbox-8.1.0.jar
-rw-rw-rw- 1 root root    14492 Feb 26 16:36 lucene-spatial-8.1.0.jar
-rw-rw-rw- 1 root root   238757 Feb 26 16:36 lucene-spatial-extras-8.1.0.jar
-rw-rw-rw- 1 root root   306584 Feb 26 16:36 lucene-spatial3d-8.1.0.jar
-rw-rw-rw- 1 root root   245804 Feb 26 16:36 lucene-suggest-8.1.0.jar
-rw-rw-rw- 1 root root   129402 Feb 26 16:36 metrics-core-3.2.2.jar
-rw-rw-rw- 1 root root  4087848 Feb 26 16:36 netty-all-4.1.43.Final.jar
-rw-rw-rw- 1 root root   234444 Feb 26 16:36 netty-buffer-4.0.56.Final.jar
-rw-rw-rw- 1 root root   153509 Feb 26 16:36 netty-codec-4.0.56.Final.jar
-rw-rw-rw- 1 root root   408119 Feb 26 16:36 netty-common-4.0.56.Final.jar
-rw-rw-rw- 1 root root   359145 Feb 26 16:36 netty-handler-4.0.56.Final.jar
-rw-rw-rw- 1 root root   390239 Feb 26 16:36 netty-transport-4.0.56.Final.jar
-rw-rw-rw- 1 root root    82083 Feb 26 16:36 parent-join-client-7.3.2.jar
-rw-rw-rw- 1 root root    76128 Feb 26 16:36 rank-eval-client-7.3.2.jar
-rw-rw-rw- 1 root root    41424 Feb 26 16:36 slf4j-api-1.7.29.jar
-rw-rw-rw- 1 root root   273599 Feb 26 16:36 snakeyaml-1.17.jar
-rw-rw-rw- 1 root root    12320 Feb 26 16:36 spi-annotations-3.0.1.jar
-rw-rw-rw- 1 root root    38099 Feb 26 16:36 stax-ex-1.8.1.jar
-rw-rw-rw- 1 root root   161867 Feb 26 16:36 stax2-api-3.1.4.jar
-rw-rw-rw- 1 root root    51208 Feb 26 16:36 t-digest-3.2.jar
-rw-rw-rw- 1 root root    72080 Feb 26 16:36 txw2-2.3.2.jar
-rw-rw-rw- 1 root root   512742 Feb 26 16:36 woodstox-core-5.0.3.jar
-rw-rw-rw- 1 root root   173253 Feb 26 16:36 xmlschema-core-2.2.4.jar

@orpiske
Copy link
Contributor

orpiske commented Feb 26, 2020

I few things I think may be relevant ... last time I built an image I had some problems with this.

  1. I had to put the connector package camel-kafka-connector-0.0.1-SNAPSHOT.jar in a separate directory than the rest of the dependencies. Otherwise, it would slow down the startup and Kafka would complain about it. That would be one of the directories set as the plugin.path in the connect properties file
  2. The dependencies had to be in a path that gets added to the classpath used by the runner startup script. That could be the /opt/kafka/libs or whatever is the path of the kafka libraries (not the plugins).

I haven't built an image with latest patches from @valdar, so things may be different now, but might be good to check those items as well.

@ruchirvaninasdaq
Copy link
Author

Thanks @orpiske . I will try these 2 steps and post results after that.

@ruchirvaninasdaq
Copy link
Author

@oscerd @valdar @orpiske.

Adding the connectors jars to the path of the kafka libraries solved the issue.

Thank you!!

@oscerd
Copy link
Contributor

oscerd commented Feb 26, 2020

We need to document this. Thanks @ruchirvaninasdaq

@ruchirvaninasdaq
Copy link
Author

Do you want me create document around deployment on strimzi with kubereates? I have all the example files.

@oscerd
Copy link
Contributor

oscerd commented Feb 26, 2020

You're welcome to work on that, you can take a look at the docs we have and start with that as a base document. Thanks.

@valdar
Copy link
Member

valdar commented Feb 26, 2020

I think we can leave this open untill we fix the documentation.

@ruchirvaninasdaq
Copy link
Author

oscerd open the new issue: #96

@valdar valdar closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants