De-Serializing OGG Replicat Generated AVRO Data Throws Exception in thread "main" java.io.IOException: Not a data file.

(Doc ID 2406861.1)

Last updated on JUNE 07, 2018

Applies to:

Oracle GoldenGate Application Adapters - Version 12.3 and later
Information in this document applies to any platform.

Symptoms

Oracle GoldenGate for Big Data

Version 12.3.1.1.2

Oracle GoldenGate Delivery
Version 12.3.0.1.0 OGGCORE_OGGADP.12.3.0.1.0GA_PLATFORMS_171014.1003
Linux, x64, 64bit (optimized), Generic on Oct 14 2017 11:40:31

gg.handler.hdfs.type=hdfs

gg.handler.hdfs.format=avro_row

Trying to de-serialize Replicat generated AVRO file leads to following error

$ java -jar /opt/cloudera/parcels/CDH/jars/avro-tools-1.7.6-cdh5.8.3.jar tojson SRCOGG.GAME_RHDFS_2018-04-11_13-57-52.191.txt
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.io.IOException: Not a data file.
at org.apache.avro.file.DataFileStream.initialize(DataFileStream.java:105)
at org.apache.avro.file.DataFileStream.<init>(DataFileStream.java:84)
at org.apache.avro.tool.DataFileReadTool.run(DataFileReadTool.java:71)
at org.apache.avro.tool.Main.run(Main.java:85)
at org.apache.avro.tool.Main.main(Main.java:74)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms