Examples of NamespaceDescriptor


Examples of org.apache.hadoop.hbase.NamespaceDescriptor

  @Override
  public NamespaceDescriptor getNamespaceDescriptor(String name) throws IOException {
    if (!isTableNamespaceManagerReady()) {
      throw new IOException("Table Namespace Manager not ready yet, try again later");
    }
    NamespaceDescriptor nsd = tableNamespaceManager.get(name);
    if (nsd == null) {
      throw new NamespaceNotFoundException(name);
    }
    return nsd;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

  @Override
  public NamespaceDescriptor getNamespaceDescriptor(String name) throws IOException {
    if (!isTableNamespaceManagerReady()) {
      throw new IOException("Table Namespace Manager not ready yet, try again later");
    }
    NamespaceDescriptor nsd = tableNamespaceManager.get(name);
    if (nsd == null) {
      throw new NamespaceNotFoundException(name);
    }
    return nsd;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

    boolean ready = tableNamespaceManager != null &&
        tableNamespaceManager.isTableAvailableAndInitialized();
    if (!ready) {
      throw new IOException("Table Namespace Manager not ready yet, try again later");
    }
    NamespaceDescriptor nsd = tableNamespaceManager.get(name);
    if (nsd == null) {
      throw new NamespaceNotFoundException(name);
    }
    return nsd;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

  }

  @Override
  public NamespaceDescriptor getNamespaceDescriptor(String name) throws IOException {
    checkNamespaceManagerReady();
    NamespaceDescriptor nsd = tableNamespaceManager.get(name);
    if (nsd == null) {
      throw new NamespaceNotFoundException(name);
    }
    return nsd;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

        try {
          for (Result result : scanner) {
            byte[] val =  CellUtil.cloneValue(result.getColumnLatestCell(
                HTableDescriptor.NAMESPACE_FAMILY_INFO_BYTES,
                HTableDescriptor.NAMESPACE_COL_DESC_BYTES));
            NamespaceDescriptor ns =
                ProtobufUtil.toNamespaceDescriptor(
                    HBaseProtos.NamespaceDescriptor.parseFrom(val));
            zkNamespaceManager.update(ns);
          }
        } finally {
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

  }

  @Test
  public void testGetNamespacePermission() throws Exception {
    String namespace = "testNamespace";
    NamespaceDescriptor desc = NamespaceDescriptor.create(namespace).build();
    TEST_UTIL.getMiniHBaseCluster().getMaster().createNamespace(desc);
    grantOnNamespace(TEST_UTIL, USER_NONE.getShortName(), namespace, Permission.Action.READ);
    try {
      List<UserPermission> namespacePermissions = AccessControlClient.getUserPermissions(conf,
      AccessControlLists.toNamespaceEntry(namespace));
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

    boolean ready = tableNamespaceManager != null &&
        tableNamespaceManager.isTableAvailableAndInitialized();
    if (!ready) {
      throw new IOException("Table Namespace Manager not ready yet, try again later");
    }
    NamespaceDescriptor nsd = tableNamespaceManager.get(name);
    if (nsd == null) {
      throw new NamespaceNotFoundException(name);
    }
    return nsd;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

        try {
          for (Result result : scanner) {
            byte[] val =  CellUtil.cloneValue(result.getColumnLatest(
                HTableDescriptor.NAMESPACE_FAMILY_INFO_BYTES,
                HTableDescriptor.NAMESPACE_COL_DESC_BYTES));
            NamespaceDescriptor ns =
                ProtobufUtil.toNamespaceDescriptor(
                    HBaseProtos.NamespaceDescriptor.parseFrom(val));
            zkNamespaceManager.update(ns);
          }
        } finally {
View Full Code Here

Examples of org.apache.hadoop.hbase.NamespaceDescriptor

    boolean ready = tableNamespaceManager != null &&
        tableNamespaceManager.isTableAvailableAndInitialized();
    if (!ready) {
      throw new IOException("Table Namespace Manager not ready yet, try again later");
    }
    NamespaceDescriptor nsd = tableNamespaceManager.get(name);
    if (nsd == null) {
      throw new NamespaceNotFoundException(name);
    }
    return nsd;
  }
View Full Code Here

Examples of org.openbel.framework.ws.model.NamespaceDescriptor

                new ArrayList<NamespaceDescriptor>(headers.size());
        for (Map.Entry<String, NamespaceHeader> entry : headers.entrySet()) {
            Namespace ns = new Namespace();
            ns.setPrefix(entry.getValue().getNamespaceBlock().getKeyword());
            ns.setResourceLocation(entry.getKey());
            NamespaceDescriptor nsd = OBJECT_FACTORY.createNamespaceDescriptor();
            nsd.setNamespace(ns);
            nsd.setName(entry.getValue().getNamespaceBlock().getNameString());
            l.add(nsd);
        }
        return Collections.unmodifiableList(l);
    }
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.