You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2013/12/10 02:58:21 UTC
[2/3] git commit: AMBARI-4025. Smoke Tests for HBase fails on a 4
node cluster when smoke test is run on a non RS/Master host. (swagle)
AMBARI-4025. Smoke Tests for HBase fails on a 4 node cluster when smoke test is run on a non RS/Master host. (swagle)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/be6d0ef6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/be6d0ef6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/be6d0ef6
Branch: refs/heads/trunk
Commit: be6d0ef688527a7c582d24a562818513f187ff93
Parents: cc58951
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Mon Dec 9 17:28:23 2013 -0800
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Mon Dec 9 17:31:42 2013 -0800
----------------------------------------------------------------------
.../main/puppet/modules/hdp-hbase/manifests/client.pp | 12 ++++++++++++
1 file changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/be6d0ef6/ambari-agent/src/main/puppet/modules/hdp-hbase/manifests/client.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-hbase/manifests/client.pp b/ambari-agent/src/main/puppet/modules/hdp-hbase/manifests/client.pp
index 69c4bb8..374b80b 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-hbase/manifests/client.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp-hbase/manifests/client.pp
@@ -23,6 +23,9 @@ class hdp-hbase::client(
$opts = {}
)
{
+ include hdp-hbase::params
+ $hbase_tmp_dir = $hdp-hbase::params::hbase_tmp_dir
+
#assumption is there are no other hbase components on node
if ($service_state == 'no_op') {
} elsif ($service_state in ['installed_and_configured','uninstalled']) {
@@ -32,6 +35,15 @@ class hdp-hbase::client(
type => 'client',
service_state => $service_state
}
+
+ hdp::directory_recursive_create_ignore_failure { $hbase_tmp_dir:
+ owner => $hdp-hbase::params::hbase_user,
+ context_tag => 'hbase_client',
+ service_state => $service_state,
+ force => true
+ }
+
+ Class[ 'hdp-hbase' ] -> Hdp::Directory_recursive_create_ignore_failure[ $hbase_tmp_dir ]
}
} else {
hdp_fail("TODO not implemented yet: service_state = ${service_state}")