Created 11-06-2016 10:03 AM
Hi,
I have installed ambari-server following this link
Everything went well, except I am not able to start. I am getting the following response.
"p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #f4f4f4; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)} span.s1 {font-variant-ligatures: no-common-ligatures; color: #34bc26} span.s2 {font-variant-ligatures: no-common-ligatures} span.s3 {font-variant-ligatures: no-common-ligatures; color: #5230e1}
ubuntu@ip-172-31-30-230:~$ sudo ambari-server start
Using python /usr/bin/python2.7
Starting ambari-server
Ambari Server running with administrator privileges.
About to start PostgreSQL
Organizing resource files at /var/lib/ambari-server/resources...
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....No passwd entry for user 'admin'
.....
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.
It says to check ambari-server.out where as this file was never created, but I do have ambari-server.log, but it doesn't have any exception or information. Please find below is the content of the log.
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #f4f4f4; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)} span.s1 {font-variant-ligatures: no-common-ligatures}
06 Nov 2016 09:45:25,915 INFO [main] Configuration:657 - Generation of file with password
06 Nov 2016 09:45:27,185 INFO [main] Configuration:670 - Reading password from existing file
06 Nov 2016 09:45:28,281 INFO [main] Configuration:670 - Reading password from existing file
06 Nov 2016 09:45:29,401 INFO [main] Configuration:670 - Reading password from existing file
06 Nov 2016 09:45:30,555 INFO [main] Configuration:670 - Reading password from existing file
06 Nov 2016 09:45:31,700 INFO [main] Configuration:670 - Reading password from existing file
06 Nov 2016 09:45:32,331 INFO [main] ViewExtractor:82 - Creating archive folder /var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.1.2}.
06 Nov 2016 09:45:32,333 INFO [main] ViewExtractor:89 - Extracting files from ambari-admin-2.1.2.377.jar.
06 Nov 2016 09:45:33,035 INFO [main] Configuration:670 - Reading password from existing file
Please advice, thanks in advance!
Created 11-06-2016 12:29 PM
Please try running your server in DEBUG bode by editing the following line :
sed -i.bak 's/^log4j.rootLogger=INFO,file/log4j.rootLogger=DEBUG,file/' /etc/ambari-server/conf/log4j.properties ambari-server restart
And then it should show more details of the failure in the ambari-server.log.
Also please let us know if you are running your ambari server is running as a "root" user or some other user?
Created 11-06-2016 12:29 PM
Please try running your server in DEBUG bode by editing the following line :
sed -i.bak 's/^log4j.rootLogger=INFO,file/log4j.rootLogger=DEBUG,file/' /etc/ambari-server/conf/log4j.properties ambari-server restart
And then it should show more details of the failure in the ambari-server.log.
Also please let us know if you are running your ambari server is running as a "root" user or some other user?
Created 11-06-2016 06:25 PM
Thanks @jss! I found the issue. The issue was with user I am using. Thanks a lot for helping out.
Regards,
Harish