Package org.kitesdk.data

Examples of org.kitesdk.data.DatasetOperationException


    try {
      return doWithRetry(exists);
    } catch (UnknownDBException e) {
      return false;
    } catch (MetaException e) {
      throw new DatasetOperationException("Hive MetaStore exception", e);
    } catch (TException e) {
      throw new DatasetOperationException(
          "Exception communicating with the Hive MetaStore", e);
    }
  }
View Full Code Here


      doWithRetry(create);
    } catch (AlreadyExistsException e) {
      throw new DatasetExistsException(
          "Hive database already exists: " + dbName, e);
    } catch (InvalidObjectException e) {
      throw new DatasetOperationException("Invalid database: " + dbName, e);
    } catch (MetaException e) {
      throw new DatasetOperationException("Hive MetaStore exception", e);
    } catch (TException e) {
      throw new DatasetOperationException(
          "Exception communicating with the Hive MetaStore", e);
    }
  }
View Full Code Here

          tbl.getDbName() + "." + tbl.getTableName());
    } catch (AlreadyExistsException e) {
      throw new DatasetExistsException("Hive table already exists: " +
          tbl.getDbName() + "." + tbl.getTableName(), e);
    } catch (InvalidObjectException e) {
      throw new DatasetOperationException("Invalid table", e);
    } catch (MetaException e) {
      throw new DatasetOperationException("Hive MetaStore exception", e);
    } catch (TException e) {
      throw new DatasetOperationException(
          "Exception communicating with the Hive MetaStore", e);
    }
  }
View Full Code Here

          throw new DatasetIOException("Cannot determine the default FS", e);
        }
        return new URI(defaultScheme, userInfo, "", UNSPECIFIED_PORT, "/", null, null);
      }
    } catch (URISyntaxException ex) {
      throw new DatasetOperationException("Could not build FS URI", ex);
    }
  }
View Full Code Here

        }
        conf.set(HIVE_METASTORE_URI_PROP,
            new URI("thrift", null, host, port, null, null, null).toString());
      }
    } catch (URISyntaxException ex) {
      throw new DatasetOperationException(
          "Could not build metastore URI", ex);
    }
  }
View Full Code Here

        }
      }
      return new URI(match.get(URIPattern.SCHEME), userInfo,
          match.get(URIPattern.HOST), port, "/", null, null);
    } catch (URISyntaxException ex) {
      throw new DatasetOperationException("[BUG] Could not build FS URI", ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.kitesdk.data.DatasetOperationException

Copyright © 2018 www.massapicom. 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.