Package org.apache.hadoop.hbase.avro

Provides an HBase Avro service.

See: Description

Package org.apache.hadoop.hbase.avro Description

Provides an HBase Avro service. This directory contains an Avro interface definition file for an HBase RPC service and a Java server implementation.

What is Avro?

Avro is a data serialization and RPC system. For more, see the current specification.

Description

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.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.