create subprocess to automate command retrying

Signed-off-by: Colin Patrick McCabe <cmccabe@cloudera.com>