Thursday, 11 November 2010

Quick Reference: Hadoop Tools Ecosystem

Quick Reference: Hadoop Tools Ecosystem: "
Just a quick reference of the continuously growing Hadoop tools ecosystem.

Hadoop


The Apache Hadoop project develops open-source software for reliable, scalable, distributed computing.

hadoop.apache.org


HDFS


A distributed file system that provides high throughput access to application data.

hadoop.apache.org/hdfs/


MapReduce


A software framework for distributed processing of large data sets on compute clusters.


Amazon Elastic MapReduce


Amazon Elastic MapReduce is a web service that enables businesses, researchers, data analysts, and developers to easily and cost-effectively process vast amounts of data. It utilizes a hosted Hadoop framework running on the web-scale infrastructure of Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Simple Storage Service (Amazon S3).

aws.amazon.com/elasticmapreduce/


Cloudera Distribution for Hadoop (CDH)


Cloudera’s Distribution for Hadoop (CDH) sets a new standard for Hadoop-based data management platforms.

cloudera.com/hadoop


ZooKeeper


A high-performance coordination service for distributed applications. ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.

hadoop.apache.org/zookeeper/


HBase


A scalable, distributed database that supports structured data storage for large tables.

hbase.apache.org


Avro


A data serialization system. Similar to ☞ Thrift and ☞ Protocol Buffers.

avro.apache.org


Sqoop


Sqoop (“SQL-to-Hadoop”) is a straightforward command-line tool with the following capabilities:

  • Imports individual tables or entire databases to files in HDFS
  • Generates Java classes to allow you to interact with your imported data
  • Provides the ability to import from SQL databases straight into your Hive data warehouse
cloudera.com/downloads/sqoop/


Flume


Flume is a distributed, reliable, and available service for efficiently moving large amounts of data soon after the data is produced.

archive.cloudera.com/cdh/3/flume/


Hive


Hive is a data warehouse infrastructure built on top of Hadoop that provides tools to enable easy data summarization, adhoc querying and analysis of large datasets data stored in Hadoop files. It provides a mechanism to put structure on this data and it also provides a simple query language called Hive QL which is based on SQL and which enables users familiar with SQL to query this data. At the same time, this language also allows traditional map/reduce programmers to be able to plug in their custom mappers and reducers to do more sophisticated analysis which may not be supported by the built-in capabilities of the language.

hive.apache.org


Pig


A high-level data-flow language and execution framework for parallel computation. Apache Pig is a platform for analyzing large data sets that consists of a high-level language for expressing data analysis programs, coupled with infrastructure for evaluating these programs. The salient property of Pig programs is that their structure is amenable to substantial parallelization, which in turns enables them to handle very large data sets.

pig.apache.org


Oozie


Oozie is a workflow/coordination service to manage data processing jobs for Apache Hadoop. It is an extensible, scalable and data-aware service to orchestrate dependencies between jobs running on Hadoop (including HDFS, Pig and MapReduce).

yahoo.github.com/oozie


Cascading


Cascading is a Query API and Query Planner used for defining and executing complex, scale-free, and fault tolerant data processing workflows on a Hadoop cluster.

cascading.org


Cascalog


Cascalog is a tool for processing data on Hadoop with Clojure in a concise and expressive manner. Cascalog combines two cutting edge technologies in Clojure and Hadoop and resurrects an old one in Datalog. Cascalog is high performance, flexible, and robust.

github.com/nathanmarz/cascalog


HUE


Hue is a graphical user interface to operate and develop applications for Hadoop. Hue applications are collected into a desktop-style environment and delivered as a Web application, requiring no additional installation for individual users.

archive.cloudera.com/cdh3/hue

You can read more about HUE on ☞ Cloudera blog.


Chukwa


Chukwa is a data collection system for monitoring large distributed systems. Chukwa is built on top of the Hadoop Distributed File System (HDFS) and Map/Reduce framework and inherits Hadoop’s scalability and robustness. Chukwa also includes a flexible and powerful toolkit for displaying, monitoring and analyzing results to make the best use of the collected data.

incubator.apache.org/chukwa/


Mahout


A Scalable machine learning and data mining library.

mahout.apache.org


Integration with Relational databases


Integration with Data Warehouses


The only list I have is MapReduce, RDBMS, and Data Warehouse, but I’m afraid it is quite a bit old. So maybe someone could help me update it.

Anything else? Once we validate this list, I’ll probably have to move it on the NoSQL reference


Original title and link: Quick Reference: Hadoop Tools Ecosystem (NoSQL databases © myNoSQL)

"

MongoDB Replica Sets

MongoDB Replica Sets: "
Even if MongoDB replica sets ☞ official documentation is quite good, that doesn’t mean more coverage of the subject is not going to be useful. So, this is kind of everything you need to read about MongoDB replica sets.




Let’s start with Kristina Chodorow’s series on MongoDB replica sets:

  • ☞ Replica sets part1: Master-Slave is so 2009
    This post shows how to do the “Hello, world” of replica sets. I was going to start with a post explaining what they are, but coding is more fun than reading. For now, all you have to know is that they’re master-slave with automatic failover.
  • ☞ Replica sets part2: what are replica sets
    Replica sets are basically just master-slave with automatic failover.

    So, you have a pool of servers with one primary (the master) and N secondaries (slaves). If the primary crashes or disappears, the other servers will hold an election to choose a new primary.
  • ☞ Part 3: Replica sets in the wild:
    […] you might want to migrate dev servers into production, add new slaves, prioritize servers, change things on the fly… that’s what this post covers.
  • ☞ Sharding and replica sets illustrated:



    Let’s say we drop a tray. CRASH! With this setup, your data is safe (as long as you were using w) and the cluster loses no functionality (in terms of reads and writes).

    Chunks will not be able to migrate (because one of the config servers is down), so a shard may become bloated if the config server is down for a very long time.

    Network partitions and losing two server are bigger problems, so you should have more than three servers if you actually want great availability.



If Kristina’s first post covered MongoDB replica sets setup, BoxedIce guys ☞ have also a post on the topic:


You can have any number of members in a replica set and your data will exist in full on each member of the set. This allows you to have servers distributed across data centres and geographies to ensure full redundancy. One server is aways the primary to which reads and writes are sent, with the other members being secondary and accepting reads only. In the event of the primary failing, another member will take over automatically.


plus a video showing the setup:




And nothing is complete without videos, so here is Dwight Merriman’s talk on MongoDB replication and replica sets:




Last, but not least you can find a replica sets demo video on ☞ 10gen blog.


Original title and link: MongoDB Replica Sets (NoSQL databases © myNoSQL)

"

Tuesday, 9 November 2010

Presentation:Machine Learning: A Love Story

Presentation:Machine Learning: A Love Story: "Hilary Mason presents the history of machine learning covering some of the most significant developments taking place over the last two decades, especially the fundamental math and algorithmic tools employed. She also exemplifies how machine learning is used by bit.ly to discover various statistical information about users. By Hilary Mason"

Introducing S4

Stream of Words

Motivation

Data streams abound in the world of Big Data: Twitter, search queries, stock quotes, website analytics, sensor data to name a few. Yet, popular approaches for data processing at this scale are based on MapReduce: a batch-oriented framework; in other cases, there are proprietary stream processing systems, or ad-hoc solutions for particular problems.

We understand that the greatest value from data is sometimes derived by processing it as soon as we get it. S4 is a general-purpose open platform built from the ground up to process data streams — we mean process data as it arrives, one event at a time; not buffered in arbitrary batches.

Application

In search advertising we aim to select, rank, filter, and place ads in ways that benefit users, publishers, and advertisers. In other words, we want to show as few ads as possible that are highly relevant and generate the most clicks and revenue. To accomplish all this we build machine learning models that accurately predict how users will click on ads. To improve the accuracy of the click prediction we process recent search queries, clicks, and timing information. We call this personalization. To scale we need to process thousands of search queries per second from potentially millions of users per day. This problem is what motivated us to build a software platform to process events in the same way that MapReduce and Hadoop try to address the scalability problem in batch processing, and the NoSQL projects try to address the scalability problem for data storage.

Who we are

Leo Neumeyer led the search ad optimization group and became the main internal champion and early designer of the project. Bruce Robbins has been the key software engineer who coded 80% of the system and is a key designer. Many scientists including Anish Nair, Anand Kesari, Stefan Schroedl, Erick Cantu-Paz, and Jon Malkin implemented algorithms for personalization, click prediction, and online parameter optimization that drove the design of the project over several iterations. Kishore Gopalakrishna designed and implemented most of the communication layer as a stand alone component on top of ZooKeeper. Ben Reed gave us lots of great advice and support and JC Mao was the executive who supported making S4 an open source project. Finally, Gil Yehuda, Director of Open Source at Yahoo!, is a great open source evangelist who knows how to get things done.

We learned by trying to solve real world problems and we are just starting to understand the use cases and the challenges that need to be solved. For this reason we decided to make S4 open source in October 2010 after incubating it for a couple of years. It feels like in one day we got more feedback from the community than in the last two years combined, pretty amazing. Please remember that this is an early stage release, it has a long road[map] ahead and we need to work on documentation. We challenge people passionate about stream processing to get involved and help us grow the project. The best way to get started is to play with the sample application and/or build your own. The forum is a great place to ask questions and give us feedback.

Thursday, 28 October 2010

Running the Show: Configuration Management with Chef: RailsConf 2009 - O'Reilly Conferences, May 04 - 07, 2009, Las Vegas, NV!

RUNNING THE SHOW: CONFIGURATION MANAGEMENT WITH CHEF

Edd Dumbill (O'Reilly Media, Inc. )
Tutorial
Location: Pavilion 2 - 3

Few completed Rails apps are architecturally simple. As soon as you grow, you find yourself using multiple subsystems and machines to scale. Cloud-based environments such as EC2 make this an attractive and cost-efficient option, but create new headaches in configuration management.

Chef is the latest development in open source systems integration, a powerful Ruby-based framework for managing servers in a way that integrates tightly with your applications and infrastructure. As developers become increasingly responsible for operations, Chef lets you manage your servers by writing code, not running commands.

In this tutorial we cover:

  • Your first Chef cookbook
  • Chef concepts such as nodes, cookbooks and nodes
  • Anatomy of a cookbook
  • Storing and versioning your cookbooks
  • What happens when you run Chef
  • Using Chef’s Web UI
  • Configuring per-instance data using JSON
  • Lightweight configuration with Chef Solo
  • What comes for free: managing Apache, Ubuntu, MySQL and friends
  • Chef for Rails apps
  • Setting up your Rails environment
  • Deploying your application: Chef vs Capistrano

Wednesday, 27 October 2010

From Zero to the Cloud with Todd Deshane and Patrick F. Wilbur � Linux, Todd, Open, LISA, Patrick, Cloud � USENIX Update

From Zero to the Cloud with Todd Deshane and Patrick F. Wilbur � Linux, Todd, Open, LISA, Patrick, Cloud � USENIX Update
Todd Deshane: Sure. I’m a recent graduate from Clarkson University, where I got a Ph.D in Engineering Science; I’ve been a member of xen.orgcommunity for quite sometime, basically ever since it came out.
Patrick Wilbur: I’m a graduate student, Ph.D in Computer Science at Clarkson University, I’ve been involved with Xen for a couple of years, and this is related to the research that I’ve been doing at the university, and with Todd we are both co-authors of the book “Running Xen: A Hands-on Guide to the Art of Virtualization”.

MD: You mentioned your book; I’m curious how did you guys end up writing a book? Can you talk about your experience in doing that?
TD: Since we were involved with Xen in our research and published a paper right after Xen came out, the publishing company thought that we were the best ones to write this book external to the group at Cambridge that developed Xen, so they contacted our advisor Jeanna Matthews and a group of people from our lab were interested to work on this and write the book. This is how it all started.

MD:There are seven co-authors to your book; how did you collaborate with so many people working on this?
TD: It is a lot of work to write a book. We spent a lot of time working on this, and split the chapters based on the expertise each one of us had in different areas. Of course later we had to get together and read each others chapters and make it a uniform book. This was challenging as there was quite a large group of people involved.
PW: As Todd mentioned, it was definitely not easy, but it was really a good experience, working with a great group of people.

MD: You have a training class this year at LISA “Introduction to the Open Source Xen Hypervisor”; can you briefly tell us what will this cover; also how is it different from your previous trainings at LISA?
TD: Me and Patrick presented first this material at LISA’08, and this was at that time heavily based on the book, because the book itself is a hands-on guide for new users, for people that don’t have experience with Xen and we would basically take you from zero to running virtualization in your datacenter. This year we updated the content to the current times and extended it to the cloud technologies where people are using virtualization to run their public and private clouds, and many times a hybrid mode between them. Also we’ve added the Xen Cloud Platform that is also new; we’re still going from zero to virtualization, but this time we are going from zero to the cloud.
PW: Also, I would like to add that one of the neat things of this version of our class will bring in new technologies like the cloud computing, and this is relevant even for system administrators that have only a few machines (even if they don’t administer a cloud it is very valuable to understand it as consumers) but also for the enterprise administrators that use virtualization a lot even if they don’t use the term cloud, but will find platforms like Xen Cloud Platform very interesting.


MD: You guys also have a BOF:
“Open Source and Open Standards-based Cloud Computing”. Can you talk about that a little?
TD: What is great about the BOF is that it will be an extension of our tutorial. This means that if you were in our session you will be in the right spot; if you haven’t, still you’re in a great spot because we are going to cover the basics for the Xen Cloud Platform again to make sure everyone is on the same page. Also we are going to have Ben Pfaff from Nicira Networks and he’s going to talk about Open vSwitch and what they are doing to take network virtualization to the next level; Jason Faulkner from Rackspace will talk about OpenStack and their efforts to create an open standards for cloud computing.

MD:You mentioned OpenStack; another similar project would be Eucalyptus. Such abstractions are built on top of the virtualization layer and hide many things to the administrator; is it still relevant to have a basic Xen understanding and knowledge?
TD: The main reason why we started teaching about Xen it was because it was difficult to setup and use, it wasn’t polished, it wasn’t quite user friendly; it was not the product it is today. Nowadays people spend less time getting it to work, and the focus is on different levels of the stack and using them, and we’ve updated our tutorial to take this into consideration. We still teach you all the things you need in case you have to debug it.

MD: We’ve seen a lot of traction related to KVM; many distros have switched to KVM instead of Xen. Why do you think that happened?
TD: The basic reason why KVM got popular quickly is because it is a simple Linux virtualization system that is integrated into the kernel itself. It relies on Linux and QEMU and it is not a stand-alone hypervisor. The reason why many Linux distributions currently have KVM support and not necessarily Xen support is that KVM is fully integrated in the mainline kernel (it comes with the Linux kernel). Xen domain0 support (Linux as the Xen management domain is in progress), but Xen (the hypervisor) is not intended to be included in Linux, but is a stand-alone hypervisor, which allows for various management domains to run on top of it (for example, Linux, Solaris, BSD). Linux distributions will (and many already are) starting to add Xen support back into the their standard distributions.


MD: You guys will be busy with a class and a BOF; I’m curious if you come to LISA just for teaching those, or if you stay around for other talks?
PW: I will be there for the whole week and will attend several different sessions. Actually I will be sticking around after LISA also for CHIMIT 2010, that will be located in the same area as this is a good opportunity to attend both conferences.
TD: Unfortunately myself, I will not be able to stay all the week, but I would have liked to been able to attend some of the many great talks, but I will not be able to do it this year.

MD: What other interesting things are you working on these days?
TD: I’m doing some interesting work these days in a consulting project, where we are taking their Xen deployment more into the cloud dynamic type of environment: hadoop clustering, Xen Cloud Platform, OpenStack, puppet are things that we are working on, setting up hybrid cloud deployments with public clouds like amazon, rackspace, and private clouds. I’m also working on a very interesting research project where we are trying to combine an organization’s mission space with cyber space. Finally, I’ve been spending more time helping the xen.org community and I will be taking on the role of Technology Evangelist for Citrix/Xen.org. We are also looking to hire a new community manager for xen.org.
PW: I’m looking into the usable security space, where human computer interaction meets security and actually I’m working with virtualization to segregate users applications into different privilege spaces and isolate various applications. Related to this I’m also hosting another BOF at the end of the week on Thursday“Human-Computer Interaction: Experiences and Difficulties in IT Management, Security, and Privacy” that should be interesting to meet and exchange ideas with different people in the usable security space.


Tuesday, 26 October 2010

Google search index splits with MapReduce • The Register

Google search index splits with MapReduce

Welds BigTable to file system 'Colossus'
Exclusive Google Caffeine — the remodeled search infrastructure rolled out across Google's worldwide data center network earlier this year — is not based on MapReduce, the distributed number-crunching platform that famously underpinned the company's previous indexing system. As the likes of Yahoo!, Facebook, and Microsoft work to duplicate MapReduce through the open source Hadoop project, Google is moving on.
According to Eisar Lipkovitz, a senior director of engineering at Google, Caffeine moves Google's back-end indexing system away from MapReduce and onto BigTable, the company's distributed database platform.
As Google's Matt Cutts told us last year, the new search infrastructure also uses an overhaul of the company's GFS distributed file system. This has been referred to as Google File System 2 or GFS2, but inside Google, Lipkovitz says, it's known as Colossus.
Caffeine expands on BigTable to create a kind of database programming model that lets the company make changes to its web index without rebuilding the entire index from scratch. "[Caffeine] is a database-driven, Big Table–variety indexing system," Lipkovitz tells The Reg, saying that Google will soon publish a paper discussing the system. The paper, he says, will be delivered next month at the USENIX Symposium on Operating Systems Design and Implementation (OSDI).
Before the arrival of Caffeine, Google built its search index — an index of the entire web — using MapReduce. In essence, the index was created by a sequence of batch operations. The MapReduce platform "maps" data-crunching tasks across a collection of distributed machines, splitting them into tiny sub-tasks, before "reducing" the results into one master calculation.
MapReduce would receive the epic amounts of webpage data collected by Google's crawlers, and it would crunch this down to the links and metadata needed to actually search these pages. Among so many other things, it would determine each site's PageRank, the site's relationship to all the other sites on the web.
"We would start with a very large [collection of data] and we would process it," Lipkovitz tells us. "Then, eight hours or so later, we'd get the output of this whole process and we'd copy it to our serving systems. And we did this continuously."
But MapReduce didn't allow Google to update its index as quickly as it would like. In the age of the "real-time" web, the company is determined to refresh its index within seconds. Over the last few years, MapReduce has received ample criticism from the likes of MIT database guru Mike Stonebraker, and according to Lipkovitz, Google long ago made "similar observations." MapReduce, he says, isn't suited to calculations that need to occur in near real-time.
MapReduce is a sequence of batch operations, and generally, Lipkovitz explains, you can't start your next phase of operations until you finish the first. It suffers from "stragglers," he says. If you want to build a system that's based on series of map-reduces, there's a certain probability that something will go wrong, and this gets larger as you increase the number of operations. "You can't do anything that takes a relatively short amount of time," Lipkovitz says, "so we got rid of it."
With Caffeine, Google can update its index by making direct changes to the web map already stored in BigTable. This includes a kind of framework that sits atop BigTable, and Lipkovitz compares it to old-school database programming and the use of "database triggers."
"It's completely incremental," he says. When a new page is crawled, Google can update its index with the necessarily changes rather than rebuilding the whole thing.
Previously, Google's index was separated into layers, and some layers updated faster than others. The main layer wouldn't be updated for about two weeks. "To refresh a layer of the old index, we would analyze the entire web, which meant there was a significant delay between when we found a page and made it available to you," Google said in a blog post when Caffeine was rolled out.
"With Caffeine, we analyze the web in small portions and update our search index on a continuous basis, globally. As we find new pages, or new information on existing pages, we can add these straight to the index. That means you can find fresher information than ever before — no matter when or where it was published."
There's also a "compute framework," Lipkovitz says, that lets engineers execute code atop BigTable. And the system is underpinned by Colossus, the distributed storage platform also known as GFS2. The original Google File System, he says, didn't scale as well as the company would like.
Colossus is specifically designed for BigTable, and for this reason it's not as suited to "general use" as GFS was. In other words, it was built specifically for use with the new Caffeine search-indexing system, and though it may be used in some form with other Google services, it isn't the sort of thing that's designed to span the entire Google infrastructure.
At Wednesday's launch of Google Instant, a new incarnation of Google's search engine that updates search results as you type, Google distinguished engineer Ben Gomes told The Reg that Caffeine was not built with Instant in mind, but that it helped deal with the added load placed on the system by the "streaming" search service.
Lipkovitz makes a point of saying that MapReduce is by no means dead. There are still cases where Caffeine uses batch processing, and MapReduce is still the basis for myriad other Google services. But prior the arrival of Caffeine, the indexing system was Google's largest MapReduce application, so use of the platform has been significantly, well, reduced.
In 2004, Google published research papers on GFS and MapReduce that became the basis for the open source Hadoop platform now used by Yahoo!, Facebook, and — yes — Microsoft. But as Google moves beyond GFS and MapReduce, Lipkovitz stresses that he is "not claiming that the rest of the world is behind us."
"We're in business of making searches useful," he says. "We're not in the business of selling infrastructure." ®