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

Getting error on camel splunk hec connector Failed to resolve endpoint: ... due to: Invalid URI #1692

Open
mackaw opened this issue Dec 17, 2024 · 2 comments

Comments

@mackaw
Copy link

mackaw commented Dec 17, 2024

Connector camel-splunk-hec-sink-kafka-connector version is 4.8.0 it is placed on kafka strimzi image.

My connector yaml looks like below:

apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnector
metadata:
  name: splunk-connector-test
  labels:
    strimzi.io/cluster: connect-cluster
spec:
  class: org.apache.camel.kafkaconnector.splunkhecsink.CamelSplunkhecsinkSinkConnector
  tasksMax: 5
  config:
    topics: <topic_name>
    camel.kamelet.splunk-hec-sink.splunkUrl: ip_address:8088
    camel.kamelet.splunk-hec-sink.token: <hec-token>
    camel.kamelet.splunk-hec-sink.skipTlsVerify: true
    camel.kamelet.splunk-hec-sink.splunkEndpoint: /services/collector/raw
    key.converter: org.apache.kafka.connect.storage.StringConverter
    value.converter: org.apache.kafka.connect.storage.StringConverter

after deploy it to my kubernetes im getting error (part of error stack):

> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:231)... 56 more
> Caused by: java.lang.IllegalArgumentException: Invalid URI: splunk-hec://ip_address:8088/hec-token?bodyOnly=false&headersOnly=false&https=true&skipTlsVerify=true at
> org.apache.camel.component.splunkhec.SplunkHECComponent.createEndpoint(SplunkHECComponent.java:43) at
org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:171) at
org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:805)... 63 more

what im doing wrong ?

@oscerd
Copy link
Contributor

oscerd commented Dec 17, 2024

It's a bug, thanks for reporting: apache/camel-kamelets#2318

@oscerd
Copy link
Contributor

oscerd commented Dec 17, 2024

This has been fixed on the Kamelets side, it will be available in 4.8.3 camel-kamelets and after that we could release 4.8.3 for CKC

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

2 participants