Package org.apache.accumulo.server.tabletserver.log

Examples of org.apache.accumulo.server.tabletserver.log.TabletServerLogger$TestCallWithWriteLock


    long walogMaxSize = getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE);
    long minBlockSize = CachedConfiguration.getInstance().getLong("dfs.namenode.fs-limits.min-block-size", 0);
    if (minBlockSize != 0 && minBlockSize > walogMaxSize)
      throw new RuntimeException("Unable to start TabletServer. Logger is set to use blocksize " + walogMaxSize + " but hdfs minimum block size is "
          + minBlockSize + ". Either increase the " + Property.TSERV_WALOG_MAX_SIZE + " or decrease dfs.namenode.fs-limits.min-block-size in hdfs-site.xml.");
    logger = new TabletServerLogger(this, walogMaxSize);

    if (getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here


    } catch (IOException e) {
      log.fatal("couldn't get a reference to the filesystem. quitting");
      throw new RuntimeException(e);
    }
    clientAddress = new InetSocketAddress(local, 0);
    logger = new TabletServerLogger(this, ServerConfiguration.getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));

    if (ServerConfiguration.getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here

 
  public void config(String hostname) {
    log.info("Tablet server starting on " + hostname);
    security = AuditedSecurityOperation.getInstance();
    clientAddress = new InetSocketAddress(hostname, 0);
    logger = new TabletServerLogger(this, getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
   
    if (getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here

    } catch (IOException e) {
      log.fatal("couldn't get a reference to the filesystem. quitting");
      throw new RuntimeException(e);
    }
    clientAddress = new InetSocketAddress(local, 0);
    logger = new TabletServerLogger(this, ServerConfiguration.getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
   
    if (ServerConfiguration.getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here

  }
 
  public void config(String[] args) throws UnknownHostException {
    InetAddress local = Accumulo.getLocalAddress(args);
    clientAddress = new InetSocketAddress(local, 0);
    logger = new TabletServerLogger(this, AccumuloConfiguration.getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
   
    try {
      Accumulo.init("tserver");
      log.info("Tablet server starting on " + local.getHostAddress());
     
View Full Code Here

    } catch (IOException e) {
      log.fatal("couldn't get a reference to the filesystem. quitting");
      throw new RuntimeException(e);
    }
    clientAddress = new InetSocketAddress(local, 0);
    logger = new TabletServerLogger(this, ServerConfiguration.getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
   
    if (ServerConfiguration.getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here

    long walogMaxSize = getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE);
    long minBlockSize = CachedConfiguration.getInstance().getLong("dfs.namenode.fs-limits.min-block-size", 0);
    if (minBlockSize != 0 && minBlockSize > walogMaxSize)
      throw new RuntimeException("Unable to start TabletServer. Logger is set to use blocksize " + walogMaxSize + " but hdfs minimum block size is "
          + minBlockSize + ". Either increase the " + Property.TSERV_WALOG_MAX_SIZE + " or decrease dfs.namenode.fs-limits.min-block-size in hdfs-site.xml.");
    logger = new TabletServerLogger(this, walogMaxSize);

    if (getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here

    } catch (IOException e) {
      log.fatal("couldn't get a reference to the filesystem. quitting");
      throw new RuntimeException(e);
    }
    clientAddress = new InetSocketAddress(local, 0);
    logger = new TabletServerLogger(this, ServerConfiguration.getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
   
    if (ServerConfiguration.getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here

    } catch (IOException e) {
      log.fatal("couldn't get a reference to the filesystem. quitting");
      throw new RuntimeException(e);
    }
    clientAddress = new InetSocketAddress(local, 0);
    logger = new TabletServerLogger(this, ServerConfiguration.getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
   
    if (ServerConfiguration.getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
      path = new File(path).getAbsolutePath();
      try {
View Full Code Here

  }
 
  public void config(String[] args) throws UnknownHostException {
    InetAddress local = Accumulo.getLocalAddress(args);
    clientAddress = new InetSocketAddress(local, 0);
    logger = new TabletServerLogger(this, AccumuloConfiguration.getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
   
    try {
      Accumulo.init("tserver");
      log.info("Tablet server starting on " + local.getHostAddress());
     
View Full Code Here

TOP

Related Classes of org.apache.accumulo.server.tabletserver.log.TabletServerLogger$TestCallWithWriteLock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.