Home Forums HDP on Linux – Installation What to do if nothing works with HMC installation on single node VM?

This topic contains 1 reply, has 2 voices, and was last updated by  Sasha J 1 year, 2 months ago.

  • Creator
    Topic
  • #8869

    Rich
    Participant

    I have a clean install of CentOS 6.3, and I have followed the HDP install instructions religiously in the documentation. My IP address is 10.0.2.15 in VirtualBox and my /etc/hosts file looks like:

    10.0.2.15 localhost.localdomain localhost
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    I get an error that states “All kicks failed”. The result of check.sh is uploaded to your server. If you see anything that is wrong in there, please let me know.

    Thanks for all your help on this! Can I install HDP 1.0.1.14 on CentOS 6.3? Maybe that’s my problem.

    Rich

Viewing 1 replies (of 1 total)

The topic ‘What to do if nothing works with HMC installation on single node VM?’ is closed to new replies.

  • Author
    Replies
  • #8989

    Sasha J
    Moderator

    1. Install CentOS 6.3 in VirtualBox
    a. 4GB RAM
    b. at least 16 GB drive
    c. Bridged network adapter
    d. (Optional) Downloaded the NetInstall ISO from a mirror (http://mirrors.loosefoot.com/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-netinstall.iso)
    e. Boot from the ISO image or CD/DVD drive and follow the instructions to install CentOS 6.3. The setup URL is http://mirror.centos.org/centos/6.3/os/x86_64/
    2. Run CentOS 6.3
    a. Create a user: hadoop_user/password
    b. Login as root
    3. Disable the Firewall
    a. chkconfig iptables off
    b. chkconfig ip6tables off
    4. Disable SELinux
    a. vi /etc/selinux/config
    b. Change SELINUX=enforcing to SELINUX=disabled
    5. Configure ntpd to start at bootup
    a. chkconfig ntpd on
    6. Configure Network Settings (converting from DHCP to static IP address)
    a. Run ifconfig to determine IP address and Netmask
    b. Run “netstat –rn” to determine Gateway
    c. Run “cat /etc/resolve.conf” to determine your DNS server
    d. From the menu, select System->Preferences->Network Connections
    e. Select “System eth0” and click on the “Edit…” button
    f. On the IPv4 Settings tab, change the “Method:” to Manual
    g. Click the Add button to add a new Address, and use the information that you got from ifconfig and netstat –rn
    h. Enter your DNS server in the field provided
    i. Click Apply… and close everything
    7. Change hostname
    a. Edit /etc/sysconfig/network and change hostname to “horton” (or any other name you like)
    b. Edit /etc/hosts and a line that looks like the following (use your IP address):
    192.168.0.182 horton
    8. Setup SSH
    a. ssh-keygen
    b. ssh-copy-id –i ~/.ssh/id_rsa.pub root@horton
    c. Verify by entering “ssh root@horton”
    9. Download Chrome (or a newer version of Firefox) (NOTE: You can skip this step if you run the HMC installer from your host OS)
    a. Download the rpm
    b. Install the RPM (double-click on it and follow the instructions)
    c. Add Chrome to the launcher panel
    d. Right-click on it and go to Properties, then add the –user-data-dir flag (if you want to be able to run Chrome as root)
    e. You can also run chrome using the command:
    /opt/google/chrome/google-chrome –user-data-dir %U &
    10. Define hostdetail.txt
    a. From any convenient folder:
    vi hostdetail.txt
    b. Add one line: horton
    11. REBOOT VM AT THIS POINT!!! Make sure it get the name and IP address which were defined in steps 6 and 7. Make sure SELinux and firewall remains on disables state and not running after reboot.

    12. Setup the Bits
    a. rpm -Uvh http://public-repo-1.hortonworks.com/HDP-1.0.1.14/repos/centos6/hdp-release-1.0.1.14-1.el6.noarch.rpm
    b. yum –y install epel-release
    c. yum –y install hmc
    d. ONLY do this if you have slow connection to the Internet!!! If connection is decent, DO NOT preinstall anything. The forums tell you to pre-install the following RPMs if you’re having issues. You need to either SKIP THIS STEP or DO NOT INSTALL THE Oozie PACKAGES. If you pre-install oozie – it may cause a failure later! Best bet is to skip this step altogether.

    yum install -y hadoop hadoop-libhdfs.x86_64 hadoop-native.x86_64 hadoop-pipes.x86_64 hadoop-sbin.x86_64 hadoop-lzo hadoop hadoop-libhdfs.x86_64 hadoop-native.x86_64 hadoop-pipes.x86_64 hadoop-sbin.x86_64 hadoop-lzo hadoop hadoop-libhdfs hadoop-native hadoop-pipes hadoop-sbin hadoop-lzo hadoop hadoop-libhdfs hadoop-native hadoop-pipes hadoop-sbin hadoop-lzo hadoop hadoop-libhdfs.x86_64 hadoop-native.x86_64 hadoop-pipes.x86_64 hadoop-sbin.x86_64 hadoop-lzo hadoop hadoop-libhdfs hadoop-native hadoop-pipes hadoop-sbin hadoop-lzo zookeeper zookeeper hbase hbase hbase mysql-server hive mysql-connector-java hive hcatalog pig.noarch sqoop mysql-connector-java templeton templeton-tar-pig-0.0.1.14-1 templeton-tar-hive-0.0.1.14-1 templeton hdp_mon_dashboard hdp_mon_nagios_addons nagios-3.2.3 nagios-plugins-1.4.9 fping net-snmp-utils ganglia-gmetad-3.2.0 ganglia-gmond-3.2.0 gweb hdp_mon_ganglia_addons ganglia-gmond-3.2.0 gweb hdp_mon_ganglia_addons snappy snappy-devel lzo lzo lzo-devel lzo-devel

    13. Make a clone of the VirtualBox instance, just to be on a safe side. You can use this clone later if you need to create more clusters or if something goes wrong with the current installation…
    a. Cleanly shut down your machine
    b. Right-click on the VB instance and select Full Clone. If something fails, you can now start over at this step in the process, instead of starting over all the way back at the beginning!
    c. Start up your VM again and login as root
    14. Start HMC
    a. service hmc start
    b. Download the JDK (say “Y” to both questions)
    15. Run the Installer
    a. You can execute hmc installation from within the VM, or you can use your host’s machine browser. If you are using your host’s web browser, then copy /home/root/.ssh/id_rsa and hostdetail.txt file over to your native OS
    b. Go to http://192.168.0.182/hmc/html (using the approriate IP address of your VM instance)
    c. Follow the steps of the wizard:
    i. Select “/” for the mount points and uncheck /dev/mapper mount points. (Very important – the install will fail if you do not change the mount points!)
    ii. Select all services to be installed
    iii. Enter passwords where required
    iv. Set heap size of the HBase regionserver to 1024 on the “HBase” tab of the Customize Settings page
    v. Enable WebHDFS on the “HDFS” tab
    d. Start the deploy process and cross your fingers! You can watch the install process here:
    tail –f /var/log/hmc/hmc.log
    tail –f /var/log/puppet_apply.log
    e. You can see which processes have started using jps (in /usr/jdk64/jdk1.6.0_31/bin folder)
    16. Restart hmc
    a. If you have a successful deploy:
    service hmc restart
    b. Follow the steps here to run hmc as a service at startup: http://hortonworks.com/community/forums/topic/how-to-set-hmc-to-auto-start-at-boot/
    17. Export Appliance in VirtualBox
    a. Clone the VM or export it as a *.ova file, but either way save it for later use!

    Collapse
Viewing 1 replies (of 1 total)