Hortonworks.com
  • Explore
    • All Tags
    • All Questions
    • All Articles
    • All Ideas
    • All Repos
    • All SKB
    • All Users
    • All Badges
    • Leaderboard
  • Create
    • Ask a question
    • Create Article
    • Post Idea
    • Add Repo
  • Tracks
    • All Tracks
    • Community Help
    • Cloud & Operations
    • CyberSecurity
    • Data Ingestion & Streaming
    • Data Processing
    • Data Science & Advanced Analytics
    • Design & Architecture
    • Governance & Lifecycle
    • Hadoop Core
    • Sandbox & Learning
    • Security
    • Solutions
  • Login
HCC Hortonworks Community Connection
  • Home /
  • Cloud & Operations /
avatar image

How can I add a node to a cluster using ambari ????

Question by Divya Thaore Jan 09 at 03:19 PM ambari-serverambari-agentnodenode-managerambari-2.6
Comment

People who voted for this

0 Show 0
10 |6000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 5 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

4 Replies

· Add your reply
  • Sort: 
  • Votes
  • Created
  • Oldest
avatar image
Best Answer

Answer by Geoffrey Shelton Okot · Jan 10 at 03:48 PM

@Divya Thaore

A good practice to configure passwordless ssh by generating ssh-key on the Ambari server and copying it to all the host in the cluster. Those are the pre-requisites for the cluster install see steps below

#####################################
#  Generating the ssh key on CentOS 7
#####################################
ssh-keygen
chmod 700 ~/.ssh
cat ~/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
########################################
# copy the public key to all other hosts
########################################
cat .ssh/id_rsa.pub | ssh root@xxx_host 'cat >> .ssh/authorized_keys'

Or you can use manual by installing the ambari-agent on the other nodes but this is impractical for large clusters!

One the slave node

# yum install -y ambari-agent 

Then edit the ambari-agent.ini, under security

[server]
hostname=$FQDN_Ambari server
url_port=8440
secured_url_port=8441

The start the agent

# ambari-agent start

Then you can proceed with you Ambari UI adding the hosts remember to do this on all the host you intend to join to your cluster

HTH

Comment

People who voted for this

0 Show 2 · Share
10 |6000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 5 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

avatar image Divya Thaore · Jan 10 at 04:31 PM 0
Share

@Geoffrey Shelton Okot thanks generated the key.. But not able to copy it and paste to ambari

avatar image Geoffrey Shelton Okot Divya Thaore · Jan 10 at 05:59 PM 0
Share

@Divya Thaore
If you generated the ssh-keys hoping you didn't protect it with a password navigate to the /root/.ssh directory and

# cat  id_rsa 

And copy all the content between including the begin and end as shown and paste in the designated window in Ambari UI

-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA8qP3SQ+81GIpYSd/Sw1uKjt1khxv/zh4aEbRbPK0pcaW1KAh
9mD76BdouBRifv6Mn8ydnanSthRNOmH1LcF8YhkudLseKJFoLO2iIFWtFwSqMPmX
cipTpBo+1YQGdrf3ugKsBZ+vWZBisEI6F5pTGHUrAEO3phYXQxfP6GEoVGQj7aIB
........
.....
qUzoqQKBgBjIJakrJfoFGySAOImIxjQDD0sv3ZTc85WtFeFyRvQxewdPQDS8NvZo 6pyhYJRSGSgaL+xzEwg3D1ofQinkYw1jVYUzldBZESMOslmEuOzYbpImnY3yxLOG Yo0j49637Chn8BMVnrlELUWWf6YHOrXmwHT6nu71WmbqFBzbmsv8
-----END RSA PRIVATE KEY-----

or using WinSCP download the above file and use the option to load from your windows/mac client

HTH


avatar image

Answer by Geoffrey Shelton Okot · Jan 12 at 11:22 AM

@Divya Thaore

Are you trying to create a cluster using the sandbox from HW? Do you have putty? If not can you download putty

Comment

People who voted for this

0 Show 1 · Share
10 |6000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 5 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

avatar image Divya Thaore · Jan 12 at 11:45 AM 0
Share
@Geoffrey Shelton Okot

yes through sandbox from HW.

avatar image

Answer by Geoffrey Shelton Okot · Jan 11 at 09:21 AM

@Divya Thaore

Just a follow up do you still need help?

Comment

People who voted for this

0 Show 1 · Share
10 |6000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 5 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

avatar image Divya Thaore · Jan 12 at 08:17 AM 0
Share
@Geoffrey Shelton Okot

Thanks for asking. yes I still need help. As I am not able to copy the key still from the ssh shell to the ambari web page..neother to my local system. I have also enabled the bidirectional Transfer for the sandbox. But still not able to..

avatar image

Answer by kpeddibhotla · Jan 09 at 07:51 PM

Hi Divya,

From Ambari UI, click on "Hosts" from the top right list of options. Then from the Actions dropdown, select "Add New Hosts".

Thanks.

Comment

People who voted for this

0 Show 1 · Share
10 |6000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 5 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

avatar image Divya Thaore · Jan 10 at 02:35 PM 0
Share

@kpeddibhotla in that it is asking for SSH key or manual installation.. Can u help with the same ?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 5 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

52
Followers

Answers Answer & comments

This website uses cookies for analytics, personalisation and advertising. To learn more or change your cookie settings, please read our Cookie Policy. By continuing to browse, you agree to our use of cookies.

HCC Guidelines | HCC FAQs | HCC Privacy Policy | Privacy Policy | Terms of Service

© 2011-2019 Hortonworks Inc. All Rights Reserved.

Hadoop, Falcon, Atlas, Sqoop, Flume, Kafka, Pig, Hive, HBase, Accumulo, Storm, Solr, Spark, Ranger, Knox, Ambari, ZooKeeper, Oozie and the Hadoop elephant logo are trademarks of the Apache Software Foundation.

  • Anonymous
  • Login
  • Create
  • Ask a question
  • Create Article
  • Post Idea
  • Add Repo
  • Create SupportKB
  • Tracks
  • Community Help
  • Cloud & Operations
  • CyberSecurity
  • Data Ingestion & Streaming
  • Data Processing
  • Data Science & Advanced Analytics
  • Design & Architecture
  • Governance & Lifecycle
  • Hadoop Core
  • Sandbox & Learning
  • Security
  • Solutions
  • Explore
  • All Tags
  • All Questions
  • All Articles
  • All Ideas
  • All Repos
  • All SKB
  • All Users
  • Leaderboard
  • All Badges