@Override public String getHBaseVersion() { return delegate.getHBaseVersion(); }
private static boolean coprocessorScanWorks(RegionCoprocessorEnvironment env) { return (VersionUtil.encodeVersion(env.getHBaseVersion()) >= COPROCESSOR_SCAN_WORKS); }
@Override public void initialize(RegionCoprocessorEnvironment env) { this.env = env; Configuration conf = env.getConfiguration(); // Install handler that will attempt to disable the index first before killing the region // server conf.setIfUnset(IndexWriter.INDEX_FAILURE_POLICY_CONF_KEY, PhoenixIndexFailurePolicy.class.getName()); this.builder = KeyValueBuilder.get(env.getHBaseVersion()); }
@Override public long getVersion() { // The first 3 bytes of the long is used to encoding the HBase version as major.minor.patch. // The next 4 bytes of the value is used to encode the Phoenix version as major.minor.patch. long version = MetaDataUtil.encodeHBaseAndPhoenixVersions(this.getEnvironment().getHBaseVersion()); // The last byte is used to communicate whether or not mutable secondary indexing // was configured properly. RegionCoprocessorEnvironment env = getEnvironment(); version = MetaDataUtil.encodeMutableIndexConfiguredProperly( version, IndexManagementUtil.isWALEditCodecSet(env.getConfiguration())); return version; }
if (env.getConfiguration().getBoolean(CHECK_VERSION_CONF_KEY, true)) { String errormsg = Indexer.validateVersion(env.getHBaseVersion(), env.getConfiguration()); if (errormsg != null) { throw new FatalIndexBuildingFailureException(errormsg);
if (env.getConfiguration().getBoolean(CHECK_VERSION_CONF_KEY, true)) { String errormsg = Indexer.validateVersion(env.getHBaseVersion(), env.getConfiguration()); if (errormsg != null) { IOException ioe = new IOException(errormsg);
@Override public void setup(IndexWriter parent, RegionCoprocessorEnvironment env, String name) { this.env = env; Configuration conf = env.getConfiguration(); setup(IndexWriterUtils.getDefaultDelegateHTableFactory(env), ThreadPoolManager.getExecutor( new ThreadPoolBuilder(name, conf).setMaxThread(NUM_CONCURRENT_INDEX_WRITER_THREADS_CONF_KEY, DEFAULT_CONCURRENT_INDEX_WRITER_THREADS).setCoreTimeout( INDEX_WRITER_KEEP_ALIVE_TIME_CONF_KEY), env), parent, env); this.kvBuilder = KeyValueBuilder.get(env.getHBaseVersion()); }
@Override public void setup(IndexWriter parent, RegionCoprocessorEnvironment env, String name) { this.env = env; Configuration conf = env.getConfiguration(); setup(IndexWriterUtils.getDefaultDelegateHTableFactory(env), ThreadPoolManager.getExecutor( new ThreadPoolBuilder(name, conf).setMaxThread(NUM_CONCURRENT_INDEX_WRITER_THREADS_CONF_KEY, DEFAULT_CONCURRENT_INDEX_WRITER_THREADS).setCoreTimeout( INDEX_WRITER_KEEP_ALIVE_TIME_CONF_KEY), env), parent, env); this.kvBuilder = KeyValueBuilder.get(env.getHBaseVersion()); }
@Override public String getHBaseVersion() { return delegate.getHBaseVersion(); }
@Override public String getHBaseVersion() { return delegate.getHBaseVersion(); }
"Old client is not compatible when" + " system tables are upgraded to map to namespace"))); long version = MetaDataUtil.encodeVersion(env.getHBaseVersion(), config);
private static boolean coprocessorScanWorks(RegionCoprocessorEnvironment env) { return (VersionUtil.encodeVersion(env.getHBaseVersion()) >= COPROCESSOR_SCAN_WORKS); }
private static boolean coprocessorScanWorks(RegionCoprocessorEnvironment env) { return (VersionUtil.encodeVersion(env.getHBaseVersion()) >= COPROCESSOR_SCAN_WORKS); }
if (env.getConfiguration().getBoolean(CHECK_VERSION_CONF_KEY, true)) { String errormsg = Indexer.validateVersion(env.getHBaseVersion(), env.getConfiguration()); if (errormsg != null) { throw new FatalIndexBuildingFailureException(errormsg);
@Override public void setup(IndexWriter parent, RegionCoprocessorEnvironment env, String name) { this.env = env; Configuration conf = env.getConfiguration(); setup(IndexWriterUtils.getDefaultDelegateHTableFactory(env), ThreadPoolManager.getExecutor( new ThreadPoolBuilder(name, conf).setMaxThread(NUM_CONCURRENT_INDEX_WRITER_THREADS_CONF_KEY, DEFAULT_CONCURRENT_INDEX_WRITER_THREADS).setCoreTimeout( INDEX_WRITER_KEEP_ALIVE_TIME_CONF_KEY), env), parent, env); this.kvBuilder = KeyValueBuilder.get(env.getHBaseVersion()); }
@Override public void setup(IndexWriter parent, RegionCoprocessorEnvironment env, String name) { this.env = env; Configuration conf = env.getConfiguration(); setup(IndexWriterUtils.getDefaultDelegateHTableFactory(env), ThreadPoolManager.getExecutor( new ThreadPoolBuilder(name, conf).setMaxThread(NUM_CONCURRENT_INDEX_WRITER_THREADS_CONF_KEY, DEFAULT_CONCURRENT_INDEX_WRITER_THREADS).setCoreTimeout( INDEX_WRITER_KEEP_ALIVE_TIME_CONF_KEY), env), parent, env); this.kvBuilder = KeyValueBuilder.get(env.getHBaseVersion()); }
@Override public void setup(IndexWriter parent, RegionCoprocessorEnvironment env, String name) { this.env = env; Configuration conf = env.getConfiguration(); setup(IndexWriterUtils.getDefaultDelegateHTableFactory(env), ThreadPoolManager.getExecutor( new ThreadPoolBuilder(name, conf).setMaxThread(NUM_CONCURRENT_INDEX_WRITER_THREADS_CONF_KEY, DEFAULT_CONCURRENT_INDEX_WRITER_THREADS).setCoreTimeout( INDEX_WRITER_KEEP_ALIVE_TIME_CONF_KEY), env), parent, env); this.kvBuilder = KeyValueBuilder.get(env.getHBaseVersion()); }
@Override public void setup(IndexWriter parent, RegionCoprocessorEnvironment env, String name) { this.env = env; Configuration conf = env.getConfiguration(); setup(IndexWriterUtils.getDefaultDelegateHTableFactory(env), ThreadPoolManager.getExecutor( new ThreadPoolBuilder(name, conf).setMaxThread(NUM_CONCURRENT_INDEX_WRITER_THREADS_CONF_KEY, DEFAULT_CONCURRENT_INDEX_WRITER_THREADS).setCoreTimeout( INDEX_WRITER_KEEP_ALIVE_TIME_CONF_KEY), env), parent, env); this.kvBuilder = KeyValueBuilder.get(env.getHBaseVersion()); }
"Old client is not compatible when" + " system tables are upgraded to map to namespace"))); long version = MetaDataUtil.encodeVersion(env.getHBaseVersion(), config);
"Old client is not compatible when" + " system tables are upgraded to map to namespace"))); long version = MetaDataUtil.encodeVersion(env.getHBaseVersion(), config);