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

Why do I need re-install after re-boot of VM?

  • #7429

    I added more memory to my VM host — 16 GBs is nice! — and I re-installed everything. The web UI seems what I expect.


    if I re-boot the VM, when I try to start up hmc again, the restart fails with some message about port not available.

    I then yum erase hmc and do a yum install hmc again and then I can start things up as expected.


    Now the cluster is gone as well! I have to re-install the cluster.

    Is this normal behavior? Anything I can do about it? Restarting a server has got to be an event that is tolerated, right? I should not need to install things to recover in my opinion.

    Suggestions please.

    I did see the selinux work-around in a previous thread but why is this necessary?

  • Author
  • #7447
    Sasha J

    Are you start hmc from non-root user?
    such messages about the port, usually means that you do not have enough privileges to start process.
    Or, maybe process (httpd) is already running.
    This is all related to HTTPD, right?

    SELINUX should off for now, full support for it planned to be implemented in the future.

    Suggestions here:
    make sure you do not starting hmc from non root user,
    make sure you do not have httpd started automatically on boot, in this case port 80 is already in use and as a result you can not start second hpptd.

    And output and logs will also be helpful.
    Please, use script in this page to collect information and send it to us:

    Thank you!


    No, I am doing the hmc commands as root.

    httpd is not running — at least I don’t see it in the process viewer.

    I will collect output logs.

    Should SELINUX be off when hmc is first installed? I tried that and then oozie wouldn’t start cleanly.


    Sasha J

    SELINUX should be not only of, it should be completely disabled and system should be cleanly restarted after this.



    So the question is (pardon my inexperience), how to completely disable SELINUX and then verify that after a restart it is in fact really disabled? Are there commands to run, files to check? Maybe you need to be more of a nuts and bolts Linux admin to pull this all off? One of the other discussions had some advice about SELINUX and I followed it but I had cluster re-install problems after. Is that advice sufficient?


    Sasha J

    [root@rhel58-nn1 ~]# cat /etc/selinux/config
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing – SELinux security policy is enforced.
    # permissive – SELinux prints warnings instead of enforcing.
    # disabled – SELinux is fully disabled.
    # SELINUXTYPE= type of policy in use. Possible values are:
    # targeted – Only targeted network daemons are protected.
    # strict – Full SELinux protection.
    [root@rhel58-nn1 ~]#

    You have to edit this file and put “disabled”.

    to check after reboot:

    [root@rhel58-nn1 ~]# sestatus
    SELinux status: disabled

    Cluster always installing correctly if SELINUX correctly disabled and firewall disabled as well.

    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.