/** * Run test on configured codecs to make sure supporting libs are in place. * * @param c * @throws IOException */ private static void checkCodecs(final Configuration c) throws IOException { // check to see if the codec list is available: String[] codecs = c.getStrings("hbase.regionserver.codecs", (String[]) null); if (codecs == null) return; for (String codec : codecs) { if (!CompressionTest.testCompression(codec)) { throw new IOException( "Compression codec " + codec + " not supported, aborting RS construction"); } } }
private FixedFileTrailer readTrailer() throws IOException { FixedFileTrailer fft = new FixedFileTrailer(); long seekPoint = this.fileSize - FixedFileTrailer.trailerSize(); this.istream.seek(seekPoint); fft.deserialize(this.istream); // Set up the codec. this.compressAlgo = Compression.Algorithm.values()[fft.compressionCodec]; CompressionTest.testCompression(this.compressAlgo); return fft; }
/** * Run test on configured codecs to make sure supporting libs are in place. * @param c * @throws IOException */ private static void checkCodecs(final Configuration c) throws IOException { // check to see if the codec list is available: String[] codecs = c.getStrings("hbase.regionserver.codecs", (String[]) null); if (codecs == null) return; for (String codec : codecs) { if (!CompressionTest.testCompression(codec)) { throw new IOException("Compression codec " + codec + " not supported, aborting RS construction"); } } }
/** * Run test on configured codecs to make sure supporting libs are in place. * * @param c * @throws IOException */ private static void checkCodecs(final Configuration c) throws IOException { // check to see if the codec list is available: String[] codecs = c.getStrings("hbase.regionserver.codecs", (String[]) null); if (codecs == null) return; for (String codec : codecs) { if (!CompressionTest.testCompression(codec)) { throw new IOException("Compression codec " + codec + " not supported, aborting RS construction"); } } }
/** * Run test on configured codecs to make sure supporting libs are in place. * @param c * @throws IOException */ private static void checkCodecs(final Configuration c) throws IOException { // check to see if the codec list is available: String [] codecs = c.getStrings("hbase.regionserver.codecs", (String[])null); if (codecs == null) return; for (String codec : codecs) { if (!CompressionTest.testCompression(codec)) { throw new IOException("Compression codec " + codec + " not supported, aborting RS construction"); } } }
public static boolean getSupportness() { try { File temp = File.createTempFile("test", ".tmp"); CompressionTest.main(new String[] { "file://" + temp.toString(), "lzo" }); } catch (Exception e) { return false; } return true; }
private void checkCompression(final HColumnDescriptor hcd) throws IOException { if (!this.masterCheckCompression) return; CompressionTest.testCompression(hcd.getCompression()); CompressionTest.testCompression(hcd.getCompactionCompression()); }
private void checkCompressionCodecs() throws IOException { for (HColumnDescriptor fam : this.htableDescriptor.getColumnFamilies()) { CompressionTest.testCompression(fam.getCompression()); CompressionTest.testCompression(fam.getCompactionCompression()); } }
private void checkCompressionCodecs() throws IOException { for (HColumnDescriptor fam: this.htableDescriptor.getColumnFamilies()) { CompressionTest.testCompression(fam.getCompression()); CompressionTest.testCompression(fam.getCompactionCompression()); } }
private void checkCompression(final ColumnFamilyDescriptor hcd) throws IOException { if (!this.masterCheckCompression) return; CompressionTest.testCompression(hcd.getCompressionType()); CompressionTest.testCompression(hcd.getCompactionCompressionType()); }
private void checkCompressionCodecs() throws IOException { for (ColumnFamilyDescriptor fam: this.htableDescriptor.getColumnFamilies()) { CompressionTest.testCompression(fam.getCompressionType()); CompressionTest.testCompression(fam.getCompactionCompressionType()); } }