Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-23759

Unable to bind Spark UI to specific host name / IP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.2, 2.3.1, 2.4.0
    • Spark Core, Web UI
    • None

    Description

      Ideally, exporting SPARK_LOCAL_IP=<private-interface-ip-address> in spark2 environment should allow Spark2 History server to bind to private interface however this is not working in spark 2.2.0

       

      Spark2 history server still listens on 0.0.0.0

      [root@sparknode1 ~]# netstat -tulapn|grep 18081
      tcp        0      0 0.0.0.0:18081               0.0.0.0:*                   LISTEN      21313/java
      tcp        0      0 172.26.104.151:39126        172.26.104.151:18081        TIME_WAIT   -
      

      On earlier versions this change was working fine:

      [root@dwphive1 ~]# netstat -tulapn|grep 18081
      tcp        0      0 172.26.113.55:18081         0.0.0.0:*                   LISTEN      2565/java
      

       

      This issue not only affects SHS but also Spark UI in general

       

      Attachments

        Activity

          People

            falbani Felix Albani
            falbani Felix Albani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: