Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Having Issue in naming Target Hosts?

Solved Go to solution
Highlighted

Having Issue in naming Target Hosts?

Explorer

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

Accepted Solutions

Re: Having Issue in naming Target Hosts?

Master Collaborator

@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

 

 


 


If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.  


 


Thanks,



Steven

View solution in original post

1 REPLY 1

Re: Having Issue in naming Target Hosts?

Master Collaborator

@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

 

 


 


If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.  


 


Thanks,



Steven

View solution in original post

Don't have an account?
Coming from Hortonworks? Activate your account here