@Override public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration conf) { cfg.setMemory(ServerType.TABLET_SERVER, 128 * 4, MemoryUnit.MEGABYTE); }
/** * Sets the amount of memory to use in the master process. Calling this method is optional. * Default memory is 128M * * @param serverType * the type of server to apply the memory settings * @param memory * amount of memory to set * * @param memoryUnit * the units for which to apply with the memory size * * @since 1.6.0 */ public MiniAccumuloConfig setMemory(ServerType serverType, long memory, MemoryUnit memoryUnit) { impl.setMemory(serverType, memory, memoryUnit); return this; }
@Override protected void configure(MiniAccumuloConfigImpl cfg, Configuration hdfs) { cfg.setNumTservers(1); cfg.setMemory(ServerType.TABLET_SERVER, cfg.getMemory(ServerType.TABLET_SERVER) * 2, MemoryUnit.BYTE); }
@Override public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) { cfg.setMemory(ServerType.TABLET_SERVER, cfg.getMemory(ServerType.TABLET_SERVER) * 2, MemoryUnit.BYTE); Map<String,String> siteConfig = cfg.getSiteConfig(); siteConfig.put(Property.TSERV_MAJC_DELAY.getKey(), "10ms"); cfg.setSiteConfig(siteConfig); }
@Override public void configure(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) { cfg.setProperty(Property.TSERV_MAXMEM, "10K"); cfg.setProperty(Property.TSERV_MAJC_DELAY, "0"); cfg.setMemory(ServerType.TABLET_SERVER, cfg.getMemory(ServerType.TABLET_SERVER) * 3, MemoryUnit.BYTE); }