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:59:32 UTC

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)

Updated Branches:
  refs/heads/branch-1.4.2 6d09b633d -> ac6b963fc


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/ac6b963f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ac6b963f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ac6b963f

Branch: refs/heads/branch-1.4.2
Commit: ac6b963fc64ff98d4e09667d6fc0cf229d7e7f49
Parents: 6d09b63
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Mon Dec 9 17:59:17 2013 -0800
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Mon Dec 9 17:59:17 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/ac6b963f/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..b0931df 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}/local/jars":
+        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<||>
     }
   } else {
     hdp_fail("TODO not implemented yet: service_state = ${service_state}")