minor refactoring and style updates
minor refactoring and style updates

cdapio/hadoop_cookbook,cdapio/hadoop_cookbook,caskdata/hadoop_cookbook,caskdata/hadoop_cookbook,cdapio/hadoop_cookbook,caskdata/hadoop_cookbook