You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/09/01 17:29:08 UTC

[GitHub] [accumulo] ctubbsii commented on issue #2908: MiniAccumuloCluster binds admin.serverPort to 8080

ctubbsii commented on issue #2908:
URL: https://github.com/apache/accumulo/issues/2908#issuecomment-1234575819

   > Except, duh-uh, of course setting the system property doesn't work - because MAC spawns ZK in a separate JVM process. Sigh ... I'll have to resort to one of the uglier work-arounds.
   
   Using non-public API is not recommended because internal code can change often. However, you might be able to do something like:
   
   ```java
   var config = new MiniAccumuloConfigImpl(new File("/"), "");
   
   var map = new HashMap<>(config.getSystemProperties());
   map.put("zookeeper.admin.enableServer", "false");
   config.setSystemProperties(map);
   
   var mac = new MiniAccumuloClusterImpl(config);
   mac.start();
   ```


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org