Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mesmacosta/hive-custom-hook
Example on how to implement a hive hook
https://github.com/mesmacosta/hive-custom-hook
hadoop hive hive-hook java metadata-extraction
Last synced: 2 days ago
JSON representation
Example on how to implement a hive hook
- Host: GitHub
- URL: https://github.com/mesmacosta/hive-custom-hook
- Owner: mesmacosta
- License: mit
- Created: 2019-09-27T21:34:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-14T20:42:33.000Z (almost 3 years ago)
- Last Synced: 2024-11-05T01:34:53.669Z (9 days ago)
- Topics: hadoop, hive, hive-hook, java, metadata-extraction
- Language: Java
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hive-custom-hook
Example on how to implement a hive hook## Build jar with dependencies
```bash
mvn assembly:assembly
```## Register your hook in Hive (Permanently, stays even if you restart)
```bash
# Open the file
vi /opt/hive/conf/hive-env.sh# At the end of the file, add the line and save:
export HIVE_AUX_JARS_PATH=/hive-custom-hook-1.0-SNAPSHOT-jar-with-dependencies.jar# Open the file
vi /opt/hive/conf/hive-site.xml# Add the tag before the closing configuration tag and save:
hive.exec.post.hookscom.medium.hive.hook.CustomHook# Restart your Hive server
```## Register your hook in Hive manually (For testing purposes, if your restart its cleared)
```bash
# Inside your Hive shell, runADD JAR /hive-custom-hook-1.0-SNAPSHOT-jar-with-dependencies.jar
set hive.exec.post.hooks=com.medium.hive.hook.CustomHook;```