Skip to content Skip to sidebar Skip to footer

Read AVRO File Using Python

I have an AVRO file(created by JAVA) and seems like it is some kind of zipped file for hadoop/mapreduce, i want to 'unzip' (deserialize) it to a flat file. Per record per row. I l

Solution 1:

Try pip install python-snappy - make sure you have installed snappy first.


Solution 2:

The problem is that if there is no Xcode command line tools installed you cannot get snappy working. You can check by typing gcc at the command prompt to see if it is installed or not. If not then type xcode-select –-install to install it. Then installing python-snappy should work. Thanks Bin!


Solution 3:

wget http://www.us.apache.org/dist/avro/avro-1.7.5/java/avro-tools-1.7.5.jar

java -jar avro/avro-tools-1.7.5.jar tojson input.avro > input

More information refers here


Post a Comment for "Read AVRO File Using Python"