Adding states for java and hostsfile
Disabling secondary namenode
Merge pull request #1 from sacharya/master

Adding states for java and hostsfile and some other changes