ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmytro Bielievtsov <bielievt...@ibdi.pro>
Subject Re: Postgres Error while installing Ambari
Date Fri, 21 Oct 2016 10:52:55 GMT
Sorry, substitute "authorized_hosts" with "authorized_keys" in my previous
letter

On Fri, Oct 21, 2016 at 1:49 PM, Dmytro Bielievtsov <bielievtsov@ibdi.pro>
wrote:

> Hi,
>
> Permission denied (publickey,password)
>
>
> Did you make sure that issuing "ssh -i /path/to/your/private/key
> <node-fqdn>" from root@master-node works to all your nodes (including the
> one which runs ambari server itself)?
>
> Usually you should:
> 1) generate ssh key-pair under the root account on you *master-node* (the
> one that runs ambari-server). Make sure it is not encrypted to allow
> passwordless login
> 2) append contents of the public key (e.g. id_rsa.pub) to the file
> /root/.ssh/authorized_hosts on all of the nodes, *including* the master
> node.
> 3) test ssh access by running "ssh -i /path/to/your/private/key
> node1.example.com" from the master node (substitute path to the private
> key (/root/.ssh/id_rsa by default, when creating under the root user) and
> fqdns of your nodes).
> 4) you should now be able to paste that private key to the ambari's
> web-interface and use the root user to deploy the agents)
>
> On Fri, Oct 21, 2016 at 1:20 PM, Deepak Goel <deicool@gmail.com> wrote:
>
>> The above problem got resolved (one of the postgres directory permissions
>> had to be set to 700)
>>
>> Thank You..
>>
>> However, I am getting the following error now:
>>
>> When I log into "localhost:8080" and into ambari through a browser, i
>> complete the first three steps. In "Install Options" and in 'Host
>> Registration Information', I provide the ssh private key (id_rsa) and the
>> ssh user account = "root". It fails.
>> ------------------------------------------
>>
>> Permission denied (publickey,password).
>> SSH command execution finished
>> host=deepak-hp, exitcode=255
>> Command end time 2016-10-21 15:43:34
>> --------------------------------
>>
>>
>> When I give the ssh user account = "deepak" it fails with the following
>> error:
>> ------------------------------------------------------------
>> --------------
>>
>> Automatic Agent registration timed out (timeout = 300 seconds).
>> Check your network connectivity and retry registration, or use
>> manual agent registration.
>>
>> ------------------------------------------------------------
>> --------------
>>
>> Anyone can help?
>>
>> Hey
>>
>> Namaskara~Nalama~Guten Tag~Bonjour
>>
>>
>>    --
>> Keigu
>>
>> Deepak
>> 73500 12833
>> www.simtree.net, deepak@simtree.net
>> deicool@gmail.com
>>
>> LinkedIn: www.linkedin.com/in/deicool
>> Skype: thumsupdeicool
>> Google talk: deicool
>> Blog: http://loveandfearless.wordpress.com
>> Facebook: http://www.facebook.com/deicool
>>
>> "Contribute to the world, environment and more :
>> http://www.gridrepublic.org
>> "
>>
>> On Fri, Oct 21, 2016 at 11:44 AM, Deepak Goel <deicool@gmail.com> wrote:
>>
>>>
>>> Hey
>>>
>>> Namaskara~Nalama~Guten Tag~Bonjour
>>>
>>> I am getting the following error when running the command "ambari-server
>>> start":
>>>
>>> ====================================+==
>>> ERROR: Exiting with exit code -1.
>>> REASON: Ambari Server java process died with exitcode 1. Check
>>> /var/log/ambari-server/ambari-server.out for more information.
>>>
>>> ------------------------------------------------------------
>>> --------------------
>>>
>>> Exception in thread "main" com.google.inject.CreationException: Guice
>>> creation e
>>> rrors:
>>>
>>> 1) Error injecting constructor, java.lang.RuntimeException:
>>> org.postgresql.util.
>>> PSQLException: Connection refused. Check that the hostname and port are
>>> correct
>>> and that the postmaster is accepting TCP/IP connections.
>>> ====================================+==
>>>
>>>
>>> Anyone can help?
>>>
>>> Thanks
>>> Deepak
>>>    --
>>> Keigu
>>>
>>> Deepak
>>> 73500 12833
>>> www.simtree.net, deepak@simtree.net
>>> deicool@gmail.com
>>>
>>> LinkedIn: www.linkedin.com/in/deicool
>>> Skype: thumsupdeicool
>>> Google talk: deicool
>>> Blog: http://loveandfearless.wordpress.com
>>> Facebook: http://www.facebook.com/deicool
>>>
>>> "Contribute to the world, environment and more :
>>> http://www.gridrepublic.org
>>> "
>>>
>>
>>
>

Mime
View raw message