Package org.kitesdk.data

Examples of org.kitesdk.data.DatasetOperationException


      try {
        Class<SpecificRecord> subEntityClass = (Class<SpecificRecord>) Class
            .forName(descriptor.getSchema().getFullName());
        subEntityClasses.add(subEntityClass);
      } catch (ClassNotFoundException e) {
        throw new DatasetOperationException("Failed to resolve sub-type", e);
      }
    }
    Dao dao = SpecificAvroDao.buildCompositeDaoWithEntityManager(tablePool,
        tableName, subEntityClasses, schemaManager);
    return new DaoDataset<E>(namespace, name, dao, descriptors.get(0),
View Full Code Here


      HTablePool pool = new HTablePool(configuration, 10);
      HBaseAdmin admin;
      try {
        admin = new HBaseAdmin(configuration);
      } catch (MasterNotRunningException e) {
        throw new DatasetOperationException(
            "Problem creating HBaseDatasetRepository.", e);
      } catch (ZooKeeperConnectionException e) {
        throw new DatasetOperationException(
            "Problem creating HBaseDatasetRepository.", e);
      } catch (IOException e) {
        throw new DatasetIOException(
            "Problem creating HBaseDatasetRepository.", e);
      }
View Full Code Here

      doWithRetry(alter);
    } catch (NoSuchObjectException e) {
      throw new DatasetNotFoundException("Hive table not found: " +
          tbl.getDbName() + "." + tbl.getTableName());
    } catch (InvalidObjectException e) {
      throw new DatasetOperationException("Invalid table", e);
    } catch (InvalidOperationException e) {
      throw new DatasetOperationException("Invalid table change", 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

    try {
      doWithRetry(drop);
    } catch (NoSuchObjectException e) {
      // this is okay
    } 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

    try {
      doWithRetry(addPartition);
    } catch (AlreadyExistsException e) {
      // this is okay
    } catch (InvalidObjectException e) {
      throw new DatasetOperationException(
          "Invalid partition for " + dbName + "." + tableName + ": " + path, 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

    try {
      return doWithRetry(create);
    } catch (NoSuchObjectException e) {
      return ImmutableList.of();
    } 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

    try {
      return doWithRetry(create);
    } catch (NoSuchObjectException e) {
      return ImmutableList.of();
    } 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

    try {
      doWithRetry(drop);
    } catch (NoSuchObjectException 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

          "Missing Hive MetaStore connection URI");
    }
    try {
      client = new HiveMetaStoreClient(hiveConf);
    } catch (TException e) {
      throw new DatasetOperationException("Hive metastore exception", e);
    }
  }
View Full Code Here

      throw new DatasetNotFoundException(
          "Hive table not found: " + dbName + "." + tableName);
    } catch (MetaException e) {
      throw new DatasetNotFoundException("Hive table lookup exception", e);
    } catch (TException e) {
      throw new DatasetOperationException(
          "Exception communicating with the Hive MetaStore", e);
    }

    if (table == null) {
      throw new DatasetNotFoundException("Could not find info for table: " + tableName);
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.