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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 9215d63333d7f38bd649dbce75621278f7a9c73d
Parents: 9351737
Author: Oleksandr Diachenko <[email protected]>
Authored: Tue Jan 12 14:59:39 2016 -0800
Committer: Nate Cole <[email protected]>
Committed: Thu Jan 14 11:43:26 2016 -0500

----------------------------------------------------------------------
 .../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/9215d633/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

Reply via email to