I have three servers. I run a python script a.py in server1 and a.py will connect to server2 which has hadoop client. Then, from server2, I need to check if server3 has hadoop directory dir_eg or not.
How to do this in a.py?
fab -H server2 exe_cmd_in_server2:hadoop fs -mkdir server3/dur_eg
is the command to create that dir, but I need check if it exists