Examples of shutdown()


Examples of org.apache.hadoop.dfs.MiniDFSCluster.shutdown()

      checkPermission(fs, "/c1", permission);
      checkPermission(fs, "/c1/c2.txt", permission);
    }
    finally {
      try{fs.close();} catch(Exception e) {}
      try{cluster.shutdown();} catch(Exception e) {}
    }
  }

  public void testFilePermision() throws Exception {
    Configuration conf = new Configuration();
View Full Code Here

Examples of org.apache.hadoop.hbase.LocalHBaseCluster.shutdown()

      while (onlineServersList.size() != 1) {
        Thread.sleep(100);
        onlineServersList = master.getMaster().getServerManager().getOnlineServersList();
      }
      assertEquals(onlineServersList.size(), 1);
      cluster.shutdown();
    } finally {
      masterActive = false;
      firstRS.set(true);
      TEST_UTIL.shutdownMiniCluster();
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.MiniHBaseCluster.shutdown()

      } finally {
        s.close();
      }
    } finally {
      HConnectionManager.deleteConnectionInfo(conf, false);
      cluster.shutdown();
    }
  }

  /*
   * Wait till the startcode changes before we put up a scanner.  Otherwise
View Full Code Here

Examples of org.apache.hadoop.hbase.MiniZooKeeperCluster.shutdown()

      }
    } finally {
      HConnectionManager.deleteConnectionInfo(conf, false);
      cluster.shutdown();
      try {
        zooKeeperCluster.shutdown();
      } catch (IOException e) {
        LOG.warn("Shutting down ZooKeeper cluster", e);
      }
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Admin.shutdown()

    } catch (IOException e) {
      LOG.error("Got IOException: " +e.getMessage(), e);
      return 1;
    }
    try {
      adm.shutdown();
    } catch (Throwable t) {
      LOG.error("Failed to stop master", t);
      return 1;
    }
    return 0;
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.shutdown()

        } catch (MasterNotRunningException e) {
          LOG.error("master is not running");
          System.exit(0);
        }
        try {
          adm.shutdown();
        } catch (Throwable t) {
          LOG.error( "Can not stop master", t);
          System.exit(-1);
        }
        break;
View Full Code Here

Examples of org.apache.hadoop.hbase.executor.ExecutorService.shutdown()

        ZKAssign.transitionNodeOpened(this.watcher, REGIONINFO, SERVERNAME_B, versionid);
      assertNotSame(-1, versionid);
      // Wait on the handler removing the OPENED znode.
      while(am.isRegionInTransition(REGIONINFO) != null) Threads.sleep(1);
    } finally {
      executor.shutdown();
      am.shutdown();
      // Clean up all znodes
      ZKAssign.deleteAllNodes(this.watcher);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.impl.AsyncExecutorImpl.shutdown()

    public static boolean dropAsyncExecutor(final String name) {

        if (Utils.isValidString(name) && getExecutorMap().containsKey(name)) {
            final AsyncExecutorImpl asyncExecutor = getExecutorMap().remove(name);
            asyncExecutor.shutdown();
            return true;
        }

        return false;
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.impl.QueryExecutorPoolImpl.shutdown()

    public static boolean dropQueryExecutorPool(final String name) {

        if (Utils.isValidString(name) && getExecutorPoolMap().containsKey(name)) {
            final QueryExecutorPoolImpl queryExecutorPool = getExecutorPoolMap().remove(name);
            queryExecutorPool.shutdown();
            return true;
        }

        return false;
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.io.hfile.BlockCache.shutdown()

      processTable(fs, tableDir, log, c, majorCompact);
    } finally {
       log.close();
       // TODO: is this still right?
       BlockCache bc = new CacheConfig(c).getBlockCache();
       if (bc != null) bc.shutdown();
    }
  }

  /**
   * Listener class to enable callers of
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.