ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alejan...@apache.org
Subject ambari git commit: AMBARI-9504. Configuration parameter 'dfs.journalnode.kerberos.principal' was not found in configurations dictionary. Kerberized cluster (alejandro)
Date Thu, 05 Feb 2015 20:46:18 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 8a6627ff2 -> f5c7f1eb1


AMBARI-9504. Configuration parameter 'dfs.journalnode.kerberos.principal' was not found in
configurations dictionary. Kerberized cluster (alejandro)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f5c7f1eb
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f5c7f1eb
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f5c7f1eb

Branch: refs/heads/trunk
Commit: f5c7f1eb17da4bfb26798edfa9000eed8434e5c3
Parents: 8a6627f
Author: Alejandro Fernandez <afernandez@hortonworks.com>
Authored: Thu Feb 5 12:07:17 2015 -0800
Committer: Alejandro Fernandez <afernandez@hortonworks.com>
Committed: Thu Feb 5 12:07:17 2015 -0800

----------------------------------------------------------------------
 .../common-services/HDFS/2.1.0.2.0/package/scripts/params.py  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f5c7f1eb/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py
b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py
index ef0991e..900b6d1 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py
@@ -241,9 +241,10 @@ if security_enabled:
   
   nn_kinit_cmd = format("{kinit_path_local} -kt {_nn_keytab} {_nn_principal_name};")
 
-  _jn_principal_name = config['configurations']['hdfs-site']['dfs.journalnode.kerberos.principal']
-  _jn_principal_name = _jn_principal_name.replace('_HOST', hostname.lower())
-  _jn_keytab = config['configurations']['hdfs-site']['dfs.journalnode.keytab.file']
+  _jn_principal_name = default("/configurations/hdfs-site/dfs.journalnode.kerberos.principal",
None)
+  if _jn_principal_name:
+    _jn_principal_name = _jn_principal_name.replace('_HOST', hostname.lower())
+  _jn_keytab = default("/configurations/hdfs-site/dfs.journalnode.keytab.file", None)
   jn_kinit_cmd = format("{kinit_path_local} -kt {_jn_keytab} {_jn_principal_name};")
 else:
   dn_kinit_cmd = ""


Mime
View raw message