Avro – getting it work

When you read about Hadoop, you come across AVRO. This is a mechanism to exchange data via streams and it is named after the famous British aircraft industry that amongst many other types, delivered the Lancaster that helped to liberate Europe. AVRO can be implemented in many languages, amongst them PHP. Before continuing let us run a programme with AVRO included.
PHP can be run as a webpage. One could also run it from the command line, but running as a webpage is probably the easiest way around. One need to install PHP but this is abundantly described. I installed PHP as an executable that can be run from CGI with IIS. It can be verified that PHP runs smoothly is one is able to run a so-called phpinfo() command. Examples can be be found on the internet.This phpinfo() is often used as a „HelloWorld“ application. It is easy to program and it allows the user to verify that PHP is working.
One continues by installing AVRO which is a set of PHP programmes that can be installed in the web root directory.
Other things must be changed as well before using PHP. One must include a DLL that must also be mentioned in the php.ini file. Somewhere in the PHP.ini, one must include a line like extension=php_gmp.dll to have it being used by PHP.
As one need to write a file, the user priviliges need to be set accordingly.Untitled
I think, one might give it a go. Try to run this page . If one sees something like

 from file: array ( 'member_id' => 1392, 'member_name' => 'Jose', ) array ( 'member_id' => 1642, 'member_name' => 'Maria', ) from binary string: array ( 'member_id' => 1392, 'member_name' => 'Jose', ) array ( 'member_id' => 1642, 'member_name' => 'Maria', )

, one is on the right track.
What does this programme do? First, it creates an avro file. This is a binary file that contains the structure and the data. This file looks like:

In a subsequent step, the file is then written to screen. This example shows that avro files are a nice alternative to ordinary textfiles as the files contain the definition of the attributes.