You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2015/03/05 18:08:49 UTC
ambari git commit: AMBARI-9921. Spark Thriftserver fails to
initialize correctly in secure Ambari cluster (Gautam Borad via smohanty)
Repository: ambari
Updated Branches:
refs/heads/trunk 9a0b211a8 -> fb3f33539
AMBARI-9921. Spark Thriftserver fails to initialize correctly in secure Ambari cluster (Gautam Borad via smohanty)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/fb3f3353
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/fb3f3353
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/fb3f3353
Branch: refs/heads/trunk
Commit: fb3f33539eb9f49a30bd99238e607603d4d6d9c7
Parents: 9a0b211
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Thu Mar 5 09:08:32 2015 -0800
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Thu Mar 5 09:08:32 2015 -0800
----------------------------------------------------------------------
.../common-services/SPARK/1.2.0.2.2/package/scripts/params.py | 1 +
.../common-services/SPARK/1.2.0.2.2/package/scripts/setup_spark.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/fb3f3353/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/params.py b/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/params.py
index 5de997e..8d2d285 100644
--- a/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/params.py
@@ -90,6 +90,7 @@ else:
spark_history_server_host = "localhost"
# spark-defaults params
+spark_hive_sec_authorization_enabled = "false"
spark_yarn_historyServer_address = default(spark_history_server_host, "localhost")
spark_yarn_applicationMaster_waitTries = default(
http://git-wip-us.apache.org/repos/asf/ambari/blob/fb3f3353/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/setup_spark.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/setup_spark.py b/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/setup_spark.py
index 2c7d287..6935b08 100644
--- a/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/setup_spark.py
+++ b/ambari-server/src/main/resources/common-services/SPARK/1.2.0.2.2/package/scripts/setup_spark.py
@@ -99,7 +99,7 @@ def get_hive_config():
hive_conf_dict['hive.metastore.kerberos.principal'] = params.config['configurations']['hive-site']['hive.metastore.kerberos.principal']
hive_conf_dict['hive.server2.authentication.kerberos.principal'] = params.config['configurations']['hive-site']['hive.server2.authentication.kerberos.principal']
hive_conf_dict['hive.server2.authentication.kerberos.keytab'] = params.config['configurations']['hive-site']['hive.server2.authentication.kerberos.keytab']
- hive_conf_dict['hive.security.authorization.enabled']= str(params.config['configurations']['hive-site']['hive.security.authorization.enabled']).lower()
+ hive_conf_dict['hive.security.authorization.enabled'] = params.spark_hive_sec_authorization_enabled
hive_conf_dict['hive.server2.enable.doAs'] = str(params.config['configurations']['hive-site']['hive.server2.enable.doAs']).lower()
return hive_conf_dict