Package org.kiji.schema

Examples of org.kiji.schema.KijiNotInstalledException


    try {
      final ProtocolVersion dataVersion = systemTable.getDataVersion();
      return dataVersion;
    } catch (TableNotFoundException e) {
      final KijiURI kijiURI = systemTable.getKijiURI();
      throw new KijiNotInstalledException(
          String.format("Kiji instance %s is not installed.", kijiURI),
          kijiURI);
    }
  }
View Full Code Here


    final String tableName =
        KijiManagedHBaseTableName.getSystemTableName(kijiURI.getInstance()).toString();
    try {
      return factory.create(conf, tableName);
    } catch (TableNotFoundException tnfe) {
      throw new KijiNotInstalledException(
          String.format("Kiji instance %s is not installed.", kijiURI),
          kijiURI);
    }
  }
View Full Code Here

    mSchemaHashTable = CassandraTableName.getSchemaHashTableName(instanceURI);
    mSchemaIdTable = CassandraTableName.getSchemaIdTableName(instanceURI);
    mCounterTable = CassandraTableName.getSchemaCounterTableName(instanceURI);

    if (!mAdmin.tableExists(mSchemaHashTable)) {
      throw new KijiNotInstalledException("Schema hash table not installed.", instanceURI);
    }
    if (!mAdmin.tableExists(mSchemaIdTable)) {
      throw new KijiNotInstalledException("Schema ID table not installed.", instanceURI);
    }
    if (!mAdmin.tableExists(mCounterTable)) {
      throw new KijiNotInstalledException("Schema counter table not installed.", instanceURI);
    }
    mZKClient = ZooKeeperUtils.getZooKeeperClient(instanceURI.getZooKeeperEnsemble());
    mZKLock = new ZooKeeperLock(mZKClient, ZooKeeperUtils.getSchemaTableLock(mInstanceURI));

    final State oldState = mState.getAndSet(State.OPEN);
View Full Code Here

    mInstanceURI = Preconditions.checkNotNull(instanceURI);
    mAdmin = Preconditions.checkNotNull(admin);
    mTable = CassandraTableName.getSystemTableName(instanceURI);

    if (!mAdmin.tableExists(mTable)) {
      throw new KijiNotInstalledException("System table not installed.", mInstanceURI);
    }

    final State oldState = mState.getAndSet(State.OPEN);
    Preconditions.checkState(oldState == State.UNINITIALIZED,
        "Cannot open SystemTable instance in state %s.", oldState);
View Full Code Here

    mInstanceURI = instanceURI;
    mLayoutTable = CassandraTableName.getMetaLayoutTableName(instanceURI);
    mKeyValueTable = CassandraTableName.getMetaKeyValueTableName(instanceURI);

    if (!admin.tableExists(mLayoutTable)) {
      throw new KijiNotInstalledException("Meta layout table not installed.", instanceURI);
    }
    if (!admin.tableExists(mKeyValueTable)) {
      throw new KijiNotInstalledException("Meta Key Value table not installed.", instanceURI);
    }

    mTableLayoutDatabase = new CassandraTableLayoutDatabase(mInstanceURI, admin, schemaTable);
    mTableKeyValueDatabase = new CassandraTableKeyValueDatabase(mInstanceURI, admin);
    final State oldState = mState.getAndSet(State.OPEN);
View Full Code Here

TOP

Related Classes of org.kiji.schema.KijiNotInstalledException

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.