Avro is a data serialization and RPC system. For more, see the current specification.
The HBase API is defined in the
file hbase.genavro. A server-side implementation of the API is in
org.apache.hadoop.hbase.avro.AvroServer
. The generated interfaces,
types, and RPC utility files are checked into SVN under the
org.apache.hadoop.hbase.avro.generated
directory.
The files were generated by running the commands:
java -jar avro-tools-1.3.2.jar genavro hbase.genavro hbase.avpr java -jar avro-tools-1.3.2.jar compile protocol hbase.avro $HBASE_HOME/src/java
The 'avro-tools-x.y.z.jar' jarfile is an Avro utility, and it is distributed as a part of the Avro package. Additionally, specific language runtime libraries are apart of the Avro package. A version of the Java runtime is listed as a dendency in Maven.
To start AvroServer, use:
./bin/hbase avro start [--port=PORT]The default port is 9090.
To stop, use:
./bin/hbase-daemon.sh stop avro