gpt4 book ai didi

org.apache.hadoop.hbase.backup.example.ZKTableArchiveClient.createHFileArchiveManager()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 15:43:31 27 4
gpt4 key购买 nike

本文整理了Java中org.apache.hadoop.hbase.backup.example.ZKTableArchiveClient.createHFileArchiveManager()方法的一些代码示例,展示了ZKTableArchiveClient.createHFileArchiveManager()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKTableArchiveClient.createHFileArchiveManager()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.backup.example.ZKTableArchiveClient
类名称:ZKTableArchiveClient
方法名:createHFileArchiveManager

ZKTableArchiveClient.createHFileArchiveManager介绍

暂无

代码示例

代码示例来源:origin: apache/hbase

/**
 * Disable hfile backups for all tables.
 * <p>
 * Previously backed up files are still retained (if present).
 * <p>
 * Asynchronous operation - some extra HFiles may be retained, in the archive directory after
 * disable is called, dependent on the latency in zookeeper to the servers.
 * @throws IOException if an unexpected exception occurs
 * @throws KeeperException if zookeeper can't be reached
 */
public void disableHFileBackup() throws IOException, KeeperException {
 createHFileArchiveManager().disableHFileBackup().stop();
}

代码示例来源:origin: apache/hbase

/**
 * Disable hfile backups for the given table.
 * <p>
 * Previously backed up files are still retained (if present).
 * <p>
 * Asynchronous operation - some extra HFiles may be retained, in the archive directory after
 * disable is called, dependent on the latency in zookeeper to the servers.
 * @param table name of the table stop backing up
 * @throws IOException if an unexpected exception occurs
 * @throws KeeperException if zookeeper can't be reached
 */
public void disableHFileBackup(final byte[] table) throws IOException, KeeperException {
 createHFileArchiveManager().disableHFileBackup(table).stop();
}

代码示例来源:origin: apache/hbase

/**
 * Determine if archiving is enabled (but not necessarily fully propagated) for a table
 * @param table name of the table to check
 * @return <tt>true</tt> if it is, <tt>false</tt> otherwise
 * @throws IOException if a connection to ZooKeeper cannot be established
 * @throws KeeperException
 */
public boolean getArchivingEnabled(byte[] table) throws IOException, KeeperException {
 HFileArchiveManager manager = createHFileArchiveManager();
 try {
  return manager.isArchivingEnabled(table);
 } finally {
  manager.stop();
 }
}

代码示例来源:origin: apache/hbase

/**
 * Turn on backups for all HFiles for the given table.
 * <p>
 * All deleted hfiles are moved to the archive directory under the table directory, rather than
 * being deleted.
 * <p>
 * If backups are already enabled for this table, does nothing.
 * <p>
 * If the table does not exist, the archiving the table's hfiles is still enabled as a future
 * table with that name may be created shortly.
 * @param table name of the table to start backing up
 * @throws IOException if an unexpected exception occurs
 * @throws KeeperException if zookeeper can't be reached
 */
public void enableHFileBackupAsync(final byte[] table) throws IOException, KeeperException {
 createHFileArchiveManager().enableHFileBackup(table).stop();
}

代码示例来源:origin: harbby/presto-connectors

/**
 * Disable hfile backups for all tables.
 * <p>
 * Previously backed up files are still retained (if present).
 * <p>
 * Asynchronous operation - some extra HFiles may be retained, in the archive directory after
 * disable is called, dependent on the latency in zookeeper to the servers.
 * @throws IOException if an unexpected exception occurs
 * @throws KeeperException if zookeeper can't be reached
 */
public void disableHFileBackup() throws IOException, KeeperException {
 createHFileArchiveManager().disableHFileBackup().stop();
}

代码示例来源:origin: harbby/presto-connectors

/**
 * Disable hfile backups for the given table.
 * <p>
 * Previously backed up files are still retained (if present).
 * <p>
 * Asynchronous operation - some extra HFiles may be retained, in the archive directory after
 * disable is called, dependent on the latency in zookeeper to the servers.
 * @param table name of the table stop backing up
 * @throws IOException if an unexpected exception occurs
 * @throws KeeperException if zookeeper can't be reached
 */
public void disableHFileBackup(final byte[] table) throws IOException, KeeperException {
 createHFileArchiveManager().disableHFileBackup(table).stop();
}

代码示例来源:origin: harbby/presto-connectors

/**
 * Determine if archiving is enabled (but not necessarily fully propagated) for a table
 * @param table name of the table to check
 * @return <tt>true</tt> if it is, <tt>false</tt> otherwise
 * @throws IOException if a connection to ZooKeeper cannot be established
 * @throws KeeperException
 */
public boolean getArchivingEnabled(byte[] table) throws IOException, KeeperException {
 HFileArchiveManager manager = createHFileArchiveManager();
 try {
  return manager.isArchivingEnabled(table);
 } finally {
  manager.stop();
 }
}

代码示例来源:origin: harbby/presto-connectors

/**
 * Turn on backups for all HFiles for the given table.
 * <p>
 * All deleted hfiles are moved to the archive directory under the table directory, rather than
 * being deleted.
 * <p>
 * If backups are already enabled for this table, does nothing.
 * <p>
 * If the table does not exist, the archiving the table's hfiles is still enabled as a future
 * table with that name may be created shortly.
 * @param table name of the table to start backing up
 * @throws IOException if an unexpected exception occurs
 * @throws KeeperException if zookeeper can't be reached
 */
public void enableHFileBackupAsync(final byte[] table) throws IOException, KeeperException {
 createHFileArchiveManager().enableHFileBackup(table).stop();
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com