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 <[email protected]>: > 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 <[email protected]> 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 <[email protected]> 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 >>> >>> >> >
