bug fixes in hadoop install

Signed-off-by: Izhar ul Hassan <ezhaar@gmail.com>