hadoop-common-issues mailing list archives

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

     [ https://issues.apache.org/jira/browse/HADOOP-13216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Syed Akram resolved HADOOP-13216.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.8.0

same issue as https://issues.apache.org/jira/browse/HADOOP-13138 

> 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
>             Fix For: 2.8.0
>
>
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message