{"id":1876,"date":"2018-05-10T23:03:42","date_gmt":"2018-05-10T21:03:42","guid":{"rendered":"http:\/\/van-maanen.com\/?p=1876"},"modified":"2018-05-10T23:03:42","modified_gmt":"2018-05-10T21:03:42","slug":"what-is-inside-an-avro-file","status":"publish","type":"post","link":"http:\/\/archief.van-maanen.com\/?p=1876","title":{"rendered":"What is inside an AVRO file?"},"content":{"rendered":"<p>In the Hadoop world, one may encounter AVRO files quite often. AVRO file can be used in more or less the same way as text files. They can be read, stored and written out. However, the AVRO files are binary files that make them difficult to read. However, help is there. I downloaded the avro-tools-1.8.2.jar from http:\/\/apache.cs.uu.nl\/avro\/avro-1.8.2\/java\/. See: <a href=\"http:\/\/www.van-maanen.com\\wp-content\\uploads\\2018\\05\\avro-tools-1.8.2.jar\">avro-tools-1.8.2.jar<\/a>.<br \/>\nThis opens the possibility to investigate what is inside an AVRO file. Let us assume, we have this AVRO file <a href=\"http:\/\/www.van-maanen.com\\wp-content\\uploads\\2018\\05\\data.avro\">data.avro<\/a>. Next commands provides an overview of the possibilities:<\/p>\n<pre>\njava -jar avro-tools-1.8.2.jar\n<\/pre>\n<p>Then, the avro file is written to a json file:<\/p>\n<pre>java -jar avro-tools-1.8.2.jar tojson data.avro\n<\/pre>\n<p>or the scheme is provides with:<\/p>\n<pre>\njava -jar avro-tools-1.8.2.jar getschema data.avro\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In the Hadoop world, one may encounter AVRO files quite often. AVRO file can be used in more or less the same way as text files. They can be read, stored and written out. However, the AVRO files are binary files that make them difficult to read. However, help is there. I downloaded the avro-tools-1.8.2.jar [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1876","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/1876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1876"}],"version-history":[{"count":0,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/1876\/revisions"}],"wp:attachment":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1876"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}