Setting kafka client ID

2021-08-18 Thread Steve Huston
I am using Camel 3.7.4 and have a route that sends data to Kafka. I am trying 
to add the clientID parameter to it and getting the following error message:

org.apache.camel.FailedToCreateRouteException: Failed to create route 
outgoingMessageRoute at: >>> 
To[kafka:{{historian.topic}}?clientId=stage-outgoing-history] <<< in route: 
Route(outgoingMessageRoute)[From[seda:risOut] -> [OnExceptio... because of 
Failed to resolve endpoint: kafka://unused?clientId=stage-outgoing-history due 
to: Failed to resolve endpoint: kafka://unused?clientId=stage-outgoing-history 
due to: There are 1 parameters that couldn't be set on the endpoint. Check the 
uri if the parameters are spelt correctly and that they are properties of the 
endpoint. Unknown parameters=[{clientId=stage-outgoing-history}]
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve 
endpoint: kafka://unused?clientId=stage-outgoing-history due to: Failed to 
resolve endpoint: kafka://unused?clientId=stage-outgoing-history due to: There 
are 1 parameters that couldn't be set on the endpoint. Check the uri if the 
parameters are spelt correctly and that they are properties of the endpoint. 
Unknown parameters=[{clientId=stage-outgoing-history}]
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve 
endpoint: kafka://unused?clientId=stage-outgoing-history due to: There are 1 
parameters that couldn't be set on the endpoint. Check the uri if the 
parameters are spelt correctly and that they are properties of the endpoint. 
Unknown parameters=[{clientId=stage-outgoing-history}]

Without the added clientId parameter it works. I assume I'm missing something 
obvious but I'm not seeing it. Could someone please help me with this?

Thank you,
-Steve


Re: dumpRoutesAsXml

2021-08-18 Thread Claus Ibsen
Hi

This is only for dumping routes (not templates)

On JMX there is another operation for dumping templates


On Wed, Aug 18, 2021 at 6:07 PM Matthias Leinweber
 wrote:
>
> Hello Camel Folks,
>
> I have a question regarding dumpRoutesAsXml(true) (Resolve Placeholders)
> and routeTemplates. I am using config parameters and routeTemplates in
> karaf.  I created a routeTemplate configuration service .. however. Normal
> properties resolv, but the template parameters are not resolved.
>
> Ist that a common problem? I had a look into JaxbModelToXMLDumper and i
> cant see code which resolves the parameters.
>
> br
> Matthias



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


dumpRoutesAsXml

2021-08-18 Thread Matthias Leinweber
Hello Camel Folks,

I have a question regarding dumpRoutesAsXml(true) (Resolve Placeholders)
and routeTemplates. I am using config parameters and routeTemplates in
karaf.  I created a routeTemplate configuration service .. however. Normal
properties resolv, but the template parameters are not resolved.

Ist that a common problem? I had a look into JaxbModelToXMLDumper and i
cant see code which resolves the parameters.

br
Matthias


Re: Feature camel-atlasmap not found

2021-08-18 Thread Gerald Kallas
Ok, sound good. Tx JB.

> Jean-Baptiste Onofré  hat am 18.08.2021 16:41 geschrieben:
> 
>  
> Hi Gerald,
> 
> Thanks, I created the Jira at Camel (with karaf as component) as it's 
> not really a Karaf task.
> 
> Regards
> JB
> 
> On 18/08/2021 16:36, Gerald Kallas wrote:
> > Hi JB,
> > 
> > done. See
> > https://issues.apache.org/jira/projects/KARAF/issues/KARAF-7241
> > 
> > Best
> > Gerald
> > 
> >> Jean-Baptiste Onofré  hat am 16.08.2021 14:08 
> >> geschrieben:
> >>
> >>   
> >> Hi,
> >>
> >> IMHO, we should create a Jira to add Karaf support for non existing
> >> features.
> >>
> >> I can work on it (using component private package or creating required
> >> bundle).
> >>
> >> @Gerald, can you please create a Jira about atlasmap ?
> >>
> >> Thanks,
> >> Regards
> >> JB
> >>
> >> On 13/08/2021 22:24, Gerald Kallas wrote:
> >>> Ah ok. Tx.
> >>>
> >>> Is it supported in Camel-K? And if yes, how to hand over the map file to 
> >>> the integration?
> >>>
> >>> Best
> >>> Gerald
> >>>
>  Andrea Cosentino  hat am 13.08.2021 22:12 geschrieben:
> 
> 
>  Hello,
> 
>  It's not supported in OSGi
> 
>  Il ven 13 ago 2021, 22:06 Gerald Kallas  ha
>  scritto:
> 
> > Dear all.
> >
> > I did install a vanilla karaf 4.2.9 w/ Camel 3.11.1.
> >
> > The command
> >
> > feature:install camel-atlasmap
> >
> > responds with
> >
> > Error executing command: No matching features for camel-atlasmap/0
> >
> > Same with Camel 3.7.5. Did I miss something? The documentation says
> > camel-atlasmap is available from Camel 3.7.
> >
> > Best
> > Gerald


Re: Feature camel-atlasmap not found

2021-08-18 Thread Jean-Baptiste Onofré

Hi Gerald,

Thanks, I created the Jira at Camel (with karaf as component) as it's 
not really a Karaf task.


Regards
JB

On 18/08/2021 16:36, Gerald Kallas wrote:

Hi JB,

done. See
https://issues.apache.org/jira/projects/KARAF/issues/KARAF-7241

Best
Gerald


Jean-Baptiste Onofré  hat am 16.08.2021 14:08 geschrieben:

  
Hi,


IMHO, we should create a Jira to add Karaf support for non existing
features.

I can work on it (using component private package or creating required
bundle).

@Gerald, can you please create a Jira about atlasmap ?

Thanks,
Regards
JB

On 13/08/2021 22:24, Gerald Kallas wrote:

Ah ok. Tx.

Is it supported in Camel-K? And if yes, how to hand over the map file to the 
integration?

Best
Gerald


Andrea Cosentino  hat am 13.08.2021 22:12 geschrieben:

   
Hello,


It's not supported in OSGi

Il ven 13 ago 2021, 22:06 Gerald Kallas  ha
scritto:


Dear all.

I did install a vanilla karaf 4.2.9 w/ Camel 3.11.1.

The command

feature:install camel-atlasmap

responds with

Error executing command: No matching features for camel-atlasmap/0

Same with Camel 3.7.5. Did I miss something? The documentation says
camel-atlasmap is available from Camel 3.7.

Best
Gerald


Re: Feature camel-atlasmap not found

2021-08-18 Thread Gerald Kallas
Hi JB,

done. See
https://issues.apache.org/jira/projects/KARAF/issues/KARAF-7241

Best
Gerald

> Jean-Baptiste Onofré  hat am 16.08.2021 14:08 geschrieben:
> 
>  
> Hi,
> 
> IMHO, we should create a Jira to add Karaf support for non existing 
> features.
> 
> I can work on it (using component private package or creating required 
> bundle).
> 
> @Gerald, can you please create a Jira about atlasmap ?
> 
> Thanks,
> Regards
> JB
> 
> On 13/08/2021 22:24, Gerald Kallas wrote:
> > Ah ok. Tx.
> > 
> > Is it supported in Camel-K? And if yes, how to hand over the map file to 
> > the integration?
> > 
> > Best
> > Gerald
> > 
> >> Andrea Cosentino  hat am 13.08.2021 22:12 geschrieben:
> >>
> >>   
> >> Hello,
> >>
> >> It's not supported in OSGi
> >>
> >> Il ven 13 ago 2021, 22:06 Gerald Kallas  ha
> >> scritto:
> >>
> >>> Dear all.
> >>>
> >>> I did install a vanilla karaf 4.2.9 w/ Camel 3.11.1.
> >>>
> >>> The command
> >>>
> >>> feature:install camel-atlasmap
> >>>
> >>> responds with
> >>>
> >>> Error executing command: No matching features for camel-atlasmap/0
> >>>
> >>> Same with Camel 3.7.5. Did I miss something? The documentation says
> >>> camel-atlasmap is available from Camel 3.7.
> >>>
> >>> Best
> >>> Gerald