{"id":51783168,"url":"https://github.com/productiveanalytics/databricks_sandbox","last_synced_at":"2026-07-20T14:02:15.190Z","repository":{"id":368723975,"uuid":"569397004","full_name":"productiveAnalytics/databricks_sandbox","owner":"productiveAnalytics","description":"Databricks (Azure and AWS)","archived":false,"fork":false,"pushed_at":"2026-07-02T00:15:44.000Z","size":808,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-07-02T00:18:49.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/productiveAnalytics.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-22T18:26:35.000Z","updated_at":"2026-07-01T21:09:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/productiveAnalytics/databricks_sandbox","commit_stats":null,"previous_names":["productiveanalytics/databricks_sandbox"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/productiveAnalytics/databricks_sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/productiveAnalytics%2Fdatabricks_sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/productiveAnalytics%2Fdatabricks_sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/productiveAnalytics%2Fdatabricks_sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/productiveAnalytics%2Fdatabricks_sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/productiveAnalytics","download_url":"https://codeload.github.com/productiveAnalytics/databricks_sandbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/productiveAnalytics%2Fdatabricks_sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35688504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-07-20T14:02:10.773Z","updated_at":"2026-07-20T14:02:15.182Z","avatar_url":"https://github.com/productiveAnalytics.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sandbox for Databricks on AWS and Azure\n\n## Install Databricks CLI\n- ```python3 -m pip install databricks-cli```\n- Provide the token from Azure Databricks to the interactive CLI: ```databricks configure --token```\n- Test the CLI by checking for the secret: ```databricks secrets list-scopes```\n- Create secret scope: ```databricks secrets create-scope --scope myblob```\n- Create secret: ```databricks secrets put --scope myblob --key my_access_key```\n- Check ACL for secrets: ```databricks secrets list-acls --scope myblob```\n\n## Create folder and upload files (Note: databricks fs = dbfs)\n```\ndatabricks fs mkdirs dbfs:/Users/productive_analytics@databricks.com/data\ndatabricks fs cp ~/Dev/data/member_account_info.csv dbfs:/Users/productive_analytics@databricks.com/data/member_account_info.csv\ndatabricks fs ls dbfs:/Users/productive_analytics@databricks.com/data/\n```\n\n### In notebook\n```\n%python\ndisplay(dbutils.fs.ls('dbfs:/Users/productive_analytics@databricks.com/data/'))\n```\nwhich is same as\n```\n%fs\ndbfs ls /Users/productive_analytics@databricks.com/data/\n```\n\n### Then use the \"dbutils\" to read the secret \n```\n%python\nval azure_blob_storage_dns = \".blob.core.windows.net\"\n\nval storageAccountName = \"myazurestorageaccount\"\nval containerName = \"myconatainer\"\nval relativeFilePath = \"movies.csv\"\n\nval blobAccessKey = dbutils.secrets.get(scope=\"myblob\", key=\"my_access_key\")\nspark.conf.set(\n  \"fs.azure.account.key.\"+ storageAccountName + azure_blob_storage_dns,\n  blobAccessKey\n)\n\nval wasbs_path = \"wasbs://\"+ containerName + \"@\" + storageAccountName + azure_blob_storage_dns + \"/\" + relativeFilePath\n\nval movies_df = spark.read\n  .option(\"hader\", \"true\")\n  .csv(wasbs_path)\n  \ndisplay(movies_df, 10)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproductiveanalytics%2Fdatabricks_sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproductiveanalytics%2Fdatabricks_sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproductiveanalytics%2Fdatabricks_sandbox/lists"}