Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2352

Packaged Vagrant box has incorrect host info on restart

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: provisioner
    • Labels:
      None

      Description

      If vagrant VM box is packaged with vagrant package and then started elsewhere with vagrant up, the NN won't get started because hostname will have wrong IP address info and won't get resolved.

      To avoid this, let's add a script which will correctly setup the /etc/hosts info

        Activity

        Hide
        cos Konstantin Boudnik added a comment -

        I am fine with this, Evans Ye

        Show
        cos Konstantin Boudnik added a comment - I am fine with this, Evans Ye
        Hide
        evans_ye Evans Ye added a comment -

        Hey Konstantin Boudnik. Sorry to catch up this late. To me it looks like the scripts can completely replace vagrant hostmanager plugin? If so we should remove those host manager scripts in Vagrantfile and drop the dependency.

        Show
        evans_ye Evans Ye added a comment - Hey Konstantin Boudnik . Sorry to catch up this late. To me it looks like the scripts can completely replace vagrant hostmanager plugin? If so we should remove those host manager scripts in Vagrantfile and drop the dependency.
        Hide
        cos Konstantin Boudnik added a comment -

        I've pushed this into the master.

        Show
        cos Konstantin Boudnik added a comment - I've pushed this into the master.
        Hide
        cos Konstantin Boudnik added a comment -

        And here it is. The patch provides a service file and a script to update the /etc/hosts. The service is is added with a priority higher than this of hadoop daemons. So correct host addresses are set up before the namenode is started.

        Show
        cos Konstantin Boudnik added a comment - And here it is. The patch provides a service file and a script to update the /etc/hosts . The service is is added with a priority higher than this of hadoop daemons. So correct host addresses are set up before the namenode is started.

          People

          • Assignee:
            cos Konstantin Boudnik
            Reporter:
            cos Konstantin Boudnik
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development