[
https://issues.apache.org/jira/browse/AMBARI-18152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nahappan Somasundaram updated AMBARI-18152:
-------------------------------------------
Status: Patch Available (was: Open)
> 'ambari-server --help' not working
> ----------------------------------
>
> Key: AMBARI-18152
> URL: https://issues.apache.org/jira/browse/AMBARI-18152
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.4.0
> Reporter: Nahappan Somasundaram
> Assignee: Nahappan Somasundaram
> Priority: Blocker
> Fix For: 2.4.0
>
> Attachments: rb51123.patch
>
>
> The {{--help}} command is not working in ambari-server-2.4.0.0-1139
> {noformat}
> [root@revo1 tmp]# ambari-server --hash
> 4512811263e2b168d03ad56430a73e418ce8a7a7
> [root@revo1 tmp]# ambari-server --help
> Using python /usr/bin/python
> Usage: /usr/sbin/ambari-server.py
>
> {start|stop|restart|setup|setup-jce|upgrade|status|upgradestack|setup-ldap|sync-ldap|set-current|setup-security|setup-sso|refresh-stack-hash|backup|restore|update-host-names|enable-stack|check-database|db-cleanup}
> [options]
> Use /usr/sbin/ambari-server.py <action> --help to get details on
> options available.
> Or, simply invoke ambari-server.py --help to print the options.
> [root@revo1 tmp]# /usr/sbin/ambari-server.py --help
> Could not read "/etc/ambari-server/conf/ambari.properties": 'ROOT'
> ERROR: Error getting ambari properties
> Traceback (most recent call last):
> File "/usr/sbin/ambari-server.py", line 33, in <module>
> from ambari_server.dbConfiguration import DATABASE_NAMES,
> LINUX_DBMS_KEYS_LIST
> File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py",
> line 28, in <module>
> from ambari_server.serverConfiguration import decrypt_password_for_alias,
> get_ambari_properties, get_is_secure, \
> File
> "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line
> 552, in <module>
> configDefaults = ServerConfigDefaults()
> File
> "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line
> 469, in __init__
> super(ServerConfigDefaultsLinux, self).__init__()
> File
> "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line
> 349, in __init__
> self.PID_DIR = properties.get_property(PID_DIR_PROPERTY)
> AttributeError: 'int' object has no attribute 'get_property'
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)