Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Created October 29, 2018 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgadiraju/36759b0e00eedd86f1458843c53047ec to your computer and use it in GitHub Desktop.
Save dgadiraju/36759b0e00eedd86f1458843c53047ec to your computer and use it in GitHub Desktop.
ansible yarn \
-i hosts \
-a "find /data1/yarn -name \"*\"" \
--private-key=~/.ssh/google_compute_engine \
--become
ansible yarn \
-i hosts \
-a "/usr/java/jdk1.7.0_67-cloudera/bin/jps" \
-u yarn \
--private-key=~/.ssh/google_compute_engine \
--become
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment