I'm trying to pass string like that "hdfs://some_address/user/folder_with_files" to Paths.get method.
Unfortunately as a result i always get "hdfs:/some_address/user/folder_with_files" instead of "hdfs://.....".
Escape characters doesn't work (////) and I'm restricted to do this with Paths.get method.
Any idea?
Paths.get
is only for filesystem paths. What you have here is a URL, not a filesystem path. What operating system are you running on? – RealSkeptic Dec 21 '15 at 14:20Paths.get
. – RealSkeptic Dec 21 '15 at 14:23