Installing Hadoop client bundles in Apache Karaf

With Hadoop running, we are ready to start utilizing the resources from Apache Karaf.

Getting ready

The ingredients of this recipe include the Apache Karaf distribution kit, access to JDK, and Internet connectivity. We also assume that an Apache Hadoop distribution is downloaded and installed. It can be downloaded from http://hadoop.apache.org/#Download.

How to do it…

Hadoop's HDFS libraries aren't part of the standard Karaf feature library; so, we either have to write our own feature or manually install the necessary bundles for the client to run. Apache Camel does have this feature available via Camels HDFS2 component. We can either use Camel's existing feature or build the feature ourselves.

With ...

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.