{"id":19604551,"url":"https://github.com/prateek/wasb-parcel","last_synced_at":"2025-02-26T16:18:48.596Z","repository":{"id":19502618,"uuid":"22749077","full_name":"prateek/wasb-parcel","owner":"prateek","description":null,"archived":false,"fork":false,"pushed_at":"2014-08-16T21:13:39.000Z","size":1376,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T08:38:21.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/prateek.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}},"created_at":"2014-08-08T07:06:18.000Z","updated_at":"2014-08-08T07:07:25.000Z","dependencies_parsed_at":"2022-08-23T16:20:21.915Z","dependency_job_id":null,"html_url":"https://github.com/prateek/wasb-parcel","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/prateek%2Fwasb-parcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek%2Fwasb-parcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek%2Fwasb-parcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek%2Fwasb-parcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prateek","download_url":"https://codeload.github.com/prateek/wasb-parcel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240887775,"owners_count":19873539,"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-11T09:37:16.830Z","updated_at":"2025-02-26T16:18:48.535Z","avatar_url":"https://github.com/prateek.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"HADOOP WASB Parcel\n==================\n\nThis repository provides a parcel(https://github.com/cloudera/cm_ext) to install the required jars for Azure's Blob ( `wasb` ) bindings for Hadoop, to be used with Cloudera Manager.\n\n# Install Steps\n0. Install Prerequisites: `cloudera/cm_ext`\n```sh\ncd /tmp\ngit clone https://github.com/cloudera/cm_ext\ncd cm_ext/validator\nmvn install\n```\n\n1. Create parcel:\n```sh\ncd /tmp\ngit clone http://github.com/prateek/wasb-parcel\ncd wasb-parcel\nPOINT_VERSION=5 VALIDATOR_DIR=/tmp/cm_ext ./build-parcel.sh\ncd build\npython -m SimpleHTTPServer 14641\n```\n\n2. The commands above create a local directory and webserver to serve this parcel as a repository. Follow these [detailed instructions](http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_create_local_parcel_repo.html) to add the repository to Cloudera Manager.\n\n3. Install, Activate \u0026 Distribute the HADOOP_WASB parcel.\n\n4. Add the following to the `core-site.xml` safety-valve for the HDFS service:\n```xml\n\u003cproperty\u003e\n  \u003cname\u003efs.azure.account.key.[STORAGE_ACCOUNT].blob.core.windows.net\u003c/name\u003e\n  \u003cvalue\u003e[SECRET_KEY]\u003c/value\u003e\n\u003c/property\u003e\n```\n\n*Note* Multiple such entries may be added\n\n5. Deploy Client Configs and Restart the cluster.\n\n6. Example usage:\n```sh\n# HDFS access for CLI or M/R\n$ hdfs dfs -ls wasb://[CONTAINER]@[STORAGE_ACCOUNT].blob.core.windows.net/\n\n# Create sample directory\n$ seq 1 10000 | paste - - - - - - - - -d',' \u003e sample.txt\n$ hdfs dfs -mkdir wasb://[CONTAINER]@[STORAGE_ACCOUNT].blob.core.windows.net/sample-dir\n$ hdfs dfs -put sample.txt wasb://[CONTAINER]@[STORAGE_ACCOUNT].blob.core.windows.net/sample-dir\n\n# Access using Hive\n$ hive \u003c\u003c EOF\ncreate external table wasb_sample\n( a1 int, a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int )\nrow format delimited\nfields terminated by ','\nlocation 'wasb://[CONTAINER]@[STORAGE_ACCOUNT].blob.core.windows.net/sample-dir';\nEOF\n$ hive -e 'select count(*) from wasb_sample'\n\n# Access using Spark\n$ spark-shell \u003c\u003cEOF\nval textFile = sc.textFile( \"wasb://[CONTAINER]@[STORAGE_ACCOUNT].blob.core.windows.net/sample-dir\" )\ntextFile.count()\nEOF\n```\n\n*Note* This does **NOT** currently work with `Impala`.\n\n# References\nThis is a simplified distribution mechanism for the great work done by the Azure team: [HADOOP-9629](https://issues.apache.org/jira/browse/HADOOP-9629)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateek%2Fwasb-parcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprateek%2Fwasb-parcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateek%2Fwasb-parcel/lists"}