Package org.apache.hadoop.hive.metastore.api

Examples of org.apache.hadoop.hive.metastore.api.MetaException.initCause()


          throw (InvalidPartitionException) original;
        } else if (original instanceof MetaException) {
          throw (MetaException) original;
        } else {
          MetaException me = new MetaException(original.toString());
          me.initCause(original);
          throw me;
        }
      } finally {
                endFunction("isPartitionMarkedForEvent", ret != null, ex, tbl_name);
      }
View Full Code Here


        if (e instanceof MetaException) {
          throw (MetaException)e;
        } else {
          ex = e;
          MetaException me = new MetaException();
          me.initCause(e);
          throw me;
        }
      }
      endFunction("partition_name_has_valid_characters", true, null);
      return ret;
View Full Code Here

            throw (InvalidPartitionException)original;
          } else if(original instanceof MetaException){
            throw (MetaException)original;
          } else{
            MetaException me = new MetaException(original.toString());
            me.initCause(original);
            throw me;
          }
        }
        if (null == tbl) {
          throw new UnknownTableException("Table: "+tbl_name + " not found.");
View Full Code Here

          throw (InvalidPartitionException)original;
        } else if(original instanceof MetaException){
          throw (MetaException)original;
        } else{
          MetaException me = new MetaException(original.toString());
          me.initCause(original);
          throw me;
        }
      }
      finally{
        endFunction("isPartitionMarkedForEvent");
View Full Code Here

            getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase()
            +"." + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
         MetaException me  = new MetaException(e.toString());
         me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
         MetaException me  = new MetaException(e.toString());
         me.initCause(e);
        throw me;
View Full Code Here

         MetaException me  = new MetaException(e.toString());
         me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
         MetaException me  = new MetaException(e.toString());
         me.initCause(e);
        throw me;
      }
      send(newTbl,getTopicPrefix(conf)+ "."+ newTbl.getDbName().toLowerCase(), HCatConstants.HCAT_ADD_TABLE_EVENT);
    }
  }
View Full Code Here

      if (!success) {
        rollbackTransaction();
        MetaException metaException = new MetaException(
            "The transaction for alter partition did not commit successfully.");
        if (e != null) {
          metaException.initCause(e);
        }
        throw metaException;
      }
    }
  }
View Full Code Here

      if (!success) {
        rollbackTransaction();
        MetaException metaException = new MetaException(
            "The transaction for alter partition did not commit successfully.");
        if (e != null) {
          metaException.initCause(e);
        }
        throw metaException;
      }
    }
  }
View Full Code Here

          throw (UnknownTableException) e;
        } else if (e instanceof MetaException) {
          throw (MetaException) e;
        } else {
          MetaException me = new MetaException(e.toString());
          me.initCause(e);
          throw me;
        }
      } finally {
        endFunction("get_schema", success, ex, tableName);
      }
View Full Code Here

      return ret;
    }

    private static MetaException newMetaException(Exception e) {
      MetaException me = new MetaException(e.toString());
      me.initCause(e);
      return me;
    }

    private void validateFunctionInfo(Function func) throws InvalidObjectException, MetaException {
      if (!MetaStoreUtils.validateName(func.getFunctionName())) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.