You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by jason chen <py...@gmail.com> on 2013/01/16 17:34:54 UTC
failed to start ambari-server
when I try to run ambari-server start,the ambari server did not start,here
is the log,what is the problem,thanks!:
at
com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
at
org.apache.ambari.server.controller.AmbariServer.performStaticInjection(AmbariServer.java:375)
at
org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:112)
at
org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:396)
Caused by: javax.persistence.PersistenceException: Exception
[EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652):
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: FATAL: no
pg_hba.conf entry for host "127.0.0.1", user "ambari-server", database
"ambari", SSL off
Error Code: 0
Re: failed to start ambari-server
Posted by jason chen <py...@gmail.com>.
After delete the /var/lib/pgsql,and reinstall ambari-server,then run
ambari-server setup,ambari-server now can start now.thanks Mahadev's
reminding!
2013/1/17, jason chen <py...@gmail.com>:
> yes,I did.
>
> 2013/1/17, Mahadev Konar <ma...@hortonworks.com>:
>> Jason,
>> Did you run ambari-server setup?
>>
>> mahadev
>>
>> On Jan 16, 2013, at 11:48 PM, jason chen wrote:
>>
>>> thanks Ravi and Yusaku,but /etc/hosts and pg_hba.conf seem right,when
>>> I reinstall ambari-server ,the problem still there.
>>>
>>> 2013/1/17, Yusaku Sako <yu...@hortonworks.com>:
>>>> Also, you may want to check the content of
>>>> /var/lib/pgsql/data/pg_hba.conf.
>>>> It should look like the following after running "ambari-server setup":
>>>>
>>>> # TYPE DATABASE USER CIDR-ADDRESS METHOD
>>>>
>>>> # "local" is for Unix domain socket connections only
>>>> local all postgres ident
>>>> # IPv4 local connections:
>>>> host all postgres 127.0.0.1/32 ident
>>>> # IPv6 local connections:
>>>> host all postgres ::1/128 ident
>>>>
>>>> local all ambari-server,mapred md5
>>>> host all ambari-server,mapred 0.0.0.0/0 md5
>>>> host all ambari-server,mapred ::/0 md5
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Jan 16, 2013 at 9:55 AM, Ravi Mutyala <rm...@gmail.com>
>>>> wrote:
>>>>
>>>>> Configure /etc/hosts to have the machine's IP so reverse DNS (hostname
>>>>> -i)
>>>>> will give you the IP of the machine. I think its an issue with
>>>>> 127.0.0.1
>>>>> IP.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Jan 16, 2013 at 10:34 AM, jason chen <py...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> when I try to run ambari-server start,the ambari server did not
>>>>>> start,here is the log,what is the problem,thanks!:
>>>>>> at
>>>>>> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
>>>>>> at
>>>>>> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
>>>>>> at
>>>>>> org.apache.ambari.server.controller.AmbariServer.performStaticInjection(AmbariServer.java:375)
>>>>>> at
>>>>>> org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:112)
>>>>>> at
>>>>>> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:396)
>>>>>> Caused by: javax.persistence.PersistenceException: Exception
>>>>>> [EclipseLink-4002] (Eclipse Persistence Services -
>>>>>> 2.4.0.v20120608-r11652):
>>>>>> org.eclipse.persistence.exceptions.DatabaseException
>>>>>> Internal Exception: org.postgresql.util.PSQLException: FATAL: no
>>>>>> pg_hba.conf entry for host "127.0.0.1", user "ambari-server",
>>>>>> database
>>>>>> "ambari", SSL off
>>>>>> Error Code: 0
>>>>>>
>>>>>>
>>>>>
>>>>
>>
>>
>
Re: failed to start ambari-server
Posted by jason chen <py...@gmail.com>.
yes,I did.
2013/1/17, Mahadev Konar <ma...@hortonworks.com>:
> Jason,
> Did you run ambari-server setup?
>
> mahadev
>
> On Jan 16, 2013, at 11:48 PM, jason chen wrote:
>
>> thanks Ravi and Yusaku,but /etc/hosts and pg_hba.conf seem right,when
>> I reinstall ambari-server ,the problem still there.
>>
>> 2013/1/17, Yusaku Sako <yu...@hortonworks.com>:
>>> Also, you may want to check the content of
>>> /var/lib/pgsql/data/pg_hba.conf.
>>> It should look like the following after running "ambari-server setup":
>>>
>>> # TYPE DATABASE USER CIDR-ADDRESS METHOD
>>>
>>> # "local" is for Unix domain socket connections only
>>> local all postgres ident
>>> # IPv4 local connections:
>>> host all postgres 127.0.0.1/32 ident
>>> # IPv6 local connections:
>>> host all postgres ::1/128 ident
>>>
>>> local all ambari-server,mapred md5
>>> host all ambari-server,mapred 0.0.0.0/0 md5
>>> host all ambari-server,mapred ::/0 md5
>>>
>>>
>>>
>>>
>>> On Wed, Jan 16, 2013 at 9:55 AM, Ravi Mutyala <rm...@gmail.com>
>>> wrote:
>>>
>>>> Configure /etc/hosts to have the machine's IP so reverse DNS (hostname
>>>> -i)
>>>> will give you the IP of the machine. I think its an issue with
>>>> 127.0.0.1
>>>> IP.
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Jan 16, 2013 at 10:34 AM, jason chen <py...@gmail.com>
>>>> wrote:
>>>>
>>>>> when I try to run ambari-server start,the ambari server did not
>>>>> start,here is the log,what is the problem,thanks!:
>>>>> at
>>>>> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
>>>>> at
>>>>> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
>>>>> at
>>>>> org.apache.ambari.server.controller.AmbariServer.performStaticInjection(AmbariServer.java:375)
>>>>> at
>>>>> org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:112)
>>>>> at
>>>>> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:396)
>>>>> Caused by: javax.persistence.PersistenceException: Exception
>>>>> [EclipseLink-4002] (Eclipse Persistence Services -
>>>>> 2.4.0.v20120608-r11652):
>>>>> org.eclipse.persistence.exceptions.DatabaseException
>>>>> Internal Exception: org.postgresql.util.PSQLException: FATAL: no
>>>>> pg_hba.conf entry for host "127.0.0.1", user "ambari-server", database
>>>>> "ambari", SSL off
>>>>> Error Code: 0
>>>>>
>>>>>
>>>>
>>>
>
>
Re: failed to start ambari-server
Posted by Mahadev Konar <ma...@hortonworks.com>.
Jason,
Did you run ambari-server setup?
mahadev
On Jan 16, 2013, at 11:48 PM, jason chen wrote:
> thanks Ravi and Yusaku,but /etc/hosts and pg_hba.conf seem right,when
> I reinstall ambari-server ,the problem still there.
>
> 2013/1/17, Yusaku Sako <yu...@hortonworks.com>:
>> Also, you may want to check the content of /var/lib/pgsql/data/pg_hba.conf.
>> It should look like the following after running "ambari-server setup":
>>
>> # TYPE DATABASE USER CIDR-ADDRESS METHOD
>>
>> # "local" is for Unix domain socket connections only
>> local all postgres ident
>> # IPv4 local connections:
>> host all postgres 127.0.0.1/32 ident
>> # IPv6 local connections:
>> host all postgres ::1/128 ident
>>
>> local all ambari-server,mapred md5
>> host all ambari-server,mapred 0.0.0.0/0 md5
>> host all ambari-server,mapred ::/0 md5
>>
>>
>>
>>
>> On Wed, Jan 16, 2013 at 9:55 AM, Ravi Mutyala <rm...@gmail.com> wrote:
>>
>>> Configure /etc/hosts to have the machine's IP so reverse DNS (hostname
>>> -i)
>>> will give you the IP of the machine. I think its an issue with 127.0.0.1
>>> IP.
>>>
>>>
>>>
>>>
>>> On Wed, Jan 16, 2013 at 10:34 AM, jason chen <py...@gmail.com> wrote:
>>>
>>>> when I try to run ambari-server start,the ambari server did not
>>>> start,here is the log,what is the problem,thanks!:
>>>> at
>>>> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
>>>> at
>>>> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
>>>> at
>>>> org.apache.ambari.server.controller.AmbariServer.performStaticInjection(AmbariServer.java:375)
>>>> at
>>>> org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:112)
>>>> at
>>>> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:396)
>>>> Caused by: javax.persistence.PersistenceException: Exception
>>>> [EclipseLink-4002] (Eclipse Persistence Services -
>>>> 2.4.0.v20120608-r11652):
>>>> org.eclipse.persistence.exceptions.DatabaseException
>>>> Internal Exception: org.postgresql.util.PSQLException: FATAL: no
>>>> pg_hba.conf entry for host "127.0.0.1", user "ambari-server", database
>>>> "ambari", SSL off
>>>> Error Code: 0
>>>>
>>>>
>>>
>>
Re: failed to start ambari-server
Posted by jason chen <py...@gmail.com>.
thanks Ravi and Yusaku,but /etc/hosts and pg_hba.conf seem right,when
I reinstall ambari-server ,the problem still there.
2013/1/17, Yusaku Sako <yu...@hortonworks.com>:
> Also, you may want to check the content of /var/lib/pgsql/data/pg_hba.conf.
> It should look like the following after running "ambari-server setup":
>
> # TYPE DATABASE USER CIDR-ADDRESS METHOD
>
> # "local" is for Unix domain socket connections only
> local all postgres ident
> # IPv4 local connections:
> host all postgres 127.0.0.1/32 ident
> # IPv6 local connections:
> host all postgres ::1/128 ident
>
> local all ambari-server,mapred md5
> host all ambari-server,mapred 0.0.0.0/0 md5
> host all ambari-server,mapred ::/0 md5
>
>
>
>
> On Wed, Jan 16, 2013 at 9:55 AM, Ravi Mutyala <rm...@gmail.com> wrote:
>
>> Configure /etc/hosts to have the machine's IP so reverse DNS (hostname
>> -i)
>> will give you the IP of the machine. I think its an issue with 127.0.0.1
>> IP.
>>
>>
>>
>>
>> On Wed, Jan 16, 2013 at 10:34 AM, jason chen <py...@gmail.com> wrote:
>>
>>> when I try to run ambari-server start,the ambari server did not
>>> start,here is the log,what is the problem,thanks!:
>>> at
>>> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
>>> at
>>> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
>>> at
>>> org.apache.ambari.server.controller.AmbariServer.performStaticInjection(AmbariServer.java:375)
>>> at
>>> org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:112)
>>> at
>>> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:396)
>>> Caused by: javax.persistence.PersistenceException: Exception
>>> [EclipseLink-4002] (Eclipse Persistence Services -
>>> 2.4.0.v20120608-r11652):
>>> org.eclipse.persistence.exceptions.DatabaseException
>>> Internal Exception: org.postgresql.util.PSQLException: FATAL: no
>>> pg_hba.conf entry for host "127.0.0.1", user "ambari-server", database
>>> "ambari", SSL off
>>> Error Code: 0
>>>
>>>
>>
>
Re: failed to start ambari-server
Posted by Yusaku Sako <yu...@hortonworks.com>.
Also, you may want to check the content of /var/lib/pgsql/data/pg_hba.conf.
It should look like the following after running "ambari-server setup":
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all postgres ident
# IPv4 local connections:
host all postgres 127.0.0.1/32 ident
# IPv6 local connections:
host all postgres ::1/128 ident
local all ambari-server,mapred md5
host all ambari-server,mapred 0.0.0.0/0 md5
host all ambari-server,mapred ::/0 md5
On Wed, Jan 16, 2013 at 9:55 AM, Ravi Mutyala <rm...@gmail.com> wrote:
> Configure /etc/hosts to have the machine's IP so reverse DNS (hostname -i)
> will give you the IP of the machine. I think its an issue with 127.0.0.1
> IP.
>
>
>
>
> On Wed, Jan 16, 2013 at 10:34 AM, jason chen <py...@gmail.com> wrote:
>
>> when I try to run ambari-server start,the ambari server did not
>> start,here is the log,what is the problem,thanks!:
>> at
>> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
>> at
>> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
>> at
>> org.apache.ambari.server.controller.AmbariServer.performStaticInjection(AmbariServer.java:375)
>> at
>> org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:112)
>> at
>> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:396)
>> Caused by: javax.persistence.PersistenceException: Exception
>> [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652):
>> org.eclipse.persistence.exceptions.DatabaseException
>> Internal Exception: org.postgresql.util.PSQLException: FATAL: no
>> pg_hba.conf entry for host "127.0.0.1", user "ambari-server", database
>> "ambari", SSL off
>> Error Code: 0
>>
>>
>
Re: failed to start ambari-server
Posted by Ravi Mutyala <rm...@gmail.com>.
Configure /etc/hosts to have the machine's IP so reverse DNS (hostname -i)
will give you the IP of the machine. I think its an issue with 127.0.0.1
IP.
On Wed, Jan 16, 2013 at 10:34 AM, jason chen <py...@gmail.com> wrote:
> when I try to run ambari-server start,the ambari server did not start,here
> is the log,what is the problem,thanks!:
> at
> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
> at
> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
> at
> org.apache.ambari.server.controller.AmbariServer.performStaticInjection(AmbariServer.java:375)
> at
> org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:112)
> at
> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:396)
> Caused by: javax.persistence.PersistenceException: Exception
> [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652):
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: FATAL: no
> pg_hba.conf entry for host "127.0.0.1", user "ambari-server", database
> "ambari", SSL off
> Error Code: 0
>
>