incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <>
Subject [jira] [Created] (AMBARI-2494) Various issues when running ambari-server as non-root
Date Wed, 26 Jun 2013 14:04:19 GMT
Dmitry Lysnichenko created AMBARI-2494:

             Summary: Various issues when running ambari-server as non-root
                 Key: AMBARI-2494
             Project: Ambari
          Issue Type: Bug
          Components: controller
    Affects Versions: 1.2.5
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
             Fix For: 1.2.5

This is on SLES 11. 

*Issue 1*
Any {{ambari-server}} command run as non-root generates the following: */usr/sbin/ambari-server:
line 32: /var/lib/ambari-server/ Permission denied* which should not be displayed.
test2@localhost:~> /usr/sbin/ambari-server
/usr/sbin/ambari-server: line 32: /var/lib/ambari-server/ Permission denied
Using python  /usr/bin/python2.6
Usage: /usr/sbin/ambari-server {start|stop|restart|setup|upgrade|status|upgradestack|setup-ldap|setup-https|resetmasterkey}

*Issue 2*
{{/usr/sbin/ambari-server setup-https | resetmasterkey | setup-ldap}} does not warn like other
options that root privileges are required. Instead it goes all the way to save {{/etc/ambari-server/conf/}}
and fails.
est2@localhost:~> /usr/sbin/ambari-server setup-https
/usr/sbin/ambari-server: line 32: /var/lib/ambari-server/ Permission denied
Using python  /usr/bin/python2.6
Ambari-server setup-https
Do you want to configure HTTPS (y/n) y?
SSL port [8443] ?
Do you want to import trusted certificate and private key (y/n) y? n
Traceback (most recent call last):
  File "/usr/sbin/", line 3047, in <module>
  File "/usr/sbin/", line 2897, in main
  File "/usr/sbin/", line 2657, in setup_https
    f = open(conf_file, 'w')
IOError: [Errno 13] Permission denied: '/etc/ambari-server/conf/'

*Issue 3*
Grammar correction to sentence {{Ambari-server process is configured run under user myself.
Change this setting [y/n] (n)?}}.
Need a *to* in there.

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:

View raw message