/** * Constructs a ZooKeeper lock object. * * @param zookeeper ZooKeeper client. * @param lockDir Path of the directory node to use for the lock. */ public ZooKeeperLock(ZooKeeperClient zookeeper, File lockDir) { this.mConstructorStack = CLEANUP_LOG.isDebugEnabled() ? Debug.getStackTrace() : null; this.mZKClient = zookeeper; this.mLockDir = lockDir; this.mLockPathPrefix = new File(lockDir, LOCK_NAME_PREFIX); // ZooKeeperClient.retain() should be the last line of the constructor. this.mZKClient.retain(); ResourceTracker.get().registerResource(this); }
filters.add(toDebugString(fchild));
/** * Logs the process configuration, for debugging purposes. * * Note: this is very verbose. * * @param conf Configuration to log. */ public static void logConfiguration(final Configuration conf) { LOG.info(LINE); LOG.info("Using Job tracker: {}", conf.get("mapred.job.tracker")); LOG.info("Using default HDFS: {}", conf.get("fs.defaultFS")); LOG.info("Using HBase: quorum: {} - client port: {}", conf.get("hbase.zookeeper.quorum"), conf.get("hbase.zookeeper.property.clientPort")); LOG.info(LINE); LOG.info("Using Avro package: {}", Package.getPackage("org.apache.avro")); LOG.info(LINE); LOG.info("Environment variables:\n{}\n{}\n{}", LINE, toLogString(System.getenv().entrySet()), LINE); LOG.info("System properties:\n{}\n{}\n{}", LINE, toLogString(System.getProperties().entrySet()), LINE); LOG.info("Classpath:\n{}\n{}\n{}", LINE, Joiner.on("\n").join(System.getProperty("java.class.path").split(":")), LINE); LOG.info("Hadoop configuration:\n{}\n{}\n{}", LINE, toLogString(conf), LINE); }
Debug.logConfiguration(mConf); LOG.debug( "Opening fiji instance '{}'"
if (LOG.isDebugEnabled()) { LOG.debug("Sending HBase Get: {} with filter {}", hbaseGet, Debug.toDebugString(hbaseGet.getFilter()));
if (LOG.isDebugEnabled()) { LOG.debug("Sending HBase Get: {} with filter {}", hbaseGet, Debug.toDebugString(hbaseGet.getFilter()));