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

'ambari-server --help' not working

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment