[
https://issues.apache.org/jira/browse/CAMEL-15269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152506#comment-17152506
]
Thomas commented on CAMEL-15269:
--------------------------------
Hi guys
I am also struggling with the same issue. I followed the provided documentation
and took the configuration base from the projects example.
I always run into the following error:
{code:java}
[2020-07-07 00:12:11,684] ERROR WorkerSourceTask{id=CamelJiraSourceConnector-0}
Task threw an uncaught and unrecoverable exception
(org.apache.kafka.connect.runtime.WorkerTask:186)
org.apache.kafka.connect.errors.ConnectException: Failed to create and start
Camel context
at
org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:103)
at
org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:213)
at
org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:184)
at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:234)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalArgumentException: Cannot find endpoint with scheme
jira
at
org.apache.camel.catalog.impl.AbstractCamelCatalog.doAsEndpointUri(AbstractCamelCatalog.java:684)
at
org.apache.camel.catalog.impl.AbstractCamelCatalog.asEndpointUri(AbstractCamelCatalog.java:673)
at
org.apache.camel.kafkaconnector.utils.TaskHelper.buildUrl(TaskHelper.java:44)
at
org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:89)
... 8 more
{code}
I used the following configuration:
{code:java}
name=CamelJiraSourceConnector
connector.class=org.apache.camel.kafkaconnector.jira.CamelJiraSourceConnector
tasks.max=1
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
camel.component.jira.jiraUrl=http://localhost:8080
camel.component.jira.password=xxx
camel.component.jira.username=user
camel.source.endpoint.jiraUrl=http://localhost:8080
camel.source.endpoint.username=user
camel.source.endpoint.password=xxx
camel.source.path.type=newComments
topics=mytopic
{code}
I also tried with OAuth, but run into the same issue. Furthermore I tested it
with Jira Online, but faced the same issue.
Using DEBUG/TRACE log did not really help me. I do not really understand the
underlying issue.
It is also not clear to me why there are configurations for components and
source.endpoints. What is the difference?
> How install CAMEL-JIRA-KAFKA-CONNECTOR in Jira
> ----------------------------------------------
>
> Key: CAMEL-15269
> URL: https://issues.apache.org/jira/browse/CAMEL-15269
> Project: Camel
> Issue Type: Task
> Components: camel-jira
> Reporter: Daniel Caloto Suárez
> Priority: Major
>
> Hello
> I'm new to kafka. I would like to know how to install the
> CAMEL-JIRA-KAFKA-CONNECTOR and how to configure it.
> Where do I have to put the unit
> <dependency>
> <groupId>org.apache.camel.kafkaconnector</groupId>
> <artifactId>camel-jira-kafka-connector</artifactId>
> <version>x.x.x</version>
> <!-- use the same version as your Camel Kafka connector version -->
> </dependency>
> Where to extract the file
> camel-jira-kafka-connector-0.3.0-package.tar.gz
> Where and how to set options such as
> camel.source.endpoint.jql
> Thank you very much for everything
> Dani
--
This message was sent by Atlassian Jira
(v8.3.4#803005)