You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2016/04/04 14:12:25 UTC
[jira] [Created] (AMBARI-15684) Provide more intuitive error
message when unable to change Ambari server pid or log dirs
Andrew Onischuk created AMBARI-15684:
----------------------------------------
Summary: Provide more intuitive error message when unable to change Ambari server pid or log dirs
Key: AMBARI-15684
URL: https://issues.apache.org/jira/browse/AMBARI-15684
Project: Ambari
Issue Type: Bug
Reporter: Andrew Onischuk
Assignee: Andrew Onischuk
Fix For: 2.4.0
Attachments: AMBARI-15684.patch
I am unable to change the Ambari Server log and pid directory and the error is
not very intuitive.
1\. Ran ambari server setup
2\. changed ambari server daemon to ambaritest (from root)
3\. edited the files to change log and pid
4\. Not working. Might be related to #2. Need to confirm changing log and/or
pid working in all paths: root, non-root, after setup, after
setup->start->stop, etc.
vi /etc/ambari-server/conf/ambari.properties
pid.dir=/tmp/run/ambari-server
[root@c6402 ~]# ambari-server start
Using python /usr/bin/python
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
WARNING: Multiple versions of javax.servlet.jsp.jstl.jar found in java class path (/usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.2.jar and /usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar).
Make sure that you include only one javax.servlet.jsp.jstl.jar in the java class path '/etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar'.
Server PID at: /tmp/run/ambari-server/ambari-server.pid
Server out at: /tmp/log/ambari-server/ambari-server.out
Server log at: /tmp/log/ambari-server/ambari-server.log
Waiting for server start....sh: /tmp/log/ambari-server/ambari-server.out: No such file or directory
sh: /tmp/run/ambari-server/ambari-server.exitcode: Permission denied
.....
ERROR: Exiting with exit code -1.
REASON: Ambari Server java process died with exitcode -1. Check /tmp/log/ambari-server/ambari-server.out for more information.
[root@c6402 ~]#
vi /etc/ambari-server/conf/log4j.properties
ambari.log.dir=$
{ambari.root.dir}
/var/log/ambari-server
[root@c6402 ~]# ambari-server start
Using python /usr/bin/python
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
WARNING: Multiple versions of javax.servlet.jsp.jstl.jar found in java class path (/usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.2.jar and /usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar).
Make sure that you include only one javax.servlet.jsp.jstl.jar in the java class path '/etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar'.
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /tmp/log/ambari-server/ambari-server.out
Server log at: /tmp/log/ambari-server/ambari-server.log
Waiting for server start....sh: /tmp/log/ambari-server/ambari-server.out: No such file or directory
.....
ERROR: Exiting with exit code -1.
REASON: Ambari Server java process died with exitcode 1. Check /tmp/log/ambari-server/ambari-server.out for more information.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)