Unable to download the file to hdfs if the url contains spaces when we are executing the jython/python For example : URL Contains spaces in the file name and directory path
> http://www.example.com/a bc/def/c h.csv
Command i tried with the url by escaping spaces with %20 or + symbol both didn't work.
executing below command by opening the shell in python like below. If the url doesn't contain spaces it happens correctly.
curl http://www.example.com/a bc/def/c h.csv | hadoop fs -put -f - /xyz/c h.csv