...
Info | ||
---|---|---|
| ||
Avro Data Stored in HBase ColumnsAs of Hive 0.9.0 the HBase integration requires at least HBase 0.92, earlier versions of Hive were working with HBase 0.89/0.90 |
...
"hbase.composite.key.factory" should be the fully qualified class name of a class implementing HBaseKeyFactory. See SampleHBaseKeyFactory2 for a fixed length example in the same package. This class must be on your classpath in order for the above example to work. TODO: place these in an accessible place; they're currently only in test code.
Avro Data Stored in HBase Columns
Info |
---|
As of Hive 0.14.0 with HIVE-6147 |
...
Code Block |
---|
CREATE EXTERNAL TABLE test_hbase_avro ROW FORMAT SERDE 'org.apache.hadoop.hive.hbase.HBaseSerDe' STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ( "hbase.columns.mapping" = ":key,test_col_fam:test_col", "test_col_fam.test_col.serialization.type" = "avro", "test_col_fam.test_col.avro.schema.url" = "hdfs://testcluster/tmp/schema.avsc") TBLPROPERTIES ( "hbase.table.name" = "hbase_avro_table", "hbase.mapred.output.outputtable" = "hbase_avro_table", "hbase.struct.autogenerate"="true"); |
...