Skip to content

Commit

Permalink
MapR [SPARK-194] Redirect to Spark History server (apache#242)
Browse files Browse the repository at this point in the history
* MapR [SPARK-194] Redirect to Spark History server
  • Loading branch information
ekrivokonmapr authored and mgorbov committed Mar 25, 2018
1 parent 844642e commit 71cd6d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ fi
if grep -q "spark.ssl.historyServer.port" "$SPARK_HOME/conf/spark-defaults.conf"; then
sparkHSSecureUIPort=$(sed -n -e '/^spark.ssl.historyServer.port/p' $SPARK_HOME/conf/spark-defaults.conf | sed 's/.* //')
fi
if [ -f $SPARK_HOME/warden/warden.spark-historyserver.conf ] ; then
changeSparkDefaults "spark.yarn.historyServer.address" "spark.yarn.historyServer.address $(hostname --fqdn):$sparkHSUIPort"
fi
sed -i '/# SECURITY BLOCK/,/# END OF THE SECURITY CONFIGURATION BLOCK/d' "$SPARK_HOME"/conf/spark-defaults.conf
if [ "$isSecure" == 1 ] ; then
source $MAPR_HOME/conf/env.sh
Expand Down Expand Up @@ -245,6 +248,7 @@ EOM
if [ -f $SPARK_HOME/warden/warden.spark-historyserver.conf ] ; then
changeWardenConfig "service.ui.port" "service.ui.port=$sparkHSSecureUIPort" "historyserver"
sed -i "/\# ssl/a spark.ssl.historyServer.port $sparkHSSecureUIPort" $SPARK_HOME/conf/spark-defaults.conf
changeSparkDefaults "spark.yarn.historyServer.address" "spark.yarn.historyServer.address $(hostname --fqdn):$sparkHSSecureUIPort"
fi
case "$CLUSTER_INFO" in
*"secure=true"*)
Expand Down

0 comments on commit 71cd6d2

Please sign in to comment.