Java Code Examples for org.apache.hadoop.hive.metastore.api.TxnAbortedException

The following examples show how to use org.apache.hadoop.hive.metastore.api.TxnAbortedException. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: waggle-dance   Source File: FederatedHMSHandler.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public LockResponse lock(LockRequest rqst) throws NoSuchTxnException, TxnAbortedException, TException {
  DatabaseMapping mapping = databaseMappingService.primaryDatabaseMapping();
  List<LockComponent> components = rqst.getComponent();
  for (LockComponent component : components) {
    mapping.checkWritePermissions(component.getDbname());
  }
  return mapping.getClient().lock(mapping.transformInboundLockRequest(rqst));
}
 
Example 2
Source Project: waggle-dance   Source File: FederatedHMSHandler.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public void add_dynamic_partitions(AddDynamicPartitions rqst)
    throws NoSuchTxnException, TxnAbortedException, TException {
  DatabaseMapping mapping = checkWritePermissions(rqst.getDbname());
  mapping.getClient().add_dynamic_partitions(mapping.transformInboundAddDynamicPartitions(rqst));
}
 
Example 3
@Override
public LockResponse checkLock(long lockId)
    throws NoSuchTxnException, TxnAbortedException, NoSuchLockException, TException {
  return glueMetastoreClientDelegate.checkLock(lockId);
}
 
Example 4
@Override
public void commitTxn(long txnId) throws NoSuchTxnException, TxnAbortedException, TException {
  glueMetastoreClientDelegate.commitTxn(txnId);
}
 
Example 5
@Override
public void heartbeat(long txnId, long lockId)
    throws NoSuchLockException, NoSuchTxnException, TxnAbortedException, TException {
  glueMetastoreClientDelegate.heartbeat(txnId, lockId);
}
 
Example 6
@Override
public LockResponse lock(LockRequest lockRequest) throws NoSuchTxnException, TxnAbortedException, TException {
  return glueMetastoreClientDelegate.lock(lockRequest);
}
 
Example 7
@Override
public LockResponse checkLock(long lockId)
    throws NoSuchTxnException, TxnAbortedException, NoSuchLockException, TException {
  return glueMetastoreClientDelegate.checkLock(lockId);
}
 
Example 8
@Override
public void commitTxn(long txnId) throws NoSuchTxnException, TxnAbortedException, TException {
  glueMetastoreClientDelegate.commitTxn(txnId);
}
 
Example 9
@Override
public void heartbeat(long txnId, long lockId)
    throws NoSuchLockException, NoSuchTxnException, TxnAbortedException, TException {
  glueMetastoreClientDelegate.heartbeat(txnId, lockId);
}
 
Example 10
@Override
public LockResponse lock(LockRequest lockRequest) throws NoSuchTxnException, TxnAbortedException, TException {
  return glueMetastoreClientDelegate.lock(lockRequest);
}
 
Example 11
Source Project: waggle-dance   Source File: FederatedHMSHandler.java    License: Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public void commit_txn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, TException {
  getPrimaryClient().commit_txn(rqst);
}
 
Example 12
Source Project: waggle-dance   Source File: FederatedHMSHandler.java    License: Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public LockResponse check_lock(CheckLockRequest rqst)
    throws NoSuchTxnException, TxnAbortedException, NoSuchLockException, TException {
  return getPrimaryClient().check_lock(rqst);
}
 
Example 13
Source Project: waggle-dance   Source File: FederatedHMSHandler.java    License: Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public void heartbeat(HeartbeatRequest ids)
    throws NoSuchLockException, NoSuchTxnException, TxnAbortedException, TException {
  getPrimaryClient().heartbeat(ids);
}