{"id":15010013,"url":"https://github.com/marco-gallegos/sqoopit","last_synced_at":"2025-10-03T19:30:30.834Z","repository":{"id":57470657,"uuid":"242210869","full_name":"marco-gallegos/sqoopit","owner":"marco-gallegos","description":"A python package that lets you sqoop into HDFS/Hive/HBase data from RDBMS using sqoop","archived":false,"fork":true,"pushed_at":"2020-04-18T08:16:41.000Z","size":1778,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T19:39:14.535Z","etag":null,"topics":["hadoop","hbase","hdfs","hive","py","python","python3","sqoop","sqoop-import"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lucafon/pysqoop","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marco-gallegos.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":"2020-02-21T19:02:43.000Z","updated_at":"2020-04-18T07:42:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marco-gallegos/sqoopit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marco-gallegos/sqoopit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Fsqoopit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Fsqoopit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Fsqoopit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Fsqoopit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marco-gallegos","download_url":"https://codeload.github.com/marco-gallegos/sqoopit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Fsqoopit/sbom","scorecard":{"id":617924,"data":{"date":"2025-08-11","repo":{"name":"github.com/marco-gallegos/sqoopit","commit":"282c84515c5bf9ae576c9b54455bfb91b668ad0c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T04:28:34.012Z","repository_id":57470657,"created_at":"2025-08-21T04:28:34.012Z","updated_at":"2025-08-21T04:28:34.012Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277551105,"owners_count":25837600,"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","status":"online","status_checked_at":"2025-09-29T02:00:09.175Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","hbase","hdfs","hive","py","python","python3","sqoop","sqoop-import"],"created_at":"2024-09-24T19:29:32.708Z","updated_at":"2025-10-03T19:30:30.542Z","avatar_url":"https://github.com/marco-gallegos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqoop-it\nA python package that lets you sqoop into HDFS/Hive/HBase data from RDBMS using sqoop.\n\n[![PyPI](https://img.shields.io/badge/pip-v.20.0.1-blue.svg)](https://github.com/marco-gallegos/sqoopit)\n![Python](https://img.shields.io/badge/python-3.5+,2.7-green.svg)\n[![MIT license](http://img.shields.io/badge/license-MIT-orange.svg)](http://opensource.org/licenses/MIT)\n\nTo install the package via pip, run \n\n`\npip install sqoopit\n`\n\nYou can then use the package using\n\n```python\nfrom sqoopit.SqoopImport import Sqoop \nsqoop = Sqoop(help=True)\ncode = sqoop.perform_import()\n```\n\nThis will print the output of the command\n\n`\nsqoop --help\n`\n\nto your stoud; e.g.\n\n```\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.6.3.0-235/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: Found binding in [jar:file:/usr/hdp/2.6.3.0-235/accumulo/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]\n18/08/13 20:25:13 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.6.3.0-235\nusage: sqoop import [GENERIC-ARGS] [TOOL-ARGS]\n\nCommon arguments:\n   --connect \u003cjdbc-uri\u003e                                       Specify JDBC\n                                                              connect\n                                                              string\n   --connection-manager \u003cclass-name\u003e                          Specify\n                                                              connection\n                                                              manager\n                                                              class name\n   ...\n```\n\n#### Useful Resources\n\n* HBase Client for Python : [happybase](https://github.com/python-happybase/happybase/blob/master/doc/index.rst)\n\n\n#### A more concrete example\nThe following code\n```python\nsqoop = Sqoop(fs='hdfs://remote-cluster:8020', hive_drop_import_delims=True, fields_terminated_by='\\;',\nenclosed_by='\\'\"\\'', escaped_by='\\\\\\\\', null_string='\\'\\'', null_non_string='\\'\\'',\ntable='sample_table', target_dir='hdfs://remote-cluster/user/hive/warehouse/db/sample_table',\ndelete_target_dir=True, connect='jdbc:oracle:thin:@//your_ip:your_port/your_schema',\nusername='user', password='pwd', num_mappers=2,\nbindir='/path/to/bindir/folder')\n\nsqoop.perform_import()\n```\n\nwill execute the following command\n\n`\nsqoop import -fs hdfs://remote-cluster:8020 --hive-drop-import-delims  --fields-terminated-by \\; --enclosed-by \\'\\\"\\' --escaped-by \\\\\\\\ --null-string \\'\\' --null-non-string \\'\\' --table sample_table --target-dir hdfs://remote-cluster/user/hive/warehouse/db/sample_table --delete-target-dir  --connect jdbc:oracle:thin:@//your_ip:your_port/your_schema --username user --password pwd --num-mappers 2 --bindir /path/to/bindir/folder\n`\n\n#### Conditional Building\n\nUse the `set_param`, `unset_param` function to build conditioned sqoop imports.\n\n```python\n\nsqoop = Sqoop(table=\"MyTable\")\n\nsqoop.set_param(param=\"--connect\", value=\"jdbc:a_valid_string\")\n\nif taget_is_hbase :\n   added_table = sqoop.set_param(param=\"--hbase-table\", value=\"MyTable\")\n   added_key = sqoop.set_param(param=\"--hbase-row-key\", value=\"Id_MyTable\")\n   if added_table and added_key:\n      print(\"all params added :D\")\n\nsqoop.perform_import()\n```\n\n\n### Doing\n\n* handle sqoop jobs\n* more tests coverage\n\n\n### TODOs\n\n* add missing parameters\n\n\nOriginal Idea By [Luca Fontanili](https://github.com/lucafon/pysqoop)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-gallegos%2Fsqoopit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarco-gallegos%2Fsqoopit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-gallegos%2Fsqoopit/lists"}