please use urllib.quote() to replace special characters. otherwise, API will fail while processing path name like "Sony Ericssion"
Error log
08/27/2012 11:56:50 AM - webhdfs - DEBUG - List directory: /webhdfs/v1/tmp/x/all_models/SONY ERICSSON?op=LISTSTATUS&user.name=hdfs
08/27/2012 11:56:50 AM - webhdfs - DEBUG - HTTP Response: 400, Bad Request
Correct log:
08/27/2012 12:14:18 PM - webhdfs - DEBUG - List directory: /webhdfs/v1/tmp/x/all_models/SONY%20ERICSSON?op=LISTSTATUS&user.name=hdfs
08/27/2012 12:14:18 PM - webhdfs - DEBUG - HTTP Response: 200, OK
please use urllib.quote() to replace special characters. otherwise, API will fail while processing path name like "Sony Ericssion"
Error log
08/27/2012 11:56:50 AM - webhdfs - DEBUG - List directory: /webhdfs/v1/tmp/x/all_models/SONY ERICSSON?op=LISTSTATUS&user.name=hdfs
08/27/2012 11:56:50 AM - webhdfs - DEBUG - HTTP Response: 400, Bad Request
Correct log:
08/27/2012 12:14:18 PM - webhdfs - DEBUG - List directory: /webhdfs/v1/tmp/x/all_models/SONY%20ERICSSON?op=LISTSTATUS&user.name=hdfs
08/27/2012 12:14:18 PM - webhdfs - DEBUG - HTTP Response: 200, OK