Hari Sekhon created AMBARI-8813:
-----------------------------------
Summary: Ambari shell launch simplification improvements
Key: AMBARI-8813
URL: https://issues.apache.org/jira/browse/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 --ambari.port=8080{code}
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
http://github.com/harisekhon/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:
{code}ambari-shell{code}
Regards,
Hari Sekhon
http://www.linkedin.com/in/harisekhon
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)