HDP on Linux – Installation Forum

Local OS is not compatible with cluster primary OS.

  • #45661
    Jeff Ferrell

    Hey guys on my centos 6.4 install for the 2.0 stack i was getting the below error on the registration step.

    Cluster primary OS type is redhat6 and local OS type is centos5
    Local OS is not compatible with cluster primary OS. Please perform manual bootstrap on this host.

    For some reason the check os script was reporting centos5 even tho i was on 6.4. I’m still not sure why it was doing this but im guessing its something within the script code that is messed up. To solve the problem i manually edited the script file and set my os to centos6 see what i did below.

    nano /usr/lib/python2.6/site-packages/ambari_server/os_type_check.sh

    Then right above the echo line below i set the os manually
    echo “Cluster primary OS type is $cluster_os and local OS type is $current_os”

    This may not be the best solution but once i did that install went perfect. Just wanted to share to see if anyone else ran across this issue.

to create new topics or reply. | New User Registration

  • Author
  • #45678
    Mathieu DESPRIEE

    Thanks Jeff, you save my day …

    Jeff Sposetti

    Hi Jeff,

    Can you post the contents of this file from your machine (you say it’s CentOS 6.4 but looks like Ambari is thinking it’s CentOS 5 for some reason)?



    Jeff Ferrell

    Here is the contents of the release file “CentOS release 6.5 (Final)”. I’m guessing when i did a yum update it updated to 6.5 and now the script file sees the 5 and thinks its centos 5. Bug for sure. enjoy

    Jeff Sposetti

    Thanks Jeff. Yes, looks like a bug. Filed the Ambari JIRA here:


    Gongqin Shen

    Thank you, Jeff! This tip really saved my day.

You must be to reply to this topic. | Create Account

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.