...
Code Block |
---|
cd cdap mvn clean packageinstall -DskipTests |
If you get compile errors similar to this one:
...
Build and run Local Standalone CDAP
Git clone the CDAP repository (if you haven't yet), and the Hydrator Follow the steps above to build CDAP and install it to the local maven repository. Then cd out of the cdap directory and clone hydrator-plugins:
Code Block |
---|
gitcd clone git@github.com:cdapio/cdap.git git clone git@github.com:cdapio/hydrator-plugins.git |
First build Build the plugins:
note: --remote pulls the latest versions of every submodule, rather than the versions locked in the hydrator-plugins git. This is intentional.
Code Block |
---|
cd hydrator-plugins git submodule update --init --recursive --remote mvn clean packageinstall -DskipTests |
Then cd out of hydrator-plugins back to the cdap directory, and build the CDAP sandbox, including the plugins:
Code Block | ||
---|---|---|
| ||
cd ../cdap HYDRATOR_PLUGINS=../hydrator-plugins MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" mvn clean package \ -pl cdap-standalone,cdap-app-templates/cdap-etl \ -am -amd -DskipTests \ -P templates,dist,release,unit-tests \ -Dadditional.artifacts.dir=<path to hydrator-plugins>$HYDRATOR_PLUGINS cd cdap-standalone/target unzip cdap-sandbox-<version>-SNAPSHOT.zip cd cdap-sandbox-<version>-SNAPSHOT cd bin ./cdap sandbox start |
...