So I got a bit further this time, message is a bit different and looking
in /var/run/hmc/clusters/clustername/findSshableNodes I got three
filename.err files corresponding to the number of nodes involved. The same
message appears in all of them

Permission denied, please try again.

I did chmod 400 on the .ssh. I also created passwordless ssh for root. Not
sure what else I should do :(.

Thank you.


On 8/3/12 6:03 PM, "Hitesh Shah" <[email protected]> wrote:

>@Atrem,
>
>Please change the permissions to 400 and retry.
>Also, you can take a look at /var/run/hmc/clusters/<cluster name>/<dir
>foo>/ where <dir foo> maps to a stage in the node discovery process. The
>log outputs from each host and the error codes will be recorded in that
>dir.
>
>@Jennie,
>
>Unfortunately, the code currently assumes the user to be root. There are
>a couple of places where that implicit handling will need to change and
>the script that sets up the agent node also will need to change slightly
>to run certain commands as sudo if the user is not root. The above should
>likely get non-root users to work if there is passwordless sudo enabled
>for the user ( or an expect wrapper would be needed to if there is no
>passwordless sudo set up ).
>
>thanks
>-- Hitesh
>
>On Aug 3, 2012, at 2:19 PM, Artem Ervits wrote:
>
>> I just setup a one-way root passwordless ssh access from Ambari to the
>>two other nodes. Still can't get it to work. I disabled iptables and
>>SElinux on all machines. I found Hitesh's powerpoint on slideshare :),
>>http://www.slideshare.net/Hadoop_Summit/managing-hadoop-clusters-with-amb
>>ari and am looking at the Hortonworks install guide as well.
>>
>> Result of ssh -I priv_key root@remote returned:
>>
>> <image001.png>
>>
>> In the error log, I found errors here:
>>
>> [2012:08:03
>>20:52:47][ERROR][sequentialScriptExecutor][sequentialScriptRunner.php:272
>>][]: Encountered total failure in transaction 100 while running cmd:
>>/usr/bin/php ./addNodes/findSshableNodes.php with args: demo root 41 100
>>42 /var/run/hmc/clusters/demo/hosts.txt
>>
>>
>> My hosts.txt file looks like this:
>>
>> namenode
>> datanode
>>
>>
>> -----Original Message-----
>> From: Jennie Cochran-Chinn
>>[mailto:[email protected]]
>> Sent: Friday, August 03, 2012 4:49 PM
>> To: [email protected]
>> Subject: Re: Ambari initialize cluster step 2 issue
>>
>> What if hduser has passwordless sudo?
>>
>> On 8/3/12 1:33 PM, "Hitesh Shah" <[email protected]> wrote:
>>
>> >Yes - the ssh key needs to be for root. The node discovery and setup
>> >phase involves installing rpms, etc that require root-level
>>permissions.
>> >
>> >-- Hitesh
>> >
>> >On Aug 3, 2012, at 1:20 PM, Jennie Cochran-Chinn wrote:
>> >
>> >> Gotta be root user?  Sounds like Artem is using hduser?
>> >>
>> >> On 8/3/12 1:16 PM, "Vitthal "Suhas" Gogate" <[email protected]>
>> >>wrote:
>> >>
>> >>> Looks like things are failing while contacting and doing sanity
>> >>> checks for the nodes being added..  although I guess you need to use
>> >>> the private rsa key to do the passwd-less ssh to remote nodes..  You
>> >>> can manually try from ambari server  ssh -i priv_key
>> >>> root@remote_host to see that works..
>> >>>
>> >>>
>> >>> Also can you post the  relevant part of the log at
>> >>> /var/log/hmc/hmc.log to see what exact error you getting..
>> >>>
>> >>> --Suhas
>> >>>
>> >>> On Fri, Aug 3, 2012 at 12:09 PM, Artem Ervits <[email protected]>
>>wrote:
>> >>>> Hello all, I'm trying to install a Hadoop cluster with Ambari on
>> >>>>one VM  and two additional nodes that will serve as a hadoop
>> >>>>cluster. On step 2,  where it says to add nodes, I select the
>> >>>>id_rsa.pub file for the user  I'm running the install with, let's
>> >>>>call it hduser. I already copied the  ssh keys to all machines and
>> >>>>setup passwordless ssh to each and all  machines. I also select
>> >>>>/etc/hosts file that has all three VMs. When I  hit next, it fails
>> >>>>for some or all of the machines. I then created  another file called
>> >>>>hosts, containing the names of only two machines  participating in a
>> >>>>hadoop cluster, excluding the Ambari server. The add  nodes step
>> >>>>fails again due to permission denied again. It does, still  include
>> >>>>my Ambari server as the 3rd server to install hadoop on. Is  there
>> >>>>anything that I'm doing wrong?
>> >>>>
>> >>>> Thank you.
>> >>>>
>> >>>> This electronic message is intended to be for the use only of the
>> >>>>named  recipient, and may contain information that is confidential
>> >>>>or  privileged. If you are not the intended recipient, you are
>> >>>>hereby  notified that any disclosure, copying, distribution or use
>> >>>>of the  contents of this message is strictly prohibited. If you have
>> >>>>received  this message in error or are not the named recipient,
>> >>>>please notify us  immediately by contacting the sender at the
>> >>>>electronic mail address  noted above, and delete and destroy all
>> >>>>copies of this message. Thank  you.
>> >>>>
>> >>>>
>> >>>> --------------------
>> >>>>
>> >>>> This electronic message is intended to be for the use only of the
>> >>>>named  recipient, and may contain information that is confidential
>> >>>>or  privileged.  If you are not the intended recipient, you are
>> >>>>hereby  notified that any disclosure, copying, distribution or use
>> >>>>of the  contents of this message is strictly prohibited.  If you
>> >>>>have received  this message in error or are not the named recipient,
>> >>>>please notify us  immediately by contacting the sender at the
>> >>>>electronic mail address  noted above, and delete and destroy all
>> >>>>copies of this message.  Thank  you.
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> --------------------
>> >>>>
>> >>>> This electronic message is intended to be for the use only of the
>> >>>>named  recipient, and may contain information that is confidential
>> >>>>or  privileged.  If you are not the intended recipient, you are
>> >>>>hereby  notified that any disclosure, copying, distribution or use
>> >>>>of the  contents of this message is strictly prohibited.  If you
>> >>>>have received  this message in error or are not the named recipient,
>> >>>>please notify us  immediately by contacting the sender at the
>> >>>>electronic mail address  noted above, and delete and destroy all
>> >>>>copies of this message.  Thank  you.
>> >>>>
>> >>>>
>> >>>>
>> >>
>> >>
>> >> Please NOTE: This electronic message, including any attachments, may
>> >>include privileged, confidential and/or inside information owned by
>> >>Demand Media, Inc. Any distribution or use of this communication by
>> >>anyone other than the intended recipient(s) is strictly prohibited and
>> >>may be unlawful.  If you are not the intended recipient, please notify
>> >>the sender by replying to this message and then delete it from your
>> >>system. Thank you.
>> >
>>
>>
>> Please NOTE: This electronic message, including any attachments, may
>>include privileged, confidential and/or inside information owned by
>>Demand Media, Inc. Any distribution or use of this communication by
>>anyone other than the intended recipient(s) is strictly prohibited and
>>may be unlawful.  If you are not the intended recipient, please notify
>>the sender by replying to this message and then delete it from your
>>system. Thank you.
>>
>> This electronic message is intended to be for the use only of the named
>>recipient, and may contain information that is confidential or
>>privileged. If you are not the intended recipient, you are hereby
>>notified that any disclosure, copying, distribution or use of the
>>contents of this message is strictly prohibited. If you have received
>>this message in error or are not the named recipient, please notify us
>>immediately by contacting the sender at the electronic mail address
>>noted above, and delete and destroy all copies of this message. Thank
>>you.
>> --------------------
>>
>> This electronic message is intended to be for the use only of the named
>>recipient, and may contain information that is confidential or
>>privileged.  If you are not the intended recipient, you are hereby
>>notified that any disclosure, copying, distribution or use of the
>>contents of this message is strictly prohibited.  If you have received
>>this message in error or are not the named recipient, please notify us
>>immediately by contacting the sender at the electronic mail address
>>noted above, and delete and destroy all copies of this message.  Thank
>>you.
>>
>>
>> --------------------
>>
>> This electronic message is intended to be for the use only of the named
>>recipient, and may contain information that is confidential or
>>privileged.  If you are not the intended recipient, you are hereby
>>notified that any disclosure, copying, distribution or use of the
>>contents of this message is strictly prohibited.  If you have received
>>this message in error or are not the named recipient, please notify us
>>immediately by contacting the sender at the electronic mail address
>>noted above, and delete and destroy all copies of this message.  Thank
>>you.
>>
>>
>>
>>
>


This electronic message is intended to be for the use only of the named 
recipient, and may contain information that is confidential or privileged. If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or use of the contents of this message is 
strictly prohibited. If you have received this message in error or are not the 
named recipient, please notify us immediately by contacting the sender at the 
electronic mail address noted above, and delete and destroy all copies of this 
message. Thank you.


--------------------

This electronic message is intended to be for the use only of the named 
recipient, and may contain information that is confidential or privileged.  If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or use of the contents of this message is 
strictly prohibited.  If you have received this message in error or are not the 
named recipient, please notify us immediately by contacting the sender at the 
electronic mail address noted above, and delete and destroy all copies of this 
message.  Thank you.




--------------------

This electronic message is intended to be for the use only of the named 
recipient, and may contain information that is confidential or privileged.  If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or use of the contents of this message is 
strictly prohibited.  If you have received this message in error or are not the 
named recipient, please notify us immediately by contacting the sender at the 
electronic mail address noted above, and delete and destroy all copies of this 
message.  Thank you.



<<attachment: default.png>>

Reply via email to