fixes around hdfs formatting, added generic init.d script