You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandor Molnar (Jira)" <ji...@apache.org> on 2025/07/22 20:04:00 UTC
[jira] [Resolved] (KNOX-3084) Update CM service discovery with the enhanced role configs endpoint
[ https://issues.apache.org/jira/browse/KNOX-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandor Molnar resolved KNOX-3084.
---------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
> Update CM service discovery with the enhanced role configs endpoint
> -------------------------------------------------------------------
>
> Key: KNOX-3084
> URL: https://issues.apache.org/jira/browse/KNOX-3084
> Project: Apache Knox
> Issue Type: Task
> Components: cm-discovery
> Affects Versions: 2.1.0
> Reporter: Tamás Marcinkovics
> Assignee: Tamás Marcinkovics
> Priority: Major
> Fix For: 2.1.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> There is a new CM API endpoint to fetch all role configurations for a given service ({{RolesResouce.readRolesConfig}}) if the supported API version is greater than or equal to v57. This endpoint is available in the cloudera-manager-api-swagger:7.13.1 artifact.
> [https://repository.cloudera.com/service/rest/repository/browse/cloudera-repos/com/cloudera/api/swagger/cloudera-manager-api-swagger/7.13.1/]
> On the Knox side, we need to change the existing {{readRoles}} and {{readRoleConfig}} API calls to the new {{readRolesConfig}} call.
> The {{view}} parameter should still remain {{full}} as {{full_with_no_health_check}} only returns role configuration parameters with non-default values.
> As the new cloudera-manager-api-swagger artifact is using okhttp 4.10, we also need to change {{DiscoveryApiClient}} setup and our Okhttp interceptors from Okhttp 2.7.5 to Okhttp 4.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)