[ http://issues.apache.org/jira/browse/HADOOP-538?page=comments#action_12438205 ] Dawid Weiss commented on HADOOP-538: ------------------------------------
Don't know if it's at all relevant, but if you must stick to pure Java and still want to avoid SUN's buggy compression streams, we have an implementation of inflater/deflater and GZIP wrappers on top of jzlib. It works just fine for us (although is about 50% slower compared to the JDK version, which, although buggy, has certain native implementations). http://svn.sourceforge.net/viewvc/carrot2/trunk/carrot2/components/carrot2-util-gzip/ Dawid > Implement a nio's 'direct buffer' based wrapper over zlib to improve > performance of java.util.zip.{De|In}flater as a 'custom codec' > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-538 > URL: http://issues.apache.org/jira/browse/HADOOP-538 > Project: Hadoop > Issue Type: Improvement > Affects Versions: 0.6.1 > Reporter: Arun C Murthy > Assigned To: Arun C Murthy > Fix For: 0.7.0 > > Attachments: HADOOP-538.patch, HADOOP-538_benchmarks.tgz > > > There has been more than one instance where java.util.zip's {De|In}flater > classes perform unreliably, a simple wrapper over zlib-1.2.3 (latest stable) > using java.nio.ByteBuffer (i.e. direct buffers) should go a long way in > alleviating these woes. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira