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

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/

    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.

  • 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.

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.