hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Syed Akram (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-13216) Append SequenceFile with compressionType(NONE,RECORD,BLOCK) throws NullPointerException
Date Mon, 30 May 2016 14:07:12 GMT
Syed Akram created HADOOP-13216:
-----------------------------------

             Summary: Append SequenceFile with compressionType(NONE,RECORD,BLOCK) throws NullPointerException
                 Key: HADOOP-13216
                 URL: https://issues.apache.org/jira/browse/HADOOP-13216
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs
    Affects Versions: 2.7.2
            Reporter: Syed Akram


while Appending sequenceFile with any Compression Type (NONE, RECORD, BLOCK), getting writer


 SequenceFile.createWriter(conf, 
    			SequenceFile.Writer.file(path),
    			SequenceFile.Writer.compression(ctype),
    			SequenceFile.Writer.keyClass(Key.class),
    			SequenceFile.Writer.valueClass(value..class),
    			SequenceFile.Writer.appendIfExists(true),
    			);
Above throws the below exception when we try to append existing sequencefile with some compression
technique, 
java.lang.NullPointerException
	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:1118)
	at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:273)
	at SequenceFileTest.getWriter(SequenceFileTest.java:342)
	at SequenceFileTest.writeContent(SequenceFileTest.java:429)
	at SequenceFileTest.<init>(SequenceFileTest.java:83)
	at SequenceFileTest.main(SequenceFileTest.java:565)

If i use below writer 
SequenceFile.createWriter(conf, 
    			SequenceFile.Writer.file(path),
    			SequenceFile.Writer.keyClass(keyClass),
    			SequenceFile.Writer.valueClass(keyClass),
    			SequenceFile.Writer.appendIfExists(append)
    			); 
without any compressiontype, then it works fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org


Mime
View raw message