Beispiel #1
0
 public ZkClient(final TajoConf conf) throws IOException {
   this(
       conf.getVar(ZOOKEEPER_ADDRESS),
       conf.getIntVar(ZOOKEEPER_SESSION_TIMEOUT),
       conf.getIntVar(ZOOKEEPER_RETRY_COUNT),
       conf.getIntVar(ZOOKEEPER_RETRY_INTERVALMILLS));
 }
Beispiel #2
0
 static {
   try {
     TajoConf conf = new TajoConf();
     lookup =
         new LookupService(conf.getVar(ConfVars.GEOIP_DATA), LookupService.GEOIP_MEMORY_CACHE);
   } catch (IOException e) {
     LOG.error("Cannot open the geoip data", e);
   }
 }