cdap-sdk template not working with autobuild

Description

I specified the 'cdap-sdk' template and it provisions fine.
If I specify autobuild, with the cdap branch as 'release/5.0', it fails, with the following in the  maven-autobuild.log file:

Running: mvn clean install -DskipTests -am -pl cdap-api  -P templates Error: JAVA_HOME is not defined correctly.   We cannot execute Running: mvn clean install -DskipTests -am -pl cdap-api  -P templates Error: JAVA_HOME is not defined correctly.   We cannot execute Running: mvn clean install -DskipTests -am -pl cdap-api  -P templates Error: JAVA_HOME is not defined correctly.   We cannot execute

Release Notes

None

Activity

Show:

Derek WoodAugust 6, 2018 at 5:45 PM

Derek WoodAugust 3, 2018 at 2:30 AM

this is basically a coopr dependency problem. `cdap_auto` depends on java being installed first, which in a distributed cluster is taken care of by the hadoop services. in this case, java is not installed yet when maven tries to build (`cdap::sdk` would eventually install java, but not until after cdap_auto is run).

likely solution is to add java cookbook dependency to cdap_auto and call it from `cdap_auto::sdk`. I need to make sure this won't break anything else though.

A better but complex solution would be to refactor java into its own coopr service.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Priority

Created August 1, 2018 at 11:01 PM
Updated August 6, 2018 at 6:45 PM
Resolved August 6, 2018 at 6:45 PM

Flag notifications