Package com.alibaba.wasp

Examples of com.alibaba.wasp.MetaException


      try {
        return fMetaServices.fullScan(disabledTables,
            excludeOfflinedSplitParents);
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException(" RetriesExhaustedException ", me);
        }
        LOG.info("RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return new HashMap<EntityGroupInfo, ServerName>(0);
  }
View Full Code Here


    for (int tries = 0; tries < maxRetries; ++tries) {
      try {
        return fMetaServices.fullScan();
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException("RetriesExhaustedException ", me);
        }
        LOG.info("RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return new ArrayList<Result>(0);
  }
View Full Code Here

    for (int tries = 0; tries < maxRetries; ++tries) {
      try {
        return fMetaServices.getOfflineSplitParents();
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException(" RetriesExhaustedException ", me);
        }
        LOG.info("RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }

    return new HashMap<EntityGroupInfo, Result>(0);
  }
View Full Code Here

    for (int tries = 0; tries < maxRetries; ++tries) {
      try {
        return fMetaServices.getServerUserEntityGroups(serverName);
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException(" RetriesExhaustedException ", me);
        }
        LOG.info("RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return new TreeMap<EntityGroupInfo, Result>();
  }
View Full Code Here

      try {
        return fMetaServices.scanEntityGroupLocation(tableName, row);
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          LOG.error("RetriesExhaustedException", me);
          throw new MetaException("RetriesExhaustedException ", me);
        }
        LOG.info("RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return null;
  }
View Full Code Here

    for (int tries = 0; tries < maxRetries; ++tries) {
      try {
        return fMetaServices.getEntityGroupLocations(rootName);
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException(" RetriesExhaustedException ", me);
        }
        LOG.info(" RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return new ArrayList<EntityGroupLocation>(0);
  }
View Full Code Here

      try {
        return fMetaServices.getTableEntityGroupsAndLocations(rootName,
            excludeOfflinedSplitParents);
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException(" RetriesExhaustedException ", me);
        }
        LOG.info(" RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return new ArrayList<Pair<EntityGroupInfo, ServerName>>(0);
  }
View Full Code Here

        desc.addFamily(family);
        admin.createTable(desc);
      }
      admin.close();
    } catch (ZooKeeperConnectionException zce) {
      throw new MetaException("FMeta could not connect to zookeeper ", zce);
    } catch (MasterNotRunningException mnre) {
      throw new MetaException("FMeta Could not connect to HBase Master ", mnre);
    } catch (IOException e) {
      throw new MetaException(e);
    }
  }
View Full Code Here

        builder.addAllParameters(ProtobufUtil
            .toStringStringPairList(getParameters()));
      }
      return builder.build();
    } catch (Throwable e) {
      throw new MetaException(e);
    }
  }
View Full Code Here

      return null;
    }
    try {
      return parseTableFrom(value);
    } catch (DeserializationException e) {
      throw new MetaException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.MetaException

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.