Skip to main content

digging


When you say digging, 1st thought, most would think that you would plant a tree.

How about digging in DATA

1st Hadoop is a framework for processing large chunks of data, consisting of 2 modules

  • HDFS: Hadoop Distributed File System "for managing files".
  • Map-Reduce: hadoop methodology for processing data, where big chunks of data is divided into smaller chunks, each directed to the map fn to extract the needed data from, then the reduce fn where the actual processing we need takes place.
Hadoop work on the whole data, in one time,  so it is considered Batch processing.

2nd Hadoop eco-system
It would be annoying, that each time you wish to do a task, you write a java code for each of the map function, then the reduce function, compile the code.. etc. yet Hadoop eco-system provide us with tools that could do so for us

  1. PIG: a scripting language "that is translated in the background to a Map-Reduce job"
  2. Hive: A SQL like query language "also translated to a Map-Reduce job".
  3. Impala: a SQL like query language
  4. SQOOP: for transferring bulk data between Apache Hadoop and structured datastores "RDBM".
  5. HUE "Hadoop User Experience": is a web interface,has editors and browsers for SQL, Hive ..etc.
  6. OOZIE: for workflow
3rd YARN Yet Another Resource Negotiator
YARN was introduced in hadoop 2 release, for a better management for resources "Containers: Memory+Processor". Container is the context where our map and reduce function runs

  1. Resource Manager act as the CEO on all resources, he knows who is occupied and who is free
  2. Node Manager act as CXO under the CEO, knows whos is occupied and who is free on his only node.
  3. Container is our worker, context where map and reduce function resides.
i.e:
a Hadoop cluster constsist of many nodes "PCs", on each node there is a one node manager who control resources on this specific node, all node managers are managed by one resource manager.



Comments

Popular posts from this blog

The post-office & the postman

If we were to talk about old messaging system where there exist post-office, postman & mailbox. each component had its own functionality that we looked for when trying to visualize how those component where to interact in a computerized version. Simple scenario: Mail is added in mail box Postman arrive pick mails from his area mailboxes and take them to the post-office. Post-office organize mails by areas. Postman takes mails related to his area "distribute it in mailboxes". A person can go to post-office and  pick his own mail "in case of failure or wishes for early delivery". Mapping in a computerized version: Scenario: Observer design pattern which can use push or pull scenario, to inform those whom are registered for an event about its occurrence. Component: Post-Office = Message-Broker Post-Office-Box = Message-Storage-Validity Mailbox = Topic/Queue Postman !!! where's the postman ? Apache kafka act as a message broker which d

Container Storage

When traveling, we always think of our traveling bag. How our luggage will fit in it, yet have you ever thought, How your bag will be stored or transferred. I think data should be thought of same way. How it will be stored and how it will be retrieved. also sizing would matter, How much size data will occupy. Would it fit in one server or will we need a cluster. Many question would jump in your mind, yet storing and retrieving is the most general one. And so we'll move to ask SQL or NoSQL, I'd go for SQL in-case of having multiple entities communicating with each other, having multiple relation between one another. Yet if what I need is a storage unit, then NoSQL would be my choice. Have a look on the CAP theorem and how each of consistency, availability and partition tolerance will be satisfied using the DB engine you choose

Big data OverView

Could you define Beauty ? So is Big Data, it is itself a definition. you could ask what is its characteristics. Big data has n Vs dimension, where n often changes. Laney (2001) suggested that Volume, Variety, and Velocity as 3 Vs, then IBM added Veracity "realism" as the fourth V, later Oracle introduced Value. So how would we process this Big Data. I use hadoop & wish to learn spark. Hadoop is an opensource framework used for analyzing big chunk of data, its divide to 2 modules. map-reduce module and a file system module "HDFS". hadoop divide data to small chunk, start processing each chunk on its own, then start combining each chunk again "divide and conquer principle we used to do in merge sort", each chunk need a core & memory to run on. as a start I need to define location of my data, where would my data reside data would reside hadoop file system (HDFS) fs.defaultFS : hdfs://rserver:9000/ then I define my resources " number o