{"id":13569548,"url":"https://github.com/mesmacosta/hive-custom-hook","last_synced_at":"2025-07-19T11:04:18.567Z","repository":{"id":45423067,"uuid":"211405157","full_name":"mesmacosta/hive-custom-hook","owner":"mesmacosta","description":"Example on how to implement a hive hook","archived":false,"fork":false,"pushed_at":"2021-12-14T20:42:33.000Z","size":11,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-05T01:34:53.669Z","etag":null,"topics":["hadoop","hive","hive-hook","java","metadata-extraction"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mesmacosta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-27T21:34:58.000Z","updated_at":"2023-08-28T03:49:36.000Z","dependencies_parsed_at":"2022-08-19T03:20:26.156Z","dependency_job_id":null,"html_url":"https://github.com/mesmacosta/hive-custom-hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmacosta%2Fhive-custom-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmacosta%2Fhive-custom-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmacosta%2Fhive-custom-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmacosta%2Fhive-custom-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mesmacosta","download_url":"https://codeload.github.com/mesmacosta/hive-custom-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224192121,"owners_count":17271186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hadoop","hive","hive-hook","java","metadata-extraction"],"created_at":"2024-08-01T14:00:41.297Z","updated_at":"2024-11-11T23:33:58.050Z","avatar_url":"https://github.com/mesmacosta.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# hive-custom-hook\nExample on how to implement a hive hook\n\n## Build jar with dependencies\n```bash\nmvn assembly:assembly\n```\n\n## Register your hook in Hive (Permanently, stays even if you restart)\n```bash\n# Open the file\nvi /opt/hive/conf/hive-env.sh\n\n# At the end of the file, add the line and save:\nexport HIVE_AUX_JARS_PATH=/hive-custom-hook-1.0-SNAPSHOT-jar-with-dependencies.jar\n\n# Open the file\nvi /opt/hive/conf/hive-site.xml\n\n# Add the tag before the closing configuration tag \u003c/configuration\u003e and save:\n\u003cproperty\u003e\u003cname\u003ehive.exec.post.hooks\u003c/name\u003e\u003cvalue\u003ecom.medium.hive.hook.CustomHook\u003c/value\u003e\u003c/property\u003e\n\n# Restart your Hive server\n```\n\n## Register your hook in Hive manually (For testing purposes, if your restart its cleared)\n```bash\n# Inside your Hive shell, run\n\nADD JAR /hive-custom-hook-1.0-SNAPSHOT-jar-with-dependencies.jar\nset hive.exec.post.hooks=com.medium.hive.hook.CustomHook;\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesmacosta%2Fhive-custom-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesmacosta%2Fhive-custom-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesmacosta%2Fhive-custom-hook/lists"}