Yes. It is inappropriate to hard coding the location in the code. I just committed a change for that to obtain namenode address from hadoop configuration. Thanks.