【问题标题】:Apache Ranger REST API startIndex request param is ignoringApache Ranger REST API startIndex 请求参数被忽略
【发布时间】:2022-02-01 20:15:26
【问题描述】:

Apache Ranger v 2.1.0。 我尝试发送获取请求
"/service/public/v2/api/policy/?pageSize=10&startIndex=15"
或者 "/service/public/v2/api/policy?pageSize=10&startIndex=15"
或者 "/service/public/v2/api/service/hadoop/policy?pageSize=10&startIndex=15"
到 REST API Ranger,但总是从 1 条记录(49 条策略)中看到 10 条结果。 为什么 startIndex 请求参数被忽略?

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: rest httprequest apache-ranger


【解决方案1】:

注意:我没有使用过这个软件。

尝试不使用斜杠,例如:

/service/public/v2/api/policy?pageSize=10&startIndex=15

另外,根据文档,语法是这样的:

/service/public/v2/api/service/{service-name}/policy

请注意其中的 {service-name}。我在您的示例中没有看到这一点。

【讨论】:

  • 在这两种变体中,startIndex 都被忽略了。
  • 使用新数据和您尝试过的网址更新您的起始帖子。也许其他人有任何想法。
  • 谢谢@JustLudo
猜你喜欢
  • 1970-01-01
  • 2020-01-17
  • 2019-07-02
  • 1970-01-01
  • 2019-10-02
  • 2018-11-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多