Details
Description
Recently, we upgraded hadoop library from 2.7.7 to 3.2.0. This issue happens after the update. When we call FileSystem.listLocatedStatus with location 'webhdfs://hadoop-master:50070/user/hive/warehouse/test_part/dt=1', the internal calls are
- 2.7.7 http://hadoop-master:50070/webhdfs/v1/user/hive/warehouse/test_part/dt=1?op=LISTSTATUS&user.name=xxx
- 3.2.0 http://hadoop-master:50070/webhdfs/v1/user/hive/warehouse/test_part/dt%253D1?op=LISTSTATUS&user.name=xxx'
As a result, it returns RemoteException with FileNotFoundException.
{"RemoteException":{"exception":"FileNotFoundException","javaClassName":"java.io.FileNotFoundException","message":"File /user/hive/warehouse/test_part/dt%3D1 does not exist."}}
Could you please tell me whether it's a bug and the way to avoid it?
Attachments
Attachments
Issue Links
- is broken by
-
HDFS-13176 WebHdfs file path gets truncated when having semicolon (;) inside
- Resolved
- is related to
-
HDFS-14323 Distcp fails in Hadoop 3.x when 2.x source webhdfs url has special characters in hdfs file path
- Resolved
-
HDFS-13582 Improve backward compatibility for HDFS-13176 (WebHdfs file path gets truncated when having semicolon (;) inside)
- Resolved