Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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=$
/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.
Attachments
Attachments
Issue Links
- links to