kzk / webhdfs

Ruby client for Hadoop WebHDFS
Other
81 stars 46 forks source link

URI escape special characters in HDFS path #16

Closed chaiken-verticloud closed 9 years ago

chaiken-verticloud commented 9 years ago

We found that webhdfs failed when trying to stat the following files on one of Altiscale's clusters:

/hive/container_fact/${InputDir}
/hive/container_fact/${InputDir}/system=${sys}
/hive/container_fact/${InputDir}/system=${sys}/date=${day}
/hive/container_fact/${InputDir}/system=${sys}/date=${day}/data

The line of code in this pull request solves this problem.

chaiken-verticloud commented 9 years ago

Will do. It looks like Addressable::URI.escape is the best alternative.

tagomoris commented 9 years ago

Great. Please ping me by mention after update!