You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by od...@apache.org on 2013/08/15 18:26:25 UTC
git commit: AMBARI-2915. DataNodes failed to start with a custom HDFS
username. (Dmitry Sen via odiachenko)
Updated Branches:
refs/heads/trunk 83c4991ec -> e5286e04b
AMBARI-2915. DataNodes failed to start with a custom HDFS username. (Dmitry Sen via odiachenko)
Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/e5286e04
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/e5286e04
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/e5286e04
Branch: refs/heads/trunk
Commit: e5286e04b0a0365020026bb4bfe1976b1965e2a0
Parents: 83c4991
Author: Oleksandr Diachenko <od...@hortonworks.com>
Authored: Thu Aug 15 19:26:07 2013 +0300
Committer: Oleksandr Diachenko <od...@hortonworks.com>
Committed: Thu Aug 15 19:26:07 2013 +0300
----------------------------------------------------------------------
.../src/main/puppet/modules/hdp-hadoop/manifests/init.pp | 6 ++++++
.../src/main/puppet/modules/hdp-hadoop/manifests/params.pp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/e5286e04/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp
index 7025a70..bd63543 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp
@@ -267,6 +267,12 @@ class hdp-hadoop(
hdp::directory_recursive_create { $piddirprefix:
owner => 'root'
}
+
+ $dfs_domain_socket_path_dir = regsubst($hdp-hadoop::params::dfs_domain_socket_path, '/[^\/]+$', '')
+ hdp::directory_recursive_create { $dfs_domain_socket_path_dir:
+ owner => $hdfs_user,
+ group => $hdp::params::user_group
+ }
#taskcontroller.cfg properties conditional on security
if ($hdp::params::security_enabled == true) {
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/e5286e04/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/params.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/params.pp b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/params.pp
index a4abb1d..df3492e 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/params.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/params.pp
@@ -149,7 +149,7 @@ class hdp-hadoop::params(
$jn_edits_dir = hdp_default("hdfs-site/dfs.journalnode.edits.dir", "/grid/0/hdfs/journal")
-
+ $dfs_domain_socket_path = hdp_default("hdfs-site/dfs.domain.socket.path","/var/lib/hadoop-hdfs/dn_socket")
######### mapred #######
### mapred-site