dlmarion commented on code in PR #5865:
URL: https://github.com/apache/accumulo/pull/5865#discussion_r2364487548
##########
server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java:
##########
@@ -537,6 +562,11 @@ public void execute(final String[] args) {
if (success && opts.addVolumes) {
success = addVolumes(fs, initConfig, serverDirs);
}
+ if (success && opts.resourceGroups != null) {
+ try (var zk = new ZooSession(getClass().getSimpleName(), siteConfig)) {
+ success = addResourceGroups(zk.asReaderWriter(),
opts.resourceGroups);
Review Comment:
Fixed in 63fbabf
##########
server/base/src/main/java/org/apache/accumulo/server/conf/util/ZooInfoViewer.java:
##########
@@ -328,6 +334,14 @@ private void printInstanceIds(final Map<String,InstanceId>
instanceIdMap, PrintW
writer.println();
}
+ private void printResourceGroups(ServerContext context, PrintWriter writer) {
+ Set<String> groups = new TreeSet<>();
+
context.getZooCache().getChildren(Constants.ZRESOURCEGROUPS).forEach(groups::add);
+ String rgs = String.join(",", groups.toArray(new String[] {}));
Review Comment:
Fixed in 63fbabf
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]