Find file History

CDK - Morphlines Parent

Cloudera Morphlines is an open source framework that reduces the time and skills necessary to build and change Hadoop ETL stream processing applications that extract, transform and load data into Apache Solr, Enterprise Data Warehouses, HDFS, HBase or Analytic Online Dashboards.


See Online Documentation.

Usage in your Maven Project

  • To use Cloudera Morphlines in your Maven project, add the following repository to the <repositories> section of your pom.xml:
  <name>Cloudera Repositories</name>
  • Also, to pull in the minimum set of dependencies add the following dependency to the <dependencies> section of your pom.xml:
  <version>0.8.1</version> <!-- or whatever the latest version is -->
  • Alternatively, to pull in the maximum set of dependencies (i.e. all available commands) add the following dependency to the <dependencies> section of your pom.xml:
  <version>0.8.1</version> <!-- or whatever the latest version is -->


This step builds the software from source.

git clone
cd cdk
#git tag # list available releases
#git checkout master
#git checkout release-0.8.1 # or whatever the latest version is
mvn clean package
find cdk-morphlines/cdk-morphlines-core/target -name '*.jar'
find cdk-morphlines/cdk-morphlines-all/target -name '*.jar'

Integrating with Eclipse

  • This section describes how to integrate the codeline with Eclipse.
  • Build the software as described above. Then create Eclipse projects like this:
cd cdk
mvn eclipse:eclipse
  • mvn eclipse:eclipse creates several Eclipse projects, one for each maven submodule. It will also download and attach the jars of all transitive dependencies and their source code to the eclipse projects, so you can readily browse around the source of the entire call stack.
  • Then in eclipse do Menu File/Import/Maven/Existing Maven Project/ on the root parent directory ~/cdk and select all submodules, then "Next" and "Finish".
  • You will see some maven project errors that keep eclipse from building the workspace because the eclipse maven plugin has some weird quirks and limitations. To work around this, next, disable the maven "Nature" by clicking on the project in the browser, right clicking on Menu Maven/Disable Maven Nature. Repeat this for each project. This way you get all the niceties of the maven dependency management without the hassle of the (current) Maven Eclipse plugin, everything compiles fine from within Eclipse, and junit works and passes from within Eclipse as well.
  • When a pom changes simply rerun mvn eclipse:eclipse and then run Menu Eclipse/Refresh Project. No need to disable the Maven "Nature" again and again.
  • To run junit tests from within eclipse click on the project (e.g. cdk-morphlines-core) in the eclipse project explorer, right click, Run As/JUnit Test.