我们在尝试使用 Cloudera Navigator API 检索包含空格的文件名的信息时遇到问题。我们可以通过将文件名括在引号中来在 Navigator UI 中搜索这些文件名。但是,到目前为止,我们一直无法弄清楚如何使用 API 来做到这一点。
我们已经尝试使用原始文件名:
http://navigator.url.com:7187/api/v9/entities/?query=parentPath :( /some/parent/path ) AND originalName:(Prov Layout-Others.txt)
我们尝试用“%20”替换空格:
http://navigator.url.com:7187/api/v9/entities/?query=parentPath :( /some/parent/path ) AND originalName:(Prov%20Layout-Others.txt)
我们尝试在 URL 中将文件名用引号括起来:
http://navigator.url.com:7187/api/v9/entities/?query=parentPath :( /some/parent/path ) AND originalName:("ProvLayout-Others.txt")
到目前为止,没有任何效果。有没有其他人遇到过这个问题,如果有,是否有解决方案?
谢谢。