public static void main(String[] args) throws Exception { VolumeManager fs = VolumeManagerImpl.get(); Opts opts = new Opts(); opts.parseArgs(TableDiskUsage.class.getName(), args); Connector conn = opts.getConnector(); org.apache.accumulo.server.util.TableDiskUsage.printDiskUsage( DefaultConfiguration.getInstance(), opts.tables, fs, conn, false); }
protected synchronized IZooReaderWriter getZooReaderWriter(Instance instance, String secret) { if (secret == null) { AccumuloConfiguration conf = SiteConfiguration.getInstance(DefaultConfiguration.getInstance()); secret = conf.get(Property.INSTANCE_SECRET); } return new ZooReaderWriter( instance.getZooKeepers(), instance.getZooKeepersSessionTimeOut(), SCHEME, (USER + ":" + secret).getBytes()); }
@Override @Deprecated public AccumuloConfiguration getConfiguration() { return ServerConfigurationUtil.convertClientConfig( accumuloConf == null ? DefaultConfiguration.getInstance() : accumuloConf, clientConf); }
public static synchronized DefaultConfiguration getDefaultConfiguration() { checkPermissions(); return DefaultConfiguration.getInstance(); }