org.apache.hadoop.hbase.regionserver.wal.IndexedHLogReader Java Examples

The following examples show how to use org.apache.hadoop.hbase.regionserver.wal.IndexedHLogReader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestIndexManagementUtil.java    From phoenix with Apache License 2.0 5 votes vote down vote up
/**
 * We cannot support WAL Compression with the IndexedHLogReader
 * @throws Exception
 */
@Test(expected = IllegalStateException.class)
public void testCompressedWALWithHLogReader() throws Exception {
  Configuration conf = new Configuration(false);
  conf.setBoolean(HConstants.ENABLE_WAL_COMPRESSION, true);
  // works with WALEditcodec
  conf.set(IndexManagementUtil.HLOG_READER_IMPL_KEY, IndexedHLogReader.class.getName());
  IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(conf);
}
 
Example #2
Source File: TestIndexManagementUtil.java    From phoenix with Apache License 2.0 5 votes vote down vote up
/**
 * We cannot support WAL Compression with the IndexedHLogReader
 * @throws Exception
 */
@Test(expected = IllegalStateException.class)
public void testCompressedWALWithHLogReader() throws Exception {
  Configuration conf = new Configuration(false);
  conf.setBoolean(HConstants.ENABLE_WAL_COMPRESSION, true);
  // works with WALEditcodec
  conf.set(IndexManagementUtil.HLOG_READER_IMPL_KEY, IndexedHLogReader.class.getName());
  IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(conf);
}
 
Example #3
Source File: TestIndexManagementUtil.java    From phoenix with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * We cannot support WAL Compression with the IndexedHLogReader
 * @throws Exception
 */
@Test(expected = IllegalStateException.class)
public void testCompressedWALWithHLogReader() throws Exception {
  Configuration conf = new Configuration(false);
  conf.setBoolean(HConstants.ENABLE_WAL_COMPRESSION, true);
  // works with WALEditcodec
  conf.set(IndexManagementUtil.HLOG_READER_IMPL_KEY, IndexedHLogReader.class.getName());
  IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(conf);
}