add ability to specify hdfs url from command line in samples
fix issue #7