Regarding error executing command

avro

#1

Hai,
I am getting the following error given in the screenshot attached when i execute the command to convert avro file to json file.can you help me with this?


#2

@karthick_raja,

Your command is fine, no issues. I have already tried it. Might be issue with file. Please try with another file.


#3

@karthick_raja:

Just tried same now and found no issues.
If you still face this issue, can you logoff & login then try?

[vanampudi@gw01 departments]$ avro-tools tojson part-m-00000.avro
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.li b.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in fo.
{“department_id”:{“int”:2},“department_name”:{“string”:“Fitness”}}
{“department_id”:{“int”:3},“department_name”:{“string”:“Footwear”}}
{“department_id”:{“int”:4},“department_name”:{“string”:“Apparel”}}
{“department_id”:{“int”:5},“department_name”:{“string”:“Golf”}}
{“department_id”:{“int”:6},“department_name”:{“string”:“Outdoors”}}
{“department_id”:{“int”:7},“department_name”:{“string”:“Fan Shop”}}

Thanks
Venkat