Deepesh Khandelwal created HCATALOG-585:
-------------------------------------------

             Summary: Webhcat server fails to start when starting from a 
directory which is inaccessible to the executing user
                 Key: HCATALOG-585
                 URL: https://issues.apache.org/jira/browse/HCATALOG-585
             Project: HCatalog
          Issue Type: Bug
          Components: webhcat-svr
    Affects Versions: 0.5
         Environment: Linux
            Reporter: Deepesh Khandelwal


When I tried to start webhcat server:
[root@xxx ~]# sudo su hcat -c "/usr/lib/hcatalog/sbin/webhcat_server.sh start"

it failed to start with the following error in the logfile:
FATAL | 28 Dec 2012 13:41:38,090 | org.apache.hcatalog.templeton.Main | Server 
failed to start: templeton: Current working directory '.' does not exist!

The issue is that root's user home (/root) is inaccessible by the user "hcat". 
The workaround is to change the directory to one which hcat user can access and 
then run the command from there.

The problem lies in the check in the way we invoke the DefaultExecutor, which 
we are starting with no working directory set and so it uses the current 
working directory. I propose we make the work directory configurable and 
initialize it to executing user's home directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to