What input are you trying to use the codec on? You cannot use it on a file input or any other input that eats the newline from each line before sending it to the codec. This is explained in the documentation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.