Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18152

'ambari-server --help' not working

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: ambari-server
    • Labels:
      None

      Description

      The --help command is not working in ambari-server-2.4.0.0-1139

      [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'
      

        Attachments

        1. rb51123.patch
          3 kB
          Nahappan Somasundaram

          Issue Links

            Activity

              People

              • Assignee:
                smnaha Nahappan Somasundaram
                Reporter:
                smnaha Nahappan Somasundaram
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: