add role to uninstall Hadoop
refactor Java installation into a separate role