private static ExecutorService createThreadPool(Configuration conf) {
    int numThreads = conf.getInt("hbasefsck.numthreads", MAX_NUM_THREADS);
    return new ScheduledThreadPoolExecutor(numThreads,
      new ThreadFactoryBuilder().setNameFormat("hbasefsck-pool-%d").setDaemon(true)
        .setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER).build());
  }
Constructor
@param conf Configuration object
@throws MasterNotRunningException    if the master is not running
@throws ZooKeeperConnectionException if unable to connect to ZooKeeper
hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java