Home Forums HDP on Linux – Installation Why do I need re-install after re-boot of VM?

This topic contains 5 replies, has 2 voices, and was last updated by  Sasha J 2 years ago.

  • Creator
    Topic
  • #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.

    BUT…

    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.

    BUT…

    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?

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #7462

    Sasha J
    Moderator

    [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.
    SELINUX=disabled
    # SELINUXTYPE= type of policy in use. Possible values are:
    # targeted – Only targeted network daemons are protected.
    # strict – Full SELinux protection.
    SELINUXTYPE=targeted
    [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!
    Sasha

    Collapse
    #7459

    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?

    Jim

    Collapse
    #7452

    Sasha J
    Moderator

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

    Sasha

    Collapse
    #7449

    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.

    Jim

    Collapse
    #7447

    Sasha J
    Moderator

    James,
    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:

    http://hortonworks.com/community/forums/topic/hmc-installation-support-help-us-help-you/

    Thank you!
    Sasha

    Collapse
Viewing 5 replies - 1 through 5 (of 5 total)