Introducing Apache Hadoop Services for Windows Azure
Join the DZone community and get the full member experience.Join For Free
the sql server team (@ sqlserver ) announced apache hadoop services for windows azure , a.k.a. apache hadoop on windows azure or hadooop on azure , at the profesional association for sql server (pass) summit in october 2011.
• update 8/23/2012 for service update 3 (su3) released to the web on 8/21/2012. su3 updated hadoop common, mapreduce, and hdfs to v1.0.1, hive to 0.8.1, pig to 0.9.3, and sqoop to 1.4.2. versions of mahout and cmu pegasus are unchanged from service update 2 (su2.) su3 delivers 3-node clusters, a rest management apis for hadoop job submission, progress inquiry and killing jobs, as well as a c# sdk v1.0, powershell cmdlets, and direct browser access to a cluster. stay tuned for a post to red gate software’s acloudyplace blog about su3.
update 4/2/2012: updated samples gallery screen capture in step 3 with five samples added in march 2012, apache sqoop as a top-level project, and links to sections from toc.
table of contents
- tutorial: running the 10gb graysort sample’s teragen job
- tutorial: running the 10gb graysort sample’s terasort job
- tutorial: running the 10gb graysort sample’s teravalidate job
- apache hadoop on windows azure resources
val fontama ’s availability of community technology preview (ctp) of hadoop based service on windows azure post of 12/14/2011 described apache hadoop on windows azure and how to obtain an invitation to the ctp:
in october at the pass summit 2011, microsoft announced expanded investments in “big data”, including a new apache hadoop™ based distribution for windows server and service for windows azure. in doing so, we extended microsoft’s leadership in bi and data warehousing, enabling our customers to glean and manage insights for any data, any size, anywhere. we delivered on our promise this past monday, when we announced the release of the community technology preview (ctp) of our hadoop based service for windows azure.
today this preview is available to an initial set of customers. those interested in joining the preview may request to do so by filling out this survey . microsoft will issue a code that will be used by the selected customers to access the hadoop based service. we look forward to making it available to the general public in early 2012. customers will gain the following benefits from this preview:
- breakthrough insights through integration microsoft excel and bi tools. this preview ships with a new hive add-in for excel that enables users to interact with data in hadoop from excel. with the hive add-in customers can issue hive queries to pull and analyze unstructured data from hadoop in the familiar excel. second, the preview includes a hive odbc driver that integrates hadoop with microsoft bi tools. this driver enables customers to integrate and analyze unstructured data from hadoop using award winning microsoft bi tools such as powerpivot and powerview. as a result customers can gain insight on all their data, including unstructured data stored in hadoop.
- elasticity , thanks to windows azure. this preview of the hadoop based service runs on windows azure, offering an elastic and scalable platform for distributed storage and compute.
we look forward to your feedback! learn more at www.microsoft.com/bigdata .
senior product manager
sql server product management
9. azurehadoop (or is it hadoopazure?): microsoft made available the preview bits for the hadoop distribution for windows azure in december 2011. the final release is slated for march 2012 . (microsoft and partner hortonworks are also working on an on-premises hadoop on windows server distribution .) hadoop on windows azure is interesting because it combines microsoft’s big-data plans and products with its cloud platform. the idea microsoft will be pushing in 2012 is that hadoop on azure will give users of microsoft’s analytics tools, including plain-old excel, a way to make use of the growing number of data sets stored on windows azure.
following is a step-by-step tutorial for running the first process of the 10gb graysort sample project:
1. after you receive your invitation code, navigate to https://www.hadooponazure.com/ and log-in with your windows live id and invitation code to open the account page with the request a new cluster content active. type a globally unique dns name for your cluster, hadoop1 for this example, select a cluster size (large for this example), and type a administrative username, password and password confirmation:
• update 8/23/2012 for su3: no-charge cluster size is now fixed at 3 nodes with 1.5 tb disk space with a five-day lifetime, non-renewable. users who want m
note : there is no charge for windows azure resources used during the ctp, so you don’t need to provide a credit card to create your cluster.
2. when your cluster is provisioned, the account page’s content changes to include tiles to create a new job as well as access your cluster by different methods:
note : you must renew your cluster every two days. it’s clear that that faux-metro uis are de rigueur at microsoft these days.
3. click the samples tile to open the account/sample gallery page, which describes the currently available samples as of 4/2/2012.
note : the above screen capture includes five additional sample projects added in march 2012. the apache software foundation asserted open source big data tool used for efficient bulk transfer between apache hadoop and structured datastores in an introduction to its the apache software foundation announces apache sqoop as a top-level project post of 4/2/2012.
4. the graysort mapreduce sample is a useful starting point because it runs in a reasonably short time (about 4 minutes with a large cluster), so click the 10gb graysort tile to open its account/sampledetails page, which describes the sample:
5. click the deploy to your cluster button to automatically populate text boxes with values for the teragen program, which generates 10 gb of data:
note : if you have tried sql azure labs’ microsoft codename “data numerics” ctp, you’ll notice that the process for creating the hadoop cluster and executing the first mapreduce job is much more automated that that described in my deploying “cloud numerics” sample applications to ... post of 1/28/2012 (updated 1/30/2012).
5. click the execute job button to run the teragen program, which initially displays this job info page:
6. after a few seconds, the program begins adding lines of debut output for the 50 maps in increments close to 1 percent:
note : hadoop automatically repairs the failures reported above, but it’s surprising that lines for 78 and 79 percent are missing.
7. when processing completes, click the left-arrow button to return to the account page with a tile for the teragen process added:
8. click the job history tile to display a summary of the preceding operation, which confirms successful completion with an exit code = ok cell:
9. click the left-arrow button to return to the main accounts page and click the manage cluster tile to display total storage used (30 gb) and other data source options (data market, windows azure blob storage, and amazon s3):
10. return to the account page, click the samples tile to open the account/samples page (see step 3), click the 10gb graysort tile to open its account/sampledetails page (see step 4), and click the deploy to your cluster button to open the create job page.
11. replace teragen with terasort in the parameter 1 text box, add a space and =dmapred.reduce.tasks=25 as a suffix to the existing parameter 2 text box value, and change the parameter 3 text box’s value to /example/data/10gb-sort-input /example/data/10gb-sort-out :
12. click the top, middle, and bottom arrow symbols adjacent to the three text boxes to validate the three parameter values:
note : if you receive invalid instead of ok for any of the parameter values and you’ve verified the content is identical to the above, click the garbage can symbols next to the offending text boxes to remove them, click add parameter button three times to recreate them, retype the parameter values shown above, and click the validation arrows again.
the final command should read:
hadoop jar hadoop-examples-0.20.203.1-snapshot.jar terasort "-dmapred.map.tasks=50 -dmapred.reduce.tasks=25" /example/data/10gb-sort-input /example/data/10gb-sort-out
13. click the execute job button to start the sorting process:
14. about 45 minutes after you start the job, the stdoutput and stderror results appear:
notice that reduce operations don’t occur until mapping is ~80% complete.
15. click the job history tile to display the summary for the terasort option:
16. return to the account page and click the manage cluster tile to determine the additional storage space used (10 gb) by the terasort operation:
17. return to the account page, click the samples tile to open the account/samples page (see step 3), click the 10gb graysort tile to open its account/sampledetails page (see step 4), and click the deploy to your cluster button to open the create job page.
18. delete the parameters and add three new empty parameters. type teravalidate in the parameter 1 text box, click the arrow to validate the parameter, type "-dmapred.map.tasks=50 -dmapred.reduce.tasks=25" in the parameter 2 text box value and validate it, and type /example/data/10gb-sort-out /example/data/10gb-sort-validate in the parameter 3 text box’s value and validate it:
the final command should read:
hadoop jar hadoop-examples-0.20.203.1-snapshot.jar teravalidate "-dmapred.map.tasks=50 -dmapred.reduce.tasks=25" /example/data/10gb-sort-out /example/data/10gb-sort-validate
19. click the execute job button to start the task:
20. after about five minutes, the task completes with the following (partial) debug output:
note : it’s not clear from the debug output above how to determine the result of the validation task.
21. return to the account page and click the job history tile to verify the outcome:
note : job #3’s failure was due to a mismatch in the input file name, as emphasized above.
wesley mcswain posted a apache hadoop based services for windows azure how to guide , which is similar (but not identical) to the above document, to the technet wiki on 12/13/2011. the latest update when this post was written was 1/18/2012. here’s its content:
this content is a work in progress for the benefit of the hadoop community. please feel free to contribute to this wiki page based on your expertise and experience with hadoop.
if you have any questions, please use the groups dl http://tech.groups.yahoo.com/group/hadooponazurectp/
- setup your hadoop cluster
- running sample jobs
- writing your own job and running on cluster
- job administration
- interactive console:
- tasks with hive on the interactive console
- remote desktop
- connecting windows azure blob storage from hadoop cluster
- open ports
- manage data
- import data from data market
- setup asv - use your windows azure blob storage account
- setup s3 - use your amazon s3 account
- apache hadoop on windows azure:
* does not include details for terasort or teravalidate options
- see apache hadoop on windows .
Published at DZone with permission of Roger Jennings. See the original article here.
Opinions expressed by DZone contributors are their own.