[ 
https://issues.apache.org/jira/browse/AMBARI-24532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vitaly Brodetskyi reassigned AMBARI-24532:
------------------------------------------

    Assignee: Vitaly Brodetskyi

> Service Check for Spark2 fails when ssl enabled in spark
> --------------------------------------------------------
>
>                 Key: AMBARI-24532
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24532
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.2
>            Reporter: Ravi Bhardwaj
>            Assignee: Vitaly Brodetskyi
>            Priority: Major
>
> Service check for Spark2 fails when History server is running on https fails 
> when a custom port is set via spark.ssl.historyServer.port. By default, when 
> enabling SSL on the Spark2 History Server, the instance will start on port 
> configured with 'spark.history.ui.port' (port for HTTP) + 400. However, since 
> https://issues.apache.org/jira/browse/SPARK-17874 it is possible to specify 
> the port to use for HTTPS using the property 'spark.ssl.historyServer.port'. 
> Ambari however does not read spark.ssl.historyServer.port property to find 
> the correct SSL port while performing service check.
>  
> {code:java}
> /var/lib/ambari-server/resources/common-services/SPARK2/2.0.0/package/scripts/params.py:
> spark-defaults params
> ui_ssl_enabled = default("configurations/spark2-defaults/spark.ssl.enabled", 
> False)
> spark_yarn_historyServer_address = default(spark_history_server_host, 
> "localhost")
> spark_history_scheme = "http"
> spark_history_ui_port = 
> config['configurations']['spark2-defaults']['spark.history.ui.port']
> if ui_ssl_enabled:
>   spark_history_ui_port = str(int(spark_history_ui_port) + 400)
>   spark_history_scheme = "https"{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to