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

ambiguous hostname resolving during startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 1.4.0, 1.4.1, 1.5.0, 1.5.1
    • None
    • Spark Core
    • standalone

    Description

      when master is running in standalone mode, it expects that the hostname will be provided by --host. This is done by the start-master.sh script which sets --ip to `hostname` (doesn't it looks weird?).
      If someone running master directly (without start-master.sh), the hostname will be initialized as var host = Utils.localHostName(). Before SPARK-6440 that was exactly the host name where master was started. But now it returns ip address instead. That would lead to worker connectivity problems (like you may observer in BIGTOP-2113). If ip addresses are prohibited, than var host should not be initialized in that way.
      Possible solutions - return the logic to set it to the host name or fail if no --host argument was provided.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sergey.soldatov Sergey Soldatov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: