Hands-On Hadoop Tutorial

Reviews
Seems broken
Rated 1 out of 10

January 20, 2009 (10 months 9 days ago)
It suddenly stop after slide 13

Shared by: techmaster
Stats
views:
446
rating:
1(1)
reviews:
1
posted:
10/29/2008
language:
English
pages:
0
Hands-On Hadoop Tutorial Chris Sosa Wolfgang Richter May 23, 2008 General Information  Hadoop uses HDFS, a distributed file system based on GFS, as its shared filesystem  HDFS architecture divides files into large chunks (~64MB) distributed across data servers HDFS has a global namespace  General Information (cont’d)  Provided a script for your convenience – Run source /localtmp/hadoop/setupVars from centurtion064 – Changes all uses of {somePath}/command to just command  Goto http://www.cs.virginia.edu/~cbs6n/hadoop for web access. These slides and more information are also available there. Once you use the DFS (put something in it), relative paths are from /usr/{your usr id}. E.G. if your id is tb28 … your “home dir” is /usr/tb28  Master Node  Hadoop currently configured with centurion064 as the master node Master node – Keeps track of namespace and metadata about items – Keeps track of MapReduce jobs in the system  Slave Nodes  Centurion064 also acts as a slave node Slave nodes – Manage blocks of data sent from master node – In terms of GFS, these are the chunkservers   Currently centurion060 is also another slave node Hadoop Paths  Hadoop is locally “installed” on each machine – Installed location is in /localtmp/hadoop/hadoop0.15.3 – Slave nodes store their data in /localtmp/hadoop/hadoop-dfs (this is automatically created by the DFS) – /localtmp/hadoop is owned by group gbg (someone in this group must administer this or a cs admin)  Files are divided into 64 MB chunks (this is configurable) Starting / Stopping Hadoop  For the purposes of this tutorial, we assume you have run the setupVars from earlier start-all.sh – starts all slave nodes and master node  stop-all.sh – stops all slave nodes and master node  Using HDFS (1/2)  hadoop dfs – – – – – – – – – – – – – – – – [-ls ] [-du ] [-cp ] [-rm ] [-put ] [-copyFromLocal ] [-moveFromLocal ] [-get [-crc] ] [-cat ] [-copyToLocal [-crc] ] [-moveToLocal [-crc] ] [-mkdir ] [-touchz ] [-test -[ezd] ] [-stat [format] ] [-help [cmd]] Using HDFS (2/2)   Want to reformat? Easy – hadoop namenode –format  Basically we see most commands look similar – hadoop “some command” options – If you just type hadoop you get all possible commands (including undocumented ones – hooray) To Add Another Slave  This adds another data node / job execution site to the pool – Hadoop dynamically uses filesystem underneath it – If more space is available on the HDD, HDFS will try to use it when it needs to  Modify the slaves file – In centurion064:/localtmp/hadoop/hadoop0.15.3/conf – Copy code installation dir to newMachine:/localtmp/hadoop/hadoop-0.15.3 (very small) – Restart Hadoop Configure Hadoop  Can configure in {$installation dir}/conf – hadoop-default.xml for global – hadoop-site.xml for site specific (overrides global) That’s it for Configuration! Real-time Access

Related docs
Vim Hands-On Tutorial
Views: 74  |  Downloads: 9
MAGICC/SCENGEN Hands On Tutorial
Views: 69  |  Downloads: 4
Outline of the Hands-on Tutorial
Views: 112  |  Downloads: 1
Hands-On Tutorial Instructions
Views: 15  |  Downloads: 2
Instructions for GenMAPP Hands-on Tutorial
Views: 0  |  Downloads: 0
Instructions for GenMAPP Hands-on Tutorial
Views: 23  |  Downloads: 1
HICSS06 SWS Tutorial Hands-on Session
Views: 3  |  Downloads: 0
TUTORIAL
Views: 129  |  Downloads: 9
SPSS tutorial
Views: 1018  |  Downloads: 95
Manga Tutorial
Views: 1045  |  Downloads: 61
Tutorial Outline
Views: 39  |  Downloads: 0
Tutorial Program
Views: 85  |  Downloads: 2
Other docs by techmaster
3dfx Interactive Ammendments and By laws
Views: 164  |  Downloads: 1
Permission Request to Use Copyrighted Material
Views: 341  |  Downloads: 16
BILL OF SALE
Views: 224  |  Downloads: 3
Employee Complaint Procedures Re Sarbanes Oxley
Views: 283  |  Downloads: 4
Certificate of Employee of the Month
Views: 1418  |  Downloads: 17
Board Resolution Approving S Corp Election
Views: 195  |  Downloads: 3
Special Power of Attorney
Views: 801  |  Downloads: 31
wannamaker-all
Views: 251  |  Downloads: 2
Sample Open-Ended Promissory Note
Views: 2511  |  Downloads: 20
US Labor Dept Poster Re Polygraph Testing
Views: 208  |  Downloads: 2
The Journal of Abnormal Psychology
Views: 445  |  Downloads: 17
Credit-Ask A Vendor For Credit Letter
Views: 297  |  Downloads: 6