Repository: bigtop Updated Branches: refs/heads/master d7e9834d5 -> d07cf3369
BIGTOP-1756. Add HADOOP_MAPRED_HOME property to common Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/d07cf336 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/d07cf336 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/d07cf336 Branch: refs/heads/master Commit: d07cf3369275582a39be2cc594e5d30c1e70f4d3 Parents: d7e9834 Author: Dasha <[email protected]> Authored: Sun Mar 15 15:07:10 2015 -0700 Committer: Dasha <[email protected]> Committed: Sun Mar 15 15:07:10 2015 -0700 ---------------------------------------------------------------------- bigtop-tests/test-execution/common/pom.xml | 1 + .../test-execution/smokes/hadoop/pom.xml | 30 ++++++++++++++++++++ 2 files changed, 31 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/d07cf336/bigtop-tests/test-execution/common/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-execution/common/pom.xml b/bigtop-tests/test-execution/common/pom.xml index 279a125..9397330 100644 --- a/bigtop-tests/test-execution/common/pom.xml +++ b/bigtop-tests/test-execution/common/pom.xml @@ -45,6 +45,7 @@ These settings should be enforced at the top level --> <HADOOP_HOME>${env.HADOOP_HOME}</HADOOP_HOME> + <HADOOP_MAPRED_HOME>${env.HADOOP_MAPRED_HOME}</HADOOP_MAPRED_HOME> <HADOOP_CONF_DIR>${env.HADOOP_CONF_DIR}</HADOOP_CONF_DIR> <!-- Default exclude mask for failsafe plugin. OPTIONAL http://git-wip-us.apache.org/repos/asf/bigtop/blob/d07cf336/bigtop-tests/test-execution/smokes/hadoop/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-execution/smokes/hadoop/pom.xml b/bigtop-tests/test-execution/smokes/hadoop/pom.xml index 8e456cb..4277ffb 100644 --- a/bigtop-tests/test-execution/smokes/hadoop/pom.xml +++ b/bigtop-tests/test-execution/smokes/hadoop/pom.xml @@ -71,6 +71,36 @@ <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.0</version> + <executions> + <execution> + <id>enforce-property</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireProperty> + <property>HADOOP_MAPRED_HOME</property> + <message>HADOOP_MAPRED_HOME env. variable has to be set</message> + </requireProperty> + <requireProperty> + <property>HADOOP_HOME</property> + <message>HADOOP_HOME env. variable has to be set</message> + </requireProperty> + <requireProperty> + <property>HADOOP_CONF_DIR</property> + <message>HADOOP_CONF_DIR env. variable has to be set</message> + </requireProperty> + </rules> + <fail>true</fail> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> </plugin>
