Start an Avro server
The HBaseImpl is a glue object that connects Avro RPC calls to the HBase client API primarily defined in the HBaseAdmin and HTable objects.
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
The files were generated by running the commands:
java -jar avro-tools-1.4.1.jar idl hbase.avdl hbase.avpr java -jar avro-tools-1.4.1.jar compile protocol hbase.avpr $HBASE_HOME/src/main/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
Copyright © 2015 The Apache Software Foundation. All rights reserved.