{"id":13798378,"url":"https://github.com/sjywying/hive-mysql-storage-handler","last_synced_at":"2026-01-20T02:32:50.175Z","repository":{"id":69213887,"uuid":"75930133","full_name":"sjywying/hive-mysql-storage-handler","owner":"sjywying","description":"hive mysql storage handler","archived":false,"fork":false,"pushed_at":"2016-12-19T08:11:24.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-02-14T04:33:42.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjywying.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-08T11:05:08.000Z","updated_at":"2024-02-14T04:33:42.860Z","dependencies_parsed_at":null,"dependency_job_id":"f238ca36-e973-4a40-8e37-ca39620bb562","html_url":"https://github.com/sjywying/hive-mysql-storage-handler","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/sjywying%2Fhive-mysql-storage-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjywying%2Fhive-mysql-storage-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjywying%2Fhive-mysql-storage-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjywying%2Fhive-mysql-storage-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjywying","download_url":"https://codeload.github.com/sjywying/hive-mysql-storage-handler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253883121,"owners_count":21978611,"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":[],"created_at":"2024-08-04T00:00:42.858Z","updated_at":"2026-01-20T02:32:50.145Z","avatar_url":"https://github.com/sjywying.png","language":"Java","funding_links":[],"categories":["Storage Hadndlers"],"sub_categories":[],"readme":"# hive-mysql-storage-handler\nhive-mysql-storage-handler\n\n后续会对此代码进行简化\n\n\n注意点：\n    1. 部署hive的节点和所有的DataNode节点需要授予数据库访问权限，由于此代码吞掉了部分异常信息造成排查困难。\n\n\n\n\n\n参考\n    https://github.com/qubole/Hive-JDBC-Storage-Handler\n    hadoop-mapreduce-client-core.jar   org.apache.hadoop.mapreduce.lib.db\n\n\n问题:\n    mysql 类型为：tinyint(1)  mysql-connector-j 会将此类型映射为java中的boolean 所以hive需要用boolean进行接收，但hive中会存储false/true\n    mysql 类型为：bigint unsigned  mysql-connector-j 会将此类型映射为java中的java.math.BigInteger会出现类型转换异常\n            解决办法：\n                修改hive-serde中JavaLongObjectInspector.java中41， 35行进行instanceof判断\n                修改hive-service中Column.java  347行 同样进行instanceof判断","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjywying%2Fhive-mysql-storage-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjywying%2Fhive-mysql-storage-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjywying%2Fhive-mysql-storage-handler/lists"}