ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odiache...@apache.org
Subject ambari git commit: AMBARI-14619. Hawq master install fails if hawq user password is numeric(Lav Jain via odiachenko).
Date Tue, 12 Jan 2016 22:59:45 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 53aa58158 -> 2c7d84c39


AMBARI-14619. Hawq master install fails if hawq user password is numeric(Lav Jain via odiachenko).


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

Branch: refs/heads/trunk
Commit: 2c7d84c39c4fa7686f6fe826815420bc25fbd295
Parents: 53aa581
Author: Oleksandr Diachenko <odiachenko@pivotal.io>
Authored: Tue Jan 12 14:59:39 2016 -0800
Committer: Oleksandr Diachenko <odiachenko@pivotal.io>
Committed: Tue Jan 12 14:59:39 2016 -0800

----------------------------------------------------------------------
 .../common-services/HAWQ/2.0.0/package/scripts/params.py         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2c7d84c3/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py
b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py
index 4dc0874..e19de9d 100644
--- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py
@@ -48,7 +48,9 @@ hostname = config['hostname']
 # Users and Groups
 hdfs_superuser = config['configurations']['hadoop-env']['hdfs_user']
 user_group = config['configurations']['cluster-env']['user_group']
-hawq_password = config['configurations']['hawq-env']['hawq_password']
+
+# Convert hawq_password to unicode for crypt() function in case user enters a numeric password
+hawq_password = unicode(config['configurations']['hawq-env']['hawq_password'])
 
 
 # HAWQ Hostnames


Mime
View raw message