You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/02/20 08:55:23 UTC
[GitHub] [camel-k] cenitfish opened a new issue #1285: Support of 3rd party
camel components, data formats and type converters
cenitfish opened a new issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285
Hello everybody,
Camel K is a cool thing and I think the world was just waiting for it. I have been working with Camel for a long time and have written numerous components for my customers. My question is - are the 3rd party camel components, data formats, type converters also supported and if so how can I use it?
Register new Maven Repository:
`kamel install --maven-repository http://myserver:8081/nexus/content/repositories/myrepo@id=myrepo`
Example route:
`from('mycomponent://foo').to('mock:result')`
Run the example route with 3rd party camel components, camel dataformats, camel typeconverter:
`kamel run -d mvn:mycompany:mycomponent:1.0 hello.groovy --dev`
It would be great if that were possible.
Best wishes
Alex
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588982339
> It's difficult to see the logs because now the maven build is done in an init container and kubectl only display it if you specify the name of the container explicitly.. it should be `builder` iirc, so `kubectl logs -c builder nameofthepod`.
>
> Another reason to switch to an embedded build model for `1.0.0`, @astefanutti ?
>
> I'd also try to fix the issue that cause the resources not to be replaced when already present in RC2.
We may want to have `kamel install` to fail in case it was already installed and maybe add a flag `--force` to force the reset of the platform
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-589544955
@cenitfish did you get it working ?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] davsclaus commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588845149
I think the reporter asked on Camel mailing list, and it was about camel k auto-discovering 3rd party components in the DSL and automatic could map it to maven coordinates. That wont work out of the box. And it would require for example to support installing custom catalog's or something with metadata that describe component scheme/name and its mvn coordinate etc.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] cenitfish commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
cenitfish commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588964927
@lburgazzoli
If I use the command `kubectl describe pod camel-k***` there is no information about the config map. I suspect that the karaf command could be used for this. I'm sorry, but how do I do that?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588965852
To list all the configmap in your namespace: `oc get cm`
To get the content of a config map: oc get cm ${name} -o yaml
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588859972
@cenitfish can you post the log of the builder pod ? there should be an error there
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] cenitfish commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
cenitfish commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588865962
@lburgazzoli
Here is the complete log from the builder pod:
`kubectl logs camel-k-kit-bp750vabvegtmhqbb5dg-builder`
Error from server (BadRequest): container "kaniko" in pod "camel-k-kit-bp750vabvegtmhqbb5dg-builder" is waiting to start: PodInitializing
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588802683
This should work out of the box as under the hoods your code is executed by a standard camel application: did you experience any issue ?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] cenitfish commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
cenitfish commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588873618
@lburgazzoli
I think the problem is that my Maven artifact is not found even though I have already registered the Maven repository. Can I somehow test whether kamel can access the Maven repository?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] cenitfish commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
cenitfish commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588847435
Hi Luca,
currently I have the problem that if I pass my dependency with the -d option, an error occurs.
`kamel run -d mvn:mycompany:mycomponent:1.0 hello.groovy --dev`
integration "hello" created
integration "hello" in phase Initialization
integration "hello" in phase Building Kit
integration "hello" in phase Error
integration deployment failed
`kubectl logs camel-k-kit-bp750vabvegtmhqbb5dg-builder`
Error from server (BadRequest): container "kaniko" in pod "camel-k-kit-bp750vabvegtmhqbb5dg-builder" is waiting to start: PodInitializing
`kubectl describe pod camel-k-kit-bp750vabvegtmhqbb5dg-builder`
Events:
Type Reason Age From Message
Normal Scheduled <unknown> default-scheduler Successfully assigned default/camel-k-kit-bp750vabvegtmhqbb5dg-builder to minikube
Normal Pulled 57s kubelet, minikube Container image "docker.io/apache/camel-k:1.0.0-RC1" already present on machine
Normal Created 57s kubelet, minikube Created container builder
Normal Started 57s kubelet, minikube Started container builder
Do you have any idea what the problem could be?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588884495
Can you check that the repository is listed among those used by camel-k ? there is a config map named `camel-k-maven-settings` with a `settings.xml` key that contains maven' settings
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588978869
can you post the content of the integration platform ? I think when you did ยท`kamel install` a platform was already there so the maven settings have not been updated
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] cenitfish commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
cenitfish commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588977521
@lburgazzoli
That's the problem. Unfortunately my maven repository is not listed there.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] astefanutti commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-589080557
> It's difficult to see the logs because now the maven build is done in an init container and kubectl only display it if you specify the name of the container explicitly.. it should be builder iirc, so kubectl logs -c builder nameofthepod.
Right, that's a side effect of using init containers.
> Another reason to switch to an embedded build model for 1.0.0, @astefanutti ?
Yes, that won't rely on init containers.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] cenitfish commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
cenitfish commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-589597361
After the Camel Reinstall (without updated config map) it now seems to work. I continue with my tests. I'll be in touch when I'm done.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] nicolaferraro commented on issue #1285: Support of 3rd
party camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-588979345
It's difficult to see the logs because now the maven build is done in an init container and kubectl only display it if you specify the name of the container explicitly.. it should be `builder` iirc, so `kubectl logs -c builder nameofthepod`.
Another reason to switch to an embedded build model for `1.0.0`, @astefanutti ?
I'd also try to fix the issue that cause the resources not to be replaced when already present in RC2.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-k] cenitfish commented on issue #1285: Support of 3rd party
camel components, data formats and type converters
Posted by GitBox <gi...@apache.org>.
cenitfish commented on issue #1285: Support of 3rd party camel components, data formats and type converters
URL: https://github.com/apache/camel-k/issues/1285#issuecomment-589568213
@igarashitm I updated the config map "camel-k-maven-settings" and my repository is now included. Unfortunately I still get the error:
`
Error from server (BadRequest): container "kaniko" in pod "camel-k-kit-bp7nnhabveguqppri490-builder" is waiting to start: PodInitializing`
I have no idea what's wrong.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services