...
This is a proposal for adding API to hive Hive which allows reading and writing using a Hadoop compatible API. Specifically, the interfaces being implemented are:
...
The classes will be named HiveApiInputFormat and HiveApiOutputFormat.
See HIVE-3752 for discussion of this proposal.
InputFormat (reading from Hive)
...
- Create a HiveInputDescription object.
- Fill it with information about the table to read from (with database, partition, columns).
- Initialize HiveApiInputFormat with the information.
- Go to town using HiveApiInputFormat with your Hadoop-compatible reading system.
...
- Create a HiveOutputDescription object.
- Fill it with information about the table to write to (with database and partition).
- Initialize HiveApiOutputFormat with the information.
- Go to town using HiveApiInputFormat HiveApiOutputFormat with your Hadoop-compatible reading writing system.