- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Unable to determine server PID.
- Labels:
-
Apache Ambari
Created 10-28-2017 01:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to install Ambari 2.5.2.0 following the steps indicated in
I use Ubuntu 14 My Internet access is through a proxy and I tried the following two configurations: embedded PostgreSQL, and a standalone PostgreSQL. In both cases, I have the same error when I start Ambari server. The error message displayed on the screen is the following:
Server PID at: /var/run/ambari-server/ambari-server.pid Server out at: /var/log/ambari-server/ambari-server.out Server log at: /var/log/ambari-server/ambari-server.log Waiting for server start.........Unable to determine server PID. Retrying... ......Unable to determine server PID. Retrying... ......Unable to determine server PID. Retrying...
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.
Please, do you have any idea of the origin of the problem?
The content of ambari-server.out file is the following:
Exception in thread "main" com.google.inject.CreationException: Guice creation errors:
1) Error injecting constructor, java.lang.RuntimeException: Error while creating database accessor
at org.apache.ambari.server.orm.DBAccessorImpl.<init>(DBAccessorImpl.java:87)
at org.apache.ambari.server.orm.DBAccessorImpl.class(DBAccessorImpl.java:75)
while locating org.apache.ambari.server.orm.DBAccessorImpl
while locating org.apache.ambari.server.orm.DBAccessor
for field at org.apache.ambari.server.orm.dao.DaoUtils.dbAccessor(DaoUtils.java:36)
at org.apache.ambari.server.orm.dao.DaoUtils.class(DaoUtils.java:36)
while locating org.apache.ambari.server.orm.dao.DaoUtils
for field at org.apache.ambari.server.orm.dao.UserDAO.daoUtils(UserDAO.java:45)
at org.apache.ambari.server.orm.dao.UserDAO.class(UserDAO.java:45)
while locating org.apache.ambari.server.orm.dao.UserDAO
for field at org.apache.ambari.server.controller.internal.ActiveWidgetLayoutResourceProvider.userDAO(ActiveWidgetLayoutResourceProvider.java:61)
Caused by: java.lang.RuntimeException: Error while creating database accessor
at org.apache.ambari.server.orm.DBAccessorImpl.<init>(DBAccessorImpl.java:120)
at org.apache.ambari.server.orm.DBAccessorImpl$$FastClassByGuice$$86dbc63e.newInstance(<generated>)
at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
......
Created 10-28-2017 02:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There seems to be two errors, Both might be related.
Error-1). Ambari Server process is not able to determine its PID.
Unable to determine server PID. Retrying... ......Unable to determine server PID
>>>> For the PID issue, Can you please let us know if you are running Ambari Server as a "root" user or a Non Rot User?
If you are running the ambari-server as Non Root user then please refer to the doc to make sure the all the required steps are followed:
https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-security/content/how_to_configure...
Also please check the directory if it's permissions are correct and writable?
# ls -ld /var/run/ambari-server # ls -lart /var/run/ambari-server
Error-2). Database setup Issue.
Caused by: java.lang.RuntimeException: Error while creating database accessor at org.apache.ambari.server.orm.DBAccessorImpl.<init>(DBAccessorImpl.java:120)
This indicates an issue with Ambari DB setup. So please let us know if you are running ambari server with default Embedded Postgres DB or you have configured Non Default DB?
Also please share the output of the following command:
# grep 'jdbc' /etc/ambari-server/conf/ambari.properties.
Created 10-28-2017 04:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks very much for your quick answer.
For your questions related to Error 1 :
I use Ambari server as a root.
The command "ls -ld /var/run/ambari-server" generates :
drwxr-xr-x 2 root root 40 oct. 28 16:32 /var/run/ambari-server
The command "ls -lart /var/run/ambari-server" generates :
total 0
drwxr-xr-x 2 root root 40 oct. 28 16:32 .
drwxr-xr-x 26 root root 820 oct. 28 16:32 ..
For your questions related to Error 2 :
The command "grep 'jdbc' /etc/ambari-server/conf/ambari.properties" generates :
server.jdbc.connection-pool=c3p0
server.jdbc.connection-pool.acquisition-size=5
server.jdbc.connection-pool.idle-test-interval=7200
server.jdbc.connection-pool.max-age=0
server.jdbc.connection-pool.max-idle-time=14400
server.jdbc.connection-pool.max-idle-time-excess=0
server.jdbc.database=postgres
server.jdbc.database_name=ambari
server.jdbc.driver=org.postgresql.Driver
server.jdbc.hostname=masternode
server.jdbc.port=5432
server.jdbc.postgres.schema=ambari
server.jdbc.rca.driver=org.postgresql.Driver
server.jdbc.rca.url=jdbc:postgresql://masternode:5432/ambari
server.jdbc.rca.user.name=ambari
server.jdbc.rca.user.passwd=/etc/ambari-server/conf/password.dat
server.jdbc.url=jdbc:postgresql://masternode:5432/ambari
server.jdbc.user.name=ambari
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat
Created 10-29-2017 11:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is postgres started? if you su to user postgres then do 'psql' and '\l' to list databases do you get an error?
Created 03-04-2018 02:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I check this issu ?
Created 11-03-2017 04:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you very much, this problem is solved,
Created 11-10-2017 05:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@
unes abd I am facing similar issue, Please let me know the reason for the issue and how was that fixed.
,
Pls let me , how was the issue rectified?