Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Last active 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/4d2dd360d5853f2ed1222e5b6a9f7e83 to your computer and use it in GitHub Desktop.
Save dgadiraju/4d2dd360d5853f2ed1222e5b6a9f7e83 to your computer and use it in GitHub Desktop.
ansible hdfs \
-i hosts \
-a "find /data1/dfs -name \"*\"" \
--private-key=~/.ssh/google_compute_engine \
--become
ansible hdfs \
-i hosts \
-a "/usr/java/jdk1.7.0_67-cloudera/bin/jps" \
-u hdfs \
--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