Added a helper for HDFS client to shell out commands.
Added a helper for HDFS client to shell out commands.

Code is copied from https://reviews.apache.org/r/40559/.

Review: https://reviews.apache.org/r/40941/

chhsia0/mesos,dforsyth/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,kaysoky/mesos,reneploetz/mesos,neilconway/mesos,kaysoky/mesos,neilconway/mesos,chhsia0/mesos,reneploetz/mesos,verizonlabs/mesos,craimbert/mesos,neilconway/mesos,asamerh4/mesos,andschwa/mesos,craimbert/mesos,asamerh4/mesos,zmalik/mesos,andschwa/mesos,neilconway/mesos,craimbert/mesos,abudnik/mesos,zmalik/mesos,dforsyth/mesos,verizonlabs/mesos,verizonlabs/mesos,andschwa/mesos,reneploetz/mesos,neilconway/mesos,reneploetz/mesos,jpeach/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,Gilbert88/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,dforsyth/mesos,dforsyth/mesos,gsantovena/mesos,verizonlabs/mesos,asamerh4/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,abudnik/mesos,andschwa/mesos,jpeach/mesos,dforsyth/mesos,yuquanshan/customizedMesos,verizonlabs/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,abudnik/mesos,verizonlabs/mesos,neilconway/mesos,chhsia0/mesos,asamerh4/mesos,abudnik/mesos,Gilbert88/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,gsantovena/mesos,kaysoky/mesos,zmalik/mesos,craimbert/mesos,jpeach/mesos,zmalik/mesos,chhsia0/mesos,reneploetz/mesos,gsantovena/mesos,gsantovena/mesos,jpeach/mesos,dforsyth/mesos,kaysoky/mesos,chhsia0/mesos,jpeach/mesos,jpeach/mesos,yuquanshan/customizedMesos,asamerh4/mesos,reneploetz/mesos,Gilbert88/mesos,craimbert/mesos,zmalik/mesos,andschwa/mesos,yuquanshan/customizedMesos,verizonlabs/mesos,gsantovena/mesos,zmalik/mesos,jpeach/mesos,zmalik/mesos,andschwa/mesos,craimbert/mesos,andschwa/mesos,gsantovena/mesos,Gilbert88/mesos,asamerh4/mesos,kaysoky/mesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,abudnik/mesos,abudnik/mesos,kaysoky/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,kaysoky/mesos,dforsyth/mesos,chhsia0/mesos