org.apache.hive.service.server.HiveServer2.deleteServerInstancesFromZooKeeper()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(123)

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

HiveServer2.deleteServerInstancesFromZooKeeper介绍

[英]Remove all znodes corresponding to the given version number from ZooKeeper
[中]从ZooKeeper中删除与给定版本号对应的所有zNode

代码示例

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

@Override
 public void execute() {
  try {
   deleteServerInstancesFromZooKeeper(versionNumber);
  } catch (Exception e) {
   LOG.error("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper", e);
   System.out.println("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper." + e);
   System.exit(-1);
  }
  System.exit(0);
 }
}

代码示例来源:origin: org.spark-project.hive/hive-service

@Override
 public void execute() {
  try {
   deleteServerInstancesFromZooKeeper(versionNumber);
  } catch (Exception e) {
   LOG.fatal("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper", e);
   System.out.println("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper." + e);
   System.exit(-1);
  }
  System.exit(0);
 }
}

代码示例来源:origin: org.apache.hive/hive-service

@Override
 public void execute() {
  try {
   deleteServerInstancesFromZooKeeper(versionNumber);
  } catch (Exception e) {
   LOG.error("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper", e);
   System.out.println("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper." + e);
   System.exit(-1);
  }
  System.exit(0);
 }
}

代码示例来源:origin: com.github.hyukjinkwon/hive-service

@Override
 public void execute() {
  try {
   deleteServerInstancesFromZooKeeper(versionNumber);
  } catch (Exception e) {
   LOG.fatal("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper", e);
   System.out.println("Error deregistering HiveServer2 instances for version: " + versionNumber
     + " from ZooKeeper." + e);
   System.exit(-1);
  }
  System.exit(0);
 }
}

相关文章