Created
April 10, 2012 20:52
-
-
Save maiha/2354394 to your computer and use it in GitHub Desktop.
Test a compress can be used or not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % hbase org.apache.hadoop.hbase.util.CompressionTest foo snappy | |
| 12/04/11 05:49:50 WARN snappy.LoadSnappy: Snappy native library is available | |
| 12/04/11 05:49:50 INFO util.NativeCodeLoader: Loaded the native-hadoop library | |
| 12/04/11 05:49:50 INFO snappy.LoadSnappy: Snappy native library loaded | |
| 12/04/11 05:49:50 INFO compress.CodecPool: Got brand-new compressor | |
| SUCCESS | |
| % hbase org.apache.hadoop.hbase.util.CompressionTest foo lzo | |
| 12/04/11 05:49:57 INFO lzo.GPLNativeCodeLoader: Loaded native gpl library | |
| 12/04/11 05:49:57 INFO lzo.LzoCodec: Successfully loaded & initialized native-lzo library [hadoop-lzo rev 6bb1b7f8b9044d8df9b4d2b6641db7658aab3cf8] | |
| 12/04/11 05:49:57 INFO compress.CodecPool: Got brand-new compressor | |
| SUCCESS | |
| % hbase org.apache.hadoop.hbase.util.CompressionTest foo gz | |
| 12/04/11 05:50:00 INFO util.NativeCodeLoader: Loaded the native-hadoop library | |
| 12/04/11 05:50:00 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library | |
| 12/04/11 05:50:00 INFO compress.CodecPool: Got brand-new compressor | |
| SUCCESS | |
| % hbase org.apache.hadoop.hbase.util.CompressionTest foo bzip2 | |
| Exception in thread "main" java.lang.IllegalArgumentException: Unsupported compression algorithm name: bzip2 | |
| at org.apache.hadoop.hbase.io.hfile.Compression.getCompressionAlgorithmByName(Compression.java:300) | |
| at org.apache.hadoop.hbase.io.hfile.HFile$Writer.<init>(HFile.java:287) | |
| at org.apache.hadoop.hbase.util.CompressionTest.doSmokeTest(CompressionTest.java:106) | |
| at org.apache.hadoop.hbase.util.CompressionTest.main(CompressionTest.java:134) | |
| # SEE ALSO: | |
| # http://hbase.apache.org/book/snappy.compression.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment