The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDP on Linux – Installation Forum

Start/Stop Instances on EC2 changed DNS/IP

  • #29415
    Anupam Gupta

    Hi All,

    I have installed HDP on EC2, I have EBS backed Instances, I stopped my instance and start again on next day but I am not able to start ambari server because internal IP and public IP are changed .

    How can I restore my all Hadoop settings.
    Please help

    Thanks In Advance,

  • Author
  • #29424

    Hi Agupta,

    You should only need to change the ips and hostnames in /etc/hosts and in the hostname in the hadoop configs. The latter one here will need to be done via the ambari web ui. If not done in the abmari web ui the configurations will be overwritten each time ambari is started. You will also need to change this hostname in the ui each time you restart the instances. This bit about the hostname can be made unnecessary by changing the value in /etc/sysconfig/network. Just make sure that hostname -f gives you the FQDN that ambari is looking for. However there is nothing that can be done about the ips, these will always change upon restarting the instances, it is possible to write a script that sets the ips in /etc/hosts and is run on startup which will make that part easier.


    Anupam Gupta

    Hi Ted,
    Thanks for Reply, I am able to changeIp and hoste name in /etc/hosts on every node but as you said that we need to change Ip and hostname in in ambari UI I want to know that how can we change this in ambari UI.
    There is option to change Hostname and IP in ambari UI.
    Please Help.

    Sasha J

    There is no way to modify Ambari configuration, you have to reinstall cluster from the beginning.
    You can preserve your existing data, but cluster should be reinstalled.
    In general, EC2 keep internal IP unchanged between reboots, but most likely there is a some timeout for this which was exceeded…

    Please, reinstall cluster and try to get static IPs from Amazon to prevent such problems in the future…

    Thank you!

    Anupam Gupta

    Hi Sasha,
    Thanks for your reply,
    I have some doubt Kindly Clarify
    1) If I installed data on Root Volume will I Get that data back after start stop instance.
    2) if I attached a volume to a instance and store data on that volume will I preserve that data if I stop start my instances.
    We are very new to HDP please help us

    Sasha J

    Those questions are not relevant to HDP.
    It is purely EC2 thing on how it stores and keep the data.
    Data in the root volume should be persistent until instance termination, data on EBS volumes should be persisted until volume destroyed.

    Hope this helps.
    Thank you!

The forum ‘HDP on Linux – Installation’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.