brew tap oleewere/repo
brew install ambarictl
Using wget:
wget -qO- https://github.com/oleewere/ambarictl/releases/download/v0.4.4/ambarictl_0.4.4_linux_64-bit.tar.gz | tar -C /usr/bin -zxv ambarictl
Using curl:
curl -L -s https://github.com/oleewere/ambarictl/releases/download/v0.4.4/ambarictl_0.4.4_linux_64-bit.tar.gz | tar -C /usr/bin -xzv ambarictl
ambarictl init
Ambari server entry contains informations about the Ambari server.
ambarictl create # it will ask inputs from the user like cluster name, Ambari server host etc.
# use a Ambari server id that was created before
ambarictl delete $AMBARI_SERVER_ID
Connection profile contains informations about how to ssh into Ambari agent machines.
ambarictl profiles create # it will ask inputs from the user like ssh key path, need host jump etc.
# use a profile id that was created before
ambarictl attach $CONNECTION_PROFILE_ID
ambarictl run 'echo hello' -c INFRA_SOLR
ambarictl playbook -f examples/print-configs.yml
ambarictl logs -d /tmp/downloaded/logs -c INFRA_SOLR
make build