Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Cluster Install Wizard – Host (Agent) registration failing

$
0
0

Hi all,

I just started to with Hadoop and am running into problems with the installation wizard at SLES. At step “Install Options” I am providing the target hosts and the private ssh key, at step “register and confirm” all hosts are failing. Looking into the logs, I see


==========================
Copying repo file to 'tmp' folder...
==========================

Command start time 2015-07-16 12:01:49

/etc/yum.repos.d/ambari.repo: No such file or directory
scp /etc/yum.repos.d/ambari.repo
host=<FQDN>, exitcode=1
Command end time 2015-07-16 12:01:49

The thing is: I am installing on SLES (pretty old version: 11.1 – maybe this is because the wizard does not recognize SLES and searches for the wrong repository files: /etc/yum.repos.d/ambari.repo?) – is this a bug?

In case someone is running into the same issue: I was successful in setting up the agents manually (following http://docs.hortonworks.com/HDPDocuments/Ambari-2.0.1.0/bk_ambari_reference_guide/content/_install_the_ambari_agents_manually.html) and proceeding the installation (assuming you are running on SLES and you can loop over your server names and have already setup ssh access without password):

# install repository on all nodes, in case you did not yet do it:
for host in {<numer_from>..<number_to>}; do echo "host: host_prefix$host"; ssh host_prefix$host "wget -nv http://public-repo-1.hortonworks.com/ambari/suse11/2.x/updates/2.0.1/ambari.repo -O /etc/zypp/repos.d/ambari.repo"; done

# install agent, adopt config, start agent
for host in {<numer_from>..<number_to>}; do echo "host: host_prefix$host"; ssh host_prefix$host "zypper --non-interactive install ambari-agent; sed -i 's/hostname=.*/hostname=<ambari-server hostname>/' /etc/ambari-agent/conf/ambari-agent.ini; ambari-agent start"; done

Question: is there a better way and/or do you detect any problem with this approach?

Thanks,
Helmut


Viewing all articles
Browse latest Browse all 3435

Trending Articles