I am trying to configure a flume service in cloudera manager. I have a custom flume interceptor. Where should i place the custom built interceptor jar file?
If you are using CDH 5.x
You can place the custom flume jar in
/var/lib/flume-ng/plugins.d/phc/lib
The jar needs to be in all the flume nodes processing the data.
Related
I've got a Spring Boot application that uses AOP rules. These rules depend on application properties.
Now I have to make this application use Spring Cloud Config Server. But the problem is - AOP rules demand properties before my application fetches configuration from the Config Server. Is there any way to fetch properties from the server before AOP rules are being resolved?
Did you put Spring Cloud Config server properties in bootstrap.properties or bootstrap.yml?
I am trying to deploy a jax-ws webservice on Websphere 8.5.5.12. I am using CXF as my jax-ws engine. I have gone through the prerequisites and changed the class loader as well as desabled the JaxWs engine in websphere. I have set the property to disable Jax-WS engine in the manifest file of my war file.
My application is a Spring boot application. I am also using apache camel 2.20.1 and using the cxf end point to consume the messages.
As a spring boot application my application is working fine.
When I deploy on Websphere my application starts without any issues. But when it intercepts any incoming requests, it throws class not found exception for javax.servlet.WriteListener class. This class is part of the servlet api. It should have been part of the Websphere j2ee library.
Need to know what I did wrong. I don't want to take the shared library route. I have been suggested, that I need to move all my cxf dependencies, into a shared library and set my class loader for this library. I am not comfortable with this solution.
javax.servlet.WriteListener is a Servlet 3.1 / Java EE7 API.
WebSphere Application Server 8.5.5 implements Servlet 3.0 / Java EE6.
You should use either WebSphere Application Server 9.0.0.x or any recent WebSphere Liberty release (which has been versioned differently for quite some time).
(or, remove the 3.1 dependencies from your app if you must run it on WebSphere Application Server 8.5.5)
We have few scheduled jobs implemented via apache camel routes & qaurtz scheduler. We are migrating our application to pivotal cloud foundry. Does Pivotal cloud foundry support apache camel routes?
Why not? They run in a java container. See my example running in spring boot with a cloud foundry manifest: https://github.com/amaline/camel-example.git
Cloud Foundry (CF) supports deployment of applications through so called build packs for different technologies. For example, if your application is running on JVM, you need to deploy it to CF with corresponding Java Build Pack.
One common way to deploy Camel routes to CF is to package Camel routes as Spring Boot Java apps and then deploy them to CF using Java build pack.
I followed Apache Sling tutorials using its Launchpad. As I understood, it uses a built in jackrabbit repository within the Launchpad.
Is there a way to access a standalone jackrabbit repository using Sling API without using its launchpad?
Thanks.
The embedded repository is provided by the org.apache.sling.jcr.jackrabbit.server bundle, so if this bundle and the ones that it requires are active you should get the corresponding SlingRepository service, backed by an embedded Jackrabbit repository.
I dont want to use Axis2 or CXF with Camel. Is it possible to configure camel with JAX-WS reference implementation or weblogic application server or websphere application server or tomcat + jax-ws refrence implementation?
Camel provides 2 web services components out of the box: camel-cxf and camel-spring-ws. For any other web service integration just use plain java. From any Java code, you can send a message to Camel using the ProducerTemplate. Then that way you can bridge the JAX-WS of the application server with Camel. We used to have an old example at Apache Camel that showed how to integrate Axis 1.4 with Camel, but that examples has been removed as part of cleanup recently.
As far as I know that is not possible. The camel-axis and camel-cxf components are directly using the cxf and axis classes. You could use the SoapDataFormat but this is just for simple cases and not a full stack.