Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Having Issue in naming Target Hosts?

avatar
Rising Star

hello, I Know my doubt is silly but i a newbie in bigdata and ambari.

I was creating a cluster. In the installation option i m having troubles while naming Target host.

I am running ambari server(localhost:8080) on my local machine(laptop). My doubt is how should i name target host or what should i name the target host if i want it to run on my local machine(laptop) itself.

If i give "localhost" as the target host name it always fails in the next "Confirm Host" step.

Can anyone guide me through on how shouldi name the target host so that i can run everything in a single machine?

Thank you!

1 ACCEPTED SOLUTION

avatar
Super Guru

@Udhav You need to map a FQDN (fully qualified domain name) to your "localhost" via /etc/hosts

 

For example I often use "hdp.cloudera.com".  

 

cat /etc/hosts | grep 'cloudera.com':

1xx.xxx.xxx.xxx hdf.cloudera.com
1xx.xxx.xxx.xx hdp.cloudera.com

 

Next you put the FQDN in the list of hosts during Cluster Install Wizard.  Be sure to complete the next required steps for ssh key, agent setup, etc.  When the Confirm Hosts modal fails, you can click the Failed link, open modals and get to the full error.

 

The easiest way for me to spin up ambari/hadoop in my computer is using AMBARI VAGRANT:

 

https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+Guide

 

 

This provides an easy way to spin up 1-X number of nodes in my computer, and it handles all the ssh-keys and host mappings.   Using this I can spin up ambari on centos with just a few chained commands:

 

 

wget -O /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/ambari.repo && yum --enablerepo=extras install epel-release -y && yum install java java-devel ambari-server ambari-agent -y && ambari-server setup -s && ambari-server && ambari-server start && ambari-agent start

 

View solution in original post

1 REPLY 1

avatar
Super Guru

@Udhav You need to map a FQDN (fully qualified domain name) to your "localhost" via /etc/hosts

 

For example I often use "hdp.cloudera.com".  

 

cat /etc/hosts | grep 'cloudera.com':

1xx.xxx.xxx.xxx hdf.cloudera.com
1xx.xxx.xxx.xx hdp.cloudera.com

 

Next you put the FQDN in the list of hosts during Cluster Install Wizard.  Be sure to complete the next required steps for ssh key, agent setup, etc.  When the Confirm Hosts modal fails, you can click the Failed link, open modals and get to the full error.

 

The easiest way for me to spin up ambari/hadoop in my computer is using AMBARI VAGRANT:

 

https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+Guide

 

 

This provides an easy way to spin up 1-X number of nodes in my computer, and it handles all the ssh-keys and host mappings.   Using this I can spin up ambari on centos with just a few chained commands:

 

 

wget -O /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/ambari.repo && yum --enablerepo=extras install epel-release -y && yum install java java-devel ambari-server ambari-agent -y && ambari-server setup -s && ambari-server && ambari-server start && ambari-agent start