本文整理了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>
暂无
代码示例来源: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);
内容来源于网络,如有侵权,请联系作者删除!