{"id":18758001,"url":"https://github.com/alexitc/challenge-etl","last_synced_at":"2025-09-06T08:42:18.683Z","repository":{"id":89957184,"uuid":"88210210","full_name":"AlexITC/challenge-etl","owner":"AlexITC","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-14T20:58:33.000Z","size":45424,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T11:22:29.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexITC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-13T22:05:22.000Z","updated_at":"2020-04-22T11:01:14.000Z","dependencies_parsed_at":"2023-05-30T16:45:57.696Z","dependency_job_id":null,"html_url":"https://github.com/AlexITC/challenge-etl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexITC/challenge-etl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexITC%2Fchallenge-etl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexITC%2Fchallenge-etl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexITC%2Fchallenge-etl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexITC%2Fchallenge-etl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexITC","download_url":"https://codeload.github.com/AlexITC/challenge-etl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexITC%2Fchallenge-etl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273879246,"owners_count":25184427,"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-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-11-07T17:45:05.214Z","updated_at":"2025-09-06T08:42:18.644Z","avatar_url":"https://github.com/AlexITC.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ODA-Hackathon\n\n## ETL Challenge\n\nThis project implements a very simple ETL.\n\nThere is a main application built with Scala and Spark which can receive a CSV file or a MySQL table and load it into a Hadoop File System.\n\nWhen the application is run, it detects if the model already exists to perform incremental updates.\n\n## Running\n\nBefore being able to run the application you will need to install some dependencies:\n- JDK 8\n- SBT\n\n### Importing CSV file\n\nRun the following command:\n```\nsbt \"run csv [output-location] [key] [csv-file-path]\"\n```\n\nWhere:\n- [output-location] is the location the imported data is stored\n- [key] is the name of the model that you are importing.\n- [csv-file-path] is the path to the csv file to import.\n\nFor example, run the following to import the example `check-in.csv` file:\n\n```\nsbt \"run csv hdfs://localhost:9000 checkin csv/check-in.csv\"\n```\n\n\n### Importing MySQL table\n\nRun the following command:\n```\nsbt \"run mysql [output-location] [table] [host] [port] [database] [user] [password]\"\n```\n\nWhere:\n- [output-location] is the location the imported data is stored\n- [table] is the name of the table that you are importing (it is handle the same way as key while importing a csv file).\n- [host] the mysql host.\n- [port] the mysql port.\n- [database] the mysql database where the table is located.\n- [user] the mysql user.\n- [password] the mysql password.\n\nFor example, run the following to import the example `person` table:\n\n```\nsbt \"run mysql hdfs://localhost:9000 person 127.0.1.1 33060 hackathon root root\"\n```\n\n## Development\n\nIn order to do development related tasks, you will need to also install `docker` and `docker-compose`.\n\nTo set up the environment, run `docker-compose up` and then `./fill_mysql.sh`.\n\nUse `sbt compile` to compile the application and run the application using root user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexitc%2Fchallenge-etl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexitc%2Fchallenge-etl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexitc%2Fchallenge-etl/lists"}