update examples to get hdfs url from CLI arguments