ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Sekhon (JIRA)" <>
Subject [jira] [Created] (AMBARI-8813) Ambari shell launch simplification improvements
Date Fri, 19 Dec 2014 09:34:13 GMT
Hari Sekhon created AMBARI-8813:

             Summary: Ambari shell launch simplification improvements
                 Key: AMBARI-8813
             Project: Ambari
          Issue Type: Improvement
          Components: ambari-shell
            Reporter: Hari Sekhon
            Priority: Minor

Instead of launching Ambari shell via
{code}java -jar ambari-shell/target/ambari-shell-1.3.0-SNAPSHOT.jar --ambari.server=localhost
there are 2 improvement that could be made to make it simpler and more efficient to call.

1. read the ambari server and port out of the /etc/ambari-agent/conf/ambari-agent.ini config
file's \[server\] section if present on the system and only require --args otherwise. This
could also read $AMBARI_HOST and $AMBARI_PORT out of the environment if --args aren't specified
to prevent a user having to specify them over and over, I do this for my programs, it saves
a lot of typing and switches (see my Ambari Nagios plugins
here for example).

2. Instead of calling {code}java -jar <full_path_to_jar>{code} it can be wrapped in
a shell script so it's just the simpler cleaner command such as:


Hari Sekhon

This message was sent by Atlassian JIRA

View raw message