'kafka-log-dirs confluent platform

I am trying to run kafka-log-dirs against a confluent managed cloud platform. Here is the output. Please note commands like kafka-topics works as expected.

kafka-log-dirs --bootstrap-server <my-server>:9092 --command-config /config.properties --describe
Querying brokers for log directories information
Exception in thread "main" java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.ClusterAuthorizationException: Cluster authorization failed.
        at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
        at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
        at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:165)
        at kafka.admin.LogDirsCommand$.describe(LogDirsCommand.scala:58)
        at kafka.admin.LogDirsCommand$.main(LogDirsCommand.scala:36)
        at kafka.admin.LogDirsCommand.main(LogDirsCommand.scala)
Caused by: org.apache.kafka.common.errors.ClusterAuthorizationException: Cluster authorization failed.

I even tried to run Kowl and everything is visible except the size of the topics.

I do see the following when running the ccloud command

ccloud kafka acl list --cluster-scope
  ServiceAccountId | Permission |    Operation     | Resource |     Name      |  Type    
+------------------+------------+------------------+----------+---------------+---------+
  User:0           | ALLOW      | DESCRIBE_CONFIGS | CLUSTER  | kafka-cluster | LITERAL  
  User:0           | ALLOW      | DESCRIBE         | CLUSTER  | kafka-cluster | LITERAL  

according to the documentation you need a cluster scoped Describe authroization to issue a DescribeLogDirs API call.

I did read in a confluent post that this call is disabled.Anyone in the wild able to query topic sizes when running against the managed confluent cloud platform?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source