org.apache.hadoop.hive.ql.lockmgr.zookeeper.ZooKeeperHiveLock.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(679)

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

ZooKeeperHiveLock.<init>介绍

暂无

代码示例

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

HiveLock lck = (new ZooKeeperHiveLock(curChild, obj, mode));
locks.add(lck);

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

HiveLock lck = (new ZooKeeperHiveLock(curChild, obj, mode));
locks.add(lck);

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

@Before
public void setup() {
 conf = new HiveConf();
 lockObjData = new HiveLockObjectData("1", "10", "SHARED", "show tables", conf);
 hiveLock = new HiveLockObject(TABLE, lockObjData);
 zLock = new ZooKeeperHiveLock(TABLE_LOCK_PATH, hiveLock, HiveLockMode.SHARED);
 while (server == null)
 {
  try {
   server = new TestingServer();
   CuratorFrameworkFactory.Builder builder = CuratorFrameworkFactory.builder();
   client = builder.connectString(server.getConnectString()).retryPolicy(new RetryOneTime(1)).build();
   client.start();
  } catch (Exception e) {
   System.err.println("Getting bind exception - retrying to allocate server");
   server = null;
  }
 }
}

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

return new ZooKeeperHiveLock(res, key, mode);

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

return new ZooKeeperHiveLock(res, key, mode);

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

expectedLocks.add(new ZooKeeperHiveLock("default", new HiveLockObject(), HiveLockMode.SHARED));
expectedLocks.add(new ZooKeeperHiveLock("default.table1", new HiveLockObject(), HiveLockMode.SHARED));
LockedDriverState lDrvState = new LockedDriverState();
LockedDriverState lDrvInp = new LockedDriverState();

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

HiveLock lck = (HiveLock)(new ZooKeeperHiveLock(curChild, obj, mode));
locks.add(lck);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

HiveLock lck = (HiveLock)(new ZooKeeperHiveLock(curChild, obj, mode));
locks.add(lck);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

return new ZooKeeperHiveLock(res, key, mode);

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

return new ZooKeeperHiveLock(res, key, mode);

相关文章