{"id":20113526,"url":"https://github.com/cloudacademy/azure-data-lake-gen2","last_synced_at":"2025-03-02T18:45:11.597Z","repository":{"id":77791367,"uuid":"234138410","full_name":"cloudacademy/azure-data-lake-gen2","owner":"cloudacademy","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-29T14:42:33.000Z","size":85,"stargazers_count":8,"open_issues_count":0,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-13T06:08:20.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"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/cloudacademy.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":"2020-01-15T17:47:00.000Z","updated_at":"2024-03-15T01:54:49.000Z","dependencies_parsed_at":"2023-03-12T02:04:47.535Z","dependency_job_id":null,"html_url":"https://github.com/cloudacademy/azure-data-lake-gen2","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/cloudacademy%2Fazure-data-lake-gen2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fazure-data-lake-gen2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fazure-data-lake-gen2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fazure-data-lake-gen2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudacademy","download_url":"https://codeload.github.com/cloudacademy/azure-data-lake-gen2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241557118,"owners_count":19981877,"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-11-13T18:24:44.023Z","updated_at":"2025-03-02T18:45:11.575Z","avatar_url":"https://github.com/cloudacademy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Azure Data Lake Storage Gen2\nThis file contains text you can copy and paste for the examples in Cloud Academy's _Using Azure Data Lake Storage Gen2_ course.  \n\n### Introduction\n[Azure Free Trial](https://azure.microsoft.com/free) \n\n### Ingesting Data\n```\nwget https://raw.githubusercontent.com/cloudacademy/azure-data-lake-gen2/master/radio.json\n```\n```\nazcopy login\n```\n```\nazcopy copy 'radio.json' 'https://cadatalakegen2.dfs.core.windows.net/datalake/radio.json'\n```\n\n### Accessing ADLS from Azure Databricks\n```\nabfss://datalake@cadatalakegen2.dfs.core.windows.net\n```\n```\nconfigs = {\n\"fs.azure.account.auth.type\": \"CustomAccessToken\",\n\"fs.azure.account.custom.token.provider.class\": spark.conf.get(\"spark.databricks.passthrough.adls.gen2.tokenProviderClassName\")\n}\n\ndbutils.fs.mount(\nsource = \"abfss://datalake@cadatalakegen2.dfs.core.windows.net/\",\nmount_point = \"/mnt/datalake\",\nextra_configs = configs)\n```\n\n### Analyzing Data with Azure Databricks\n```\n%sql\nDROP TABLE IF EXISTS radio;\nCREATE TABLE radio\nUSING json\nOPTIONS (\npath \"/mnt/datalake/radio.json\"\n)\n```\n```\n%sql\nSELECT * from radio\n```\n\n### Summary\n[Azure Data Lake Storage Gen2 documentation](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-introduction)  \n[Azure Databricks documentation](https://docs.microsoft.com/azure/azure-databricks/)  \nsupport@cloudacademy.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacademy%2Fazure-data-lake-gen2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudacademy%2Fazure-data-lake-gen2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacademy%2Fazure-data-lake-gen2/lists"}