mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-28 19:44:02 -06:00
Allow to connect to Pulsar cluster with non-admin tokens
This commit is contained in:
parent
3b184a0c23
commit
5064ab3493
@ -76,9 +76,9 @@ public class PulsarSpace {
|
|||||||
CollectionUtils.addAll(pulsarClusterMetadata, stringList.listIterator());
|
CollectionUtils.addAll(pulsarClusterMetadata, stringList.listIterator());
|
||||||
|
|
||||||
} catch (PulsarAdminException e) {
|
} catch (PulsarAdminException e) {
|
||||||
String errMsg = "Fail to create PulsarClient from global configuration: " + e.getMessage();
|
// this is okay if you are connecting with a token that does not have access to the
|
||||||
logger.error(errMsg);
|
// system configuration
|
||||||
throw new RuntimeException(errMsg);
|
logger.info("Could not get list of Pulsar Clusters from global configuration: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user