AMBARI-13729. Change the Spark thrift server security configurations (Saisai Shao via smohanty)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/618d843c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/618d843c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/618d843c Branch: refs/heads/trunk Commit: 618d843c1b8b436748117b9e3852f85ae802873b Parents: a5d5dc9 Author: Sumit Mohanty <smoha...@hortonworks.com> Authored: Sun Nov 8 17:21:23 2015 -0800 Committer: Sumit Mohanty <smoha...@hortonworks.com> Committed: Sun Nov 8 17:21:23 2015 -0800 ---------------------------------------------------------------------- .../common-services/SPARK/1.2.0.2.2/package/scripts/params.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/618d843c/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 e5b2fb8..7706650 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 @@ -105,7 +105,6 @@ 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_history_ui_port = config['configurations']['spark-defaults']['spark.history.ui.port'] @@ -145,7 +144,7 @@ spark_hive_properties = { # security settings if security_enabled: spark_principal = spark_kerberos_principal.replace('_HOST',spark_history_server_host.lower()) - + if is_hive_installed: spark_hive_properties.update({ 'hive.metastore.sasl.enabled': str(config['configurations']['hive-site']['hive.metastore.sasl.enabled']).lower(), @@ -155,8 +154,7 @@ if security_enabled: 'hive.metastore.kerberos.principal': config['configurations']['hive-site']['hive.metastore.kerberos.principal'], 'hive.server2.authentication.kerberos.principal': config['configurations']['hive-site']['hive.server2.authentication.kerberos.principal'], 'hive.server2.authentication.kerberos.keytab': config['configurations']['hive-site']['hive.server2.authentication.kerberos.keytab'], - 'hive.security.authorization.enabled': spark_hive_sec_authorization_enabled, - 'hive.server2.enable.doAs': str(config['configurations']['hive-site']['hive.server2.enable.doAs']).lower() + 'hive.server2.authentication': config['configurations']['hive-site']['hive.server2.authentication'], }) # thrift server support - available on HDP 2.3 or higher