try { tbl = hmsClient.getTable(partInfoList.get(0).getDatabaseName(), partInfoList.get(0).getTableName()); HCatTable hcatTable = new HCatTable(tbl); ArrayList<Partition> ptnList = new ArrayList<Partition>(); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfoList.get(0).getTableName() + " is could not be found.", e); } catch (TException e) {
try { tbl = hmsClient.getTable(partInfo.getDatabaseName(), partInfo.getTableName()); throw new HCatException("The table " + partInfo.getTableName() + " is not partitioned."); throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfo.getTableName() + " is could not be found.", e); } catch (TException e) {
try { tbl = hmsClient.getTable(partInfoList.get(0).getDatabaseName(), partInfoList.get(0).getTableName()); HCatTable hcatTable = new HCatTable(tbl); ArrayList<Partition> ptnList = new ArrayList<Partition>(); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfoList.get(0).getTableName() + " is could not be found.", e); } catch (TException e) {
try { tbl = hmsClient.getTable(partInfoList.get(0).getDatabaseName(), partInfoList.get(0).getTableName()); HCatTable hcatTable = new HCatTable(tbl); ArrayList<Partition> ptnList = new ArrayList<Partition>(); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfoList.get(0).getTableName() + " is could not be found.", e); } catch (TException e) {
try { tbl = hmsClient.getTable(partInfoList.get(0).getDatabaseName(), partInfoList.get(0).getTableName()); HCatTable hcatTable = new HCatTable(tbl); ArrayList<Partition> ptnList = new ArrayList<Partition>(); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfoList.get(0).getTableName() + " is could not be found.", e); } catch (TException e) {
try { tbl = hmsClient.getTable(partInfo.getDatabaseName(), partInfo.getTableName()); throw new HCatException("The table " + partInfo.getTableName() + " is not partitioned."); throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfo.getTableName() + " is could not be found.", e); } catch (TException e) {
try { tbl = hmsClient.getTable(partInfo.getDatabaseName(), partInfo.getTableName()); throw new HCatException("The table " + partInfo.getTableName() + " is not partitioned."); throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfo.getTableName() + " is could not be found.", e); } catch (TException e) {
try { tbl = hmsClient.getTable(partInfo.getDatabaseName(), partInfo.getTableName()); throw new HCatException("The table " + partInfo.getTableName() + " is not partitioned."); throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + partInfo.getTableName() + " is could not be found.", e); } catch (TException e) {