Move bash actions into Chef bash actions instead of Ruby blocks
Try to clean-up idempotency checks and command error checking
Install Chef used Gems via chef_gem action
Support state machine of HA namenode bring up via role[BCPC-Hadoop-1-NoHA] then install role[BCPC-Hadoop-2] and rerun node one with role[BCPC-Hadoop-1]
Try to keep Oozie from trying to start and failing (thus killing the run)