Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
  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);
 }
Exemplo n.º 4
0
 public static synchronized DefaultConfiguration getDefaultConfiguration() {
   checkPermissions();
   return DefaultConfiguration.getInstance();
 }