Repository: ambari Updated Branches: refs/heads/branch-2.0.0 72dfdd499 -> 3662bd41f
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/3662bd41 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3662bd41 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3662bd41 Branch: refs/heads/branch-2.0.0 Commit: 3662bd41fe6f197a4ac083ddbf9bd9bc159c1bc2 Parents: 72dfdd4 Author: Sumit Mohanty <[email protected]> Authored: Thu Mar 5 09:08:32 2015 -0800 Committer: Sumit Mohanty <[email protected]> Committed: Thu Mar 5 09:09:13 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/3662bd41/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/3662bd41/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
