https://github.com/myui/hivejdbcstoragehandler
https://github.com/myui/hivejdbcstoragehandler
hive java jdbc storagehandler
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/myui/hivejdbcstoragehandler
- Owner: myui
- License: apache-2.0
- Created: 2013-06-13T07:41:55.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-07-15T05:59:13.000Z (almost 11 years ago)
- Last Synced: 2024-11-01T08:50:41.825Z (over 1 year ago)
- Topics: hive, java, jdbc, storagehandler
- Language: Java
- Size: 16 MB
- Stars: 21
- Watchers: 5
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HiveJdbcStorageHandler
======================
This project is still work in progress intending to submit a patch for [HIVE-1555](https://issues.apache.org/jira/browse/HIVE-1555).
BASIC USAGE
-----------
hive --auxpath /home/myui/tmp/jdbc-storagehandler.jar;
```sql
CREATE EXTERNAL TABLE pg_model_sample90p (
feature INT,
weight DOUBLE
)
STORED BY 'org.apache.hadoop.hive.jdbc.storagehandler.JdbcStorageHandler'
TBLPROPERTIES (
"mapred.jdbc.driver.class"="org.postgresql.Driver",
"mapred.jdbc.url"="jdbc:postgresql://host01/kddtrack2",
"mapred.jdbc.username"="myui",
"mapred.jdbc.input.table.name"="model_sample90p"
);
select * from pg_model_sample90p limit 10;
```