ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [1/3] ambari git commit: AMBARI-13188. Ambari QE Deploy Test - Configuration parameter 'javax.jdo.option.ConnectionPassword' was not found in configurations dictionary (aonishuk)
Date Tue, 22 Sep 2015 15:12:00 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 efbc43d62 -> d52b5a81b
  refs/heads/branch-2.1.2 9eb65530e -> b70196a0f
  refs/heads/trunk b0ecd5990 -> e537178b1


AMBARI-13188. Ambari QE Deploy Test - Configuration parameter 'javax.jdo.option.ConnectionPassword'
was not found in configurations dictionary (aonishuk)


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

Branch: refs/heads/trunk
Commit: e537178b1bedd615df7a172c15032e363e22db02
Parents: b0ecd59
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Tue Sep 22 18:11:46 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Tue Sep 22 18:11:46 2015 +0300

----------------------------------------------------------------------
 .../HIVE/0.12.0.2.0/package/scripts/params_linux.py              | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e537178b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
index 52225a6..28462b9 100644
--- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
+++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
@@ -28,6 +28,7 @@ from ambari_commons.os_check import OSCheck
 from resource_management.libraries.resources.hdfs_resource import HdfsResource
 from resource_management.libraries.functions.default import default
 from resource_management.libraries.functions.format import format
+from resource_management.libraries.functions.is_empty import is_empty
 from resource_management.libraries.functions.version import format_hdp_stack_version
 from resource_management.libraries.functions.copy_tarball import STACK_VERSION_PATTERN
 from resource_management.libraries.functions import get_kinit_path
@@ -164,7 +165,8 @@ execute_path = os.environ['PATH'] + os.pathsep + hive_bin + os.pathsep
+ hadoop_
 hive_metastore_user_name = config['configurations']['hive-site']['javax.jdo.option.ConnectionUserName']
 hive_jdbc_connection_url = config['configurations']['hive-site']['javax.jdo.option.ConnectionURL']
 
-hive_metastore_user_passwd = unicode(config['configurations']['hive-site']['javax.jdo.option.ConnectionPassword'])
+hive_metastore_user_passwd = config['configurations']['hive-site']['javax.jdo.option.ConnectionPassword']
+hive_metastore_user_passwd = unicode(hive_metastore_user_passwd) if not is_empty(hive_metastore_user_passwd)
else hive_metastore_user_passwd
 hive_metastore_db_type = config['configurations']['hive-env']['hive_database_type']
 #HACK Temporarily use dbType=azuredb while invoking schematool
 if hive_metastore_db_type == "mssql":


Mime
View raw message