aboutsummaryrefslogtreecommitdiff
path: root/bigtop-tests/spec-tests
diff options
context:
space:
mode:
authorKonstantin Boudnik <cos@boudnik.org>2016-03-15 13:15:52 +0300
committerRoman Shaposhnik <rvs@apache.org>2017-03-23 10:26:58 -0700
commit10356860dd5035dbe36893f26a182fd7794c3985 (patch)
treedc643b6095548c407540f7a4dcb42d01a0ab6429 /bigtop-tests/spec-tests
parent4081b7361eab3785e910d871216f9e8942521e63 (diff)
ODPI-37. Test [HADOOP_HNATIVE1]
ODPI-38. Test [HADOOP_YNATIVE1] Fixing the test when appropriate env variables are not set explicitly. (cherry picked from commit 5dc03b82ffbac891844de3eedac46bb3a158dbc7)
Diffstat (limited to 'bigtop-tests/spec-tests')
-rw-r--r--bigtop-tests/spec-tests/runtime/src/test/resources/testRuntimeSpecConf.groovy6
1 files changed, 4 insertions, 2 deletions
diff --git a/bigtop-tests/spec-tests/runtime/src/test/resources/testRuntimeSpecConf.groovy b/bigtop-tests/spec-tests/runtime/src/test/resources/testRuntimeSpecConf.groovy
index 6bf60c7f..50f2f740 100644
--- a/bigtop-tests/spec-tests/runtime/src/test/resources/testRuntimeSpecConf.groovy
+++ b/bigtop-tests/spec-tests/runtime/src/test/resources/testRuntimeSpecConf.groovy
@@ -321,7 +321,8 @@ specs {
name = 'HADOOP_HNATIVE1'
type = 'shell'
arguments {
- command = 'test -e $HADOOP_COMMON_HOME/lib/native/libhdfs.a'
+ command = '[ ! -n ${HADOOP_COMMON_HOME} ] || HADOOP_COMMON_HOME=`hadoop envvars | grep HADOOP_COMMON_HOME | sed "s/.*=\'\\(.*\\)\'/\\1/"`; '+
+ 'test -e $HADOOP_COMMON_HOME/lib/native/libhdfs.a'
message = 'hadoop-hdfs-project must be build with -Pnative or -Pnative-win'
}
}
@@ -329,7 +330,8 @@ specs {
name = 'HADOOP_YNATIVE1'
type = 'shell'
arguments {
- command = 'test -e $HADOOP_YARN_HOME/bin/container-executor'
+ command = '[ ! -n ${HADOOP_YARN_HOME} ] || HADOOP_YARN_HOME=`yarn envvars | grep HADOOP_YARN_HOME | sed "s/.*=\'\\(.*\\)\'/\\1/"`; '+
+ 'echo $HADOOP_YARN_HOME; test -e $HADOOP_YARN_HOME/bin/container-executor'
message = 'hadoop-yarn-project must be build with -Pnative or -Pnative-win'
}
}