Zebra and MapReduce. Table of contents. 1 Overview Hadoop MapReduce APIs Zebra MapReduce APIs Zebra MapReduce Examples...
|
|
|
- Godwin Sullivan
- 9 years ago
- Views:
Transcription
1 Table of contents 1 Overview Hadoop MapReduce APIs Zebra MapReduce APIs Zebra MapReduce Examples... 2
2 1. Overview MapReduce allows you to take full advantage of Zebra's capabilities. 2. Hadoop MapReduce APIs This release of Zebra supports the "new" jobcontext-style MapReduce APIs. org.apache.hadoop.mapreduce.* - supported ("new" jobcontext-style mapreduce API) org.apache.hadoop.mapred.* - supported, but deprecated ("old" jobconf-style mapreduce API) 3. Zebra MapReduce APIs Zebra includes several classes for use in MapReduce programs. The main entry point into Zebra are the two classes for reading and writing tables, namely TableInputFormat and BasicTableOutputFormat. 4. Zebra MapReduce Examples 4.1. Table Output Format This MapReduce example demonstrates the Zebra table output format. The Zebra table in this example has two unsorted columns groups, each of which has one column. The output format is specified as follows: BasicTableOutputFormat.setStorageInfo(jobContext, ZebraSchema.createZebraSchema("word:string, count:int"), ZebraStorageHint.createZebraStorageHint("[word];[count]"), null); The input file for this example should contain rows of word and count, separated by a space. For example: this 2 is 1 a 5 test 2 hello 1 world 3 The example works like this. The first job is in Zebra format. The second job reads output from the first job, where Count is specified as a projection column. The table input format Page 2
3 projects an input row which has both Word and Count into a row containing only the Count column and hands it to map. The reducer sums the counts and produces a sum of counts which should match total number of words in original text. package org.apache.hadoop.zebra.mapreduce; import org.apache.hadoop.conf.configuration; import org.apache.hadoop.conf.configured; import org.apache.hadoop.fs.path; import org.apache.hadoop.io.byteswritable; import org.apache.hadoop.io.intwritable; import org.apache.hadoop.io.longwritable; import org.apache.hadoop.io.text; import org.apache.hadoop.mapreduce.job; import org.apache.hadoop.mapreduce.mapper; import org.apache.hadoop.mapreduce.reducer; import org.apache.hadoop.mapreduce.lib.input.textinputformat; import org.apache.hadoop.mapreduce.lib.input.fileinputformat; import org.apache.hadoop.mapreduce.lib.output.textoutputformat; import org.apache.hadoop.mapreduce.lib.output.fileoutputformat; import org.apache.hadoop.util.tool; import org.apache.hadoop.util.toolrunner; import org.apache.hadoop.zebra.mapreduce.basictableoutputformat; import org.apache.hadoop.zebra.mapreduce.tableinputformat; import org.apache.hadoop.zebra.parser.parseexception; import org.apache.hadoop.zebra.schema.schema; import org.apache.hadoop.zebra.types.typesutils; import org.apache.pig.data.tuple; import java.io.ioexception; import java.util.iterator; public class TableMapReduceExample extends Configured implements Tool { static class Map extends Mapper<LongWritable, Text, BytesWritable, Tuple> { private BytesWritable byteskey; private Tuple tuplerow; context) /** * Map method for reading input. public void map(longwritable key, Text value, Context throws IOException, InterruptedException { // value should contain "word count" String[] wordcount = value.tostring().split(" "); if (wordcount.length!= 2) { Page 3
4 contain two fields:" + value); // LOG the error throw new IOException("Value does not byte[] word = wordcount[0].getbytes(); byteskey.set(word, 0, word.length); tuplerow.set(0, new String(word)); tuplerow.set(1, Integer.parseInt(wordCount[1])); context.write( byteskey, tuplerow ); /** * Configuration of the job. Here we create an empty Tuple Row. public void setup(context context) { byteskey = new BytesWritable(); try { Schema outschema = BasicTableOutputFormat.getSchema( context ); tuplerow = TypesUtils.createTuple(outSchema); catch (IOException e) { throw new RuntimeException(e); catch (ParseException e) { throw new RuntimeException(e); static class ProjectionMap extends Mapper<BytesWritable, Tuple, Text, IntWritable> { private final static Text all = new Text("All"); context) /** * Map method which gets count column after projection. * IOException public void map(byteswritable key, Tuple value, Context throws IOException, InterruptedException { context.write( all, new IntWritable((Integer) value.get(0)) ); public static class ProjectionReduce extends Reducer<Text, IntWritable, Text, IntWritable> { Page 4
5 /** * Reduce method which implements summation. Acts as both reducer and * combiner. * IOException public void reduce(text key, Iterable<IntWritable> values, Context context) throws IOException, InterruptedException { int sum = 0; Iterator<IntWritable> iterator = values.iterator(); while (iterator.hasnext()) { sum += iterator.next().get(); context.write(key, new IntWritable(sum)); /** * Where jobs and their settings and sequence is set. * args * arguments with exception of Tools understandable ones. public int run(string[] args) throws Exception { if (args == null args.length!= 3) { System.out.println("usage: TableMapReduceExample input_path_for_text_file output_path_for_table output_path_for_text_file"); System.exit(-1); /* * First MR Job creating a Table with two columns Job job = new Job(); job.setjobname("tablemapreduceexample"); Configuration conf = job.getconfiguration(); conf.set("table.output.tfile.compression", "none"); // Input settings job.setinputformatclass(textinputformat.class); job.setmapperclass(map.class); FileInputFormat.setInputPaths(job, new Path(args[0])); // Output settings job.setoutputformatclass(basictableoutputformat.class); BasicTableOutputFormat.setOutputPath( job, new Path(args[1]) ); // set the logical schema with 2 columns BasicTableOutputFormat.setSchema( job, "word:string, Page 5
6 count:int" ); // for demo purposes, create 2 physical column groups BasicTableOutputFormat.setStorageHint( job, "[word];[count]" ); // set map-only job. job.setnumreducetasks(0); // Run Job job.submit(); /* * Second MR Job for Table Projection of count column Job projectionjob = new Job(); projectionjob.setjobname("tableprojectionmapreduceexample"); conf = projectionjob.getconfiguration(); // Input settings projectionjob.setmapperclass(projectionmap.class); projectionjob.setinputformatclass(tableinputformat.class); TableInputFormat.setProjection(job, "count"); TableInputFormat.setInputPaths(job, new Path(args[1])); projectionjob.setmapoutputkeyclass(text.class); projectionjob.setmapoutputvalueclass(intwritable.class); // Output settings projectionjob.setoutputformatclass(textoutputformat.class); FileOutputFormat.setOutputPath(projectionJob, new Path(args[2])); projectionjob.setreducerclass(projectionreduce.class); projectionjob.setcombinerclass(projectionreduce.class); // Run Job projectionjob.submit(); return 0; public static void main(string[] args) throws Exception { int res = ToolRunner.run(new Configuration(), new TableMapReduceExample(), args); System.exit(res); 4.2. Table Input/Output Formats This MapReduce examples demonstrates how to perform a simple union. To run this Page 6
7 program, we need two basic tables that contain the data as in the example above (word, count). In this example they are: /user/mapredu/t1 and /user/mapredu/t2. The resulting table is /user/mapredu2/t. package org.apache.hadoop.zebra.mapreduce; import java.io.ioexception; import java.util.list; import java.util.arraylist; import org.apache.hadoop.conf.configuration; import org.apache.hadoop.fs.path; import org.apache.hadoop.io.byteswritable; import org.apache.hadoop.mapreduce.job; import org.apache.hadoop.mapreduce.mapper; import org.apache.hadoop.zebra.mapreduce.basictableoutputformat; import org.apache.hadoop.zebra.mapreduce.tableinputformat; import org.apache.hadoop.zebra.parser.parseexception; import org.apache.hadoop.zebra.schema.schema; import org.apache.hadoop.zebra.types.typesutils; import org.apache.pig.data.tuple; public class TableMRSample2 { static class MapClass extends Mapper<BytesWritable, Tuple, BytesWritable, Tuple> { private BytesWritable byteskey; private Tuple tuplerow; public void map(byteswritable key, Tuple value, Context context) throws IOException, InterruptedException { System.out.println(key.toString() + value.tostring()); context.write(key, value); public void setup(context context) { byteskey = new BytesWritable(); try { Schema outschema = BasicTableOutputFormat.getSchema(context); tuplerow = TypesUtils.createTuple(outSchema); catch (IOException e) { throw new RuntimeException(e); catch (ParseException e) { throw new RuntimeException(e); Page 7
8 public static void main(string[] args) throws ParseException, IOException, InterruptedException, ClassNotFoundException { Job job = new Job(); job.setjobname("tablemrsample"); Configuration conf = job.getconfiguration(); conf.set("table.output.tfile.compression", "gz"); // input settings job.setinputformatclass(tableinputformat.class); job.setoutputformatclass(basictableoutputformat.class); job.setmapperclass(tablemrsample2.mapclass.class); List<Path> paths = new ArrayList<Path>(2); Path p = new Path("/homes/chaow/mapredu/t1"); System.out.println("path = " + p); paths.add(p); p = new Path("/homes/chaow/mapredu/t2"); paths.add(p); TableInputFormat.setInputPaths(job, paths.toarray(new Path[2])); TableInputFormat.setProjection(job, "word"); BasicTableOutputFormat.setOutputPath(job, new Path( "/homes/chaow/mapredu2/t1")); "word:string"); "[word]"); BasicTableOutputFormat.setSchema(job, BasicTableOutputFormat.setStorageHint(job, // set map-only job. job.setnumreducetasks(0); // TODO: need to find a replacement //job.setnummaptasks(2); job.submit(); 4.3. Sort Columns This MapReduce code snippet demonstrates how to sort Zebra columns. /* user provides a Comparator Class for creating ZebraSortInfo public static final class MemcmpRawComparator implements RawComparator<Object>, Serializable { public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { return WritableComparator.compareBytes(b1, s1, l1, b2, s2, l2); Page 8
9 public int compare(object o1, Object o2) { throw new RuntimeException("Object comparison not supported"); ZebraSchema zschema = ZebraSchema.createZebraSchema(schemaString); ZebraStorageHint zstoragehint = ZebraStorageHint.createZebraStorageHint(storageHintString); /* Here we can use above Comparator Class to create a ZebraSortInfo object ZebraSortInfo zsortinfo = ZebraSortInfo.createZebraSortInfo(sortColumnsString, MemcmpRawComparator.class); BasicTableOutputFormat.setStorageInfo(jobContext, zschema, zstoragehint, zsortinfo); 4.4. Drop Column Groups This example illustrates how to drop column groups (CG) in Zebra tables. This is not a MapReduce program since the API for deleting columg groups is a simple Java API. How to compile: # this command requires pig.jar and latest zebra jar. $ javac -cp pig.jar:zebra jar DropColumnGroupExample.java # create a jar file $ jar cvf dropcg.jar DropColumnGroupExample.class How to run: # run the example. $ java -cp pig.jar:zebra jar:dropcg.jar DropColumnGroupExample # This creates a table under the directory "dropcgexample". # If run the same command again, it fails since the destination # directory still exists. Please remove the directory before running. #This program takes one argument : directory for the example table $ java -cp pig.jar:zebra jar:dropcg.jar DropColumnGroupExample tabledir Source code: Page 9
10 import java.io.ioexception; import org.apache.hadoop.conf.configuration; import org.apache.hadoop.fs.path; import org.apache.hadoop.io.byteswritable; import org.apache.hadoop.util.genericoptionsparser; import org.apache.hadoop.zebra.io.basictable; import org.apache.hadoop.zebra.io.tableinserter; import org.apache.hadoop.zebra.io.tablescanner; import org.apache.hadoop.zebra.types.typesutils; import org.apache.pig.data.tuple; public class DropColumnGroupExample { private static String schema = "url, outcount:int, content:string"; private static String storagehint = "[url, outcount]; [content] as data"; public static void main(string[] args) throws Exception { // Create configuration and process generaic Hadoop options like -D. Configuration conf = new Configuration(); args = new GenericOptionsParser(conf, args).getremainingargs(); Path path = new Path((args.length > 0? args[0] : "dropcgexample")); if (path.getfilesystem(conf).exists(path)) { throw new IOException("Destination path '" + path + "' already exists. " + "Please remove the directory and run again."); // create a simple table. createtable(conf, path); //verify we can read the table. String content = getcontentforurl(path, conf, " if (content == null!content.contains("yahoo")) { throw new IOException("Table read failed."); /* Now drop the colum group named "data". * * An exception is thrown if the CG could not be removed for some reason * (e.g. the user might not have enough permissions). BasicTable.dropColumnGroup(path, conf, "data"); // deleting an already deleted CG is a no-op. BasicTable.dropColumnGroup(path, conf, "data"); // now try to read content column. // Note that NULL is returned for the third column. if (getcontentforurl(path, conf, " null) { Page 10
11 throw new IOException("Expected NULL for 3rd column"); // While reading this table, a warning is logged since the user // is trying to reading from a deleted CG. //clean up the test directory. //for now we are not deleting the directory to let users check it. //BasicTable.drop(path, conf); // Utility functions: /** * This is a simple table reader that iterates over the table to * find a given url and returns its content. private static String getcontentforurl(path path, Configuration conf, String url) throws Exception { BasicTable.Reader reader = new BasicTable.Reader(path, conf); TableScanner scanner = reader.getscanner(null, true); Tuple row = TypesUtils.createTuple(3); try { while (!scanner.atend()) { scanner.getvalue(row); if (url.equals(row.get(0))) { return (String)row.get(2); scanner.advance(); finally { scanner.close(); throw new IOException(url + " is not found"); private static void createtable(configuration conf, Path path) throws Exception { /* NOTE: This creates a table using BasicTable API. This is not * a committed public API yet. Typically tables are created * in M/R or through PIG. BasicTable.Writer writer = new BasicTable.Writer(path, schema, storagehint, conf); TableInserter inserter = writer.getinserter("part-0", true); Tuple rowtuple = TypesUtils.createTuple(3); BytesWritable emptykey = new BytesWritable(); // add two rows: rowtuple.set(0, " rowtuple.set(1, 10); rowtuple.set(2, "content for cnn.com"); Page 11
12 inserter.insert(emptykey, rowtuple); rowtuple.set(0, " rowtuple.set(1, 20); rowtuple.set(2, "content for yahoo.com"); inserter.insert(emptykey, rowtuple); inserter.close(); 4.5. Multiple Table Outputs This code snippet illustrates how to work with multiple table outputs. In main() String multilocs = "/user/multi/us" + "," + "/user/multi/india" + "," + "/user/multi/japan"; job.setoutputformatclass(basictableoutputformat.class); BasicTableOutputFormat.setMultipleOutputPaths(job, multilocs); BasicTableOutputFormat.setZebraOutputPartitionClass(job, MultipleOutputsTest.OutputPartitionerClass.class); Implement a partition class: static class OutputPartitionerClass implements ZebraOutputPartition { public int getoutputpartition(byteswritable key, Tuple value, String commaseparatedlocs) { String reg = null; try { reg = (String)(value.get(0)); catch ( ExecException e) { // do something about e if(reg.equals("us")) return 0; if(reg.equals("india")) return 1; if(reg.equals("japan")) return 2; return 0; Page 12
Word Count Code using MR2 Classes and API
EDUREKA Word Count Code using MR2 Classes and API A Guide to Understand the Execution of Word Count edureka! A guide to understand the execution and flow of word count WRITE YOU FIRST MRV2 PROGRAM AND
MR-(Mapreduce Programming Language)
MR-(Mapreduce Programming Language) Siyang Dai Zhi Zhang Shuai Yuan Zeyang Yu Jinxiong Tan sd2694 zz2219 sy2420 zy2156 jt2649 Objective of MR MapReduce is a software framework introduced by Google, aiming
Hadoop Lab Notes. Nicola Tonellotto November 15, 2010
Hadoop Lab Notes Nicola Tonellotto November 15, 2010 2 Contents 1 Hadoop Setup 4 1.1 Prerequisites........................................... 4 1.2 Installation............................................
Hadoop Basics with InfoSphere BigInsights
An IBM Proof of Technology Hadoop Basics with InfoSphere BigInsights Unit 2: Using MapReduce An IBM Proof of Technology Catalog Number Copyright IBM Corporation, 2013 US Government Users Restricted Rights
Tutorial- Counting Words in File(s) using MapReduce
Tutorial- Counting Words in File(s) using MapReduce 1 Overview This document serves as a tutorial to setup and run a simple application in Hadoop MapReduce framework. A job in Hadoop MapReduce usually
Xiaoming Gao Hui Li Thilina Gunarathne
Xiaoming Gao Hui Li Thilina Gunarathne Outline HBase and Bigtable Storage HBase Use Cases HBase vs RDBMS Hands-on: Load CSV file to Hbase table with MapReduce Motivation Lots of Semi structured data Horizontal
Hadoop Configuration and First Examples
Hadoop Configuration and First Examples Big Data 2015 Hadoop Configuration In the bash_profile export all needed environment variables Hadoop Configuration Allow remote login Hadoop Configuration Download
Working With Hadoop. Important Terminology. Important Terminology. Anatomy of MapReduce Job Run. Important Terminology
Working With Hadoop Now that we covered the basics of MapReduce, let s look at some Hadoop specifics. Mostly based on Tom White s book Hadoop: The Definitive Guide, 3 rd edition Note: We will use the new
Hadoop Integration Guide
HP Vertica Analytic Database Software Version: 7.0.x Document Release Date: 2/20/2015 Legal Notices Warranty The only warranties for HP products and services are set forth in the express warranty statements
Word count example Abdalrahman Alsaedi
Word count example Abdalrahman Alsaedi To run word count in AWS you have two different ways; either use the already exist WordCount program, or to write your own file. First: Using AWS word count program
Hadoop and Eclipse. Eclipse Hawaii User s Group May 26th, 2009. Seth Ladd http://sethladd.com
Hadoop and Eclipse Eclipse Hawaii User s Group May 26th, 2009 Seth Ladd http://sethladd.com Goal YOU can use the same technologies as The Big Boys Google Yahoo (2000 nodes) Last.FM AOL Facebook (2.5 petabytes
How To Write A Mapreduce Program In Java.Io 4.4.4 (Orchestra)
MapReduce framework - Operates exclusively on pairs, - that is, the framework views the input to the job as a set of pairs and produces a set of pairs as the output
Hadoop Integration Guide
HP Vertica Analytic Database Software Version: 7.1.x Document Release Date: 12/9/2015 Legal Notices Warranty The only warranties for HP products and services are set forth in the express warranty statements
Three Approaches to Data Analysis with Hadoop
Three Approaches to Data Analysis with Hadoop A Dell Technical White Paper Dave Jaffe, Ph.D. Solution Architect Dell Solution Centers Executive Summary This white paper demonstrates analysis of large datasets
BIG DATA APPLICATIONS
BIG DATA ANALYTICS USING HADOOP AND SPARK ON HATHI Boyu Zhang Research Computing ITaP BIG DATA APPLICATIONS Big data has become one of the most important aspects in scientific computing and business analytics
Introduc)on to Map- Reduce. Vincent Leroy
Introduc)on to Map- Reduce Vincent Leroy Sources Apache Hadoop Yahoo! Developer Network Hortonworks Cloudera Prac)cal Problem Solving with Hadoop and Pig Slides will be available at hgp://lig- membres.imag.fr/leroyv/
Introduction to Big Data Science. Wuhui Chen
Introduction to Big Data Science Wuhui Chen What is Big data? Volume Variety Velocity Outline What are people doing with Big data? Classic examples Two basic technologies for Big data management: Data
Hadoop WordCount Explained! IT332 Distributed Systems
Hadoop WordCount Explained! IT332 Distributed Systems Typical problem solved by MapReduce Read a lot of data Map: extract something you care about from each record Shuffle and Sort Reduce: aggregate, summarize,
Step 4: Configure a new Hadoop server This perspective will add a new snap-in to your bottom pane (along with Problems and Tasks), like so:
Codelab 1 Introduction to the Hadoop Environment (version 0.17.0) Goals: 1. Set up and familiarize yourself with the Eclipse plugin 2. Run and understand a word counting program Setting up Eclipse: Step
Connecting Hadoop with Oracle Database
Connecting Hadoop with Oracle Database Sharon Stephen Senior Curriculum Developer Server Technologies Curriculum The following is intended to outline our general product direction.
Elastic Map Reduce. Shadi Khalifa Database Systems Laboratory (DSL) [email protected]
Elastic Map Reduce Shadi Khalifa Database Systems Laboratory (DSL) [email protected] The Amazon Web Services Universe Cross Service Features Management Interface Platform Services Infrastructure Services
19 Putting into Practice: Large-Scale Data Management with HADOOP
19 Putting into Practice: Large-Scale Data Management with HADOOP The chapter proposes an introduction to HADOOP and suggests some exercises to initiate a practical experience of the system. The following
Hadoop Streaming. 2012 coreservlets.com and Dima May. 2012 coreservlets.com and Dima May
2012 coreservlets.com and Dima May Hadoop Streaming Originals of slides and source code for examples: http://www.coreservlets.com/hadoop-tutorial/ Also see the customized Hadoop training courses (onsite
Copy the.jar file into the plugins/ subfolder of your Eclipse installation. (e.g., C:\Program Files\Eclipse\plugins)
Beijing Codelab 1 Introduction to the Hadoop Environment Spinnaker Labs, Inc. Contains materials Copyright 2007 University of Washington, licensed under the Creative Commons Attribution 3.0 License --
Istanbul Şehir University Big Data Camp 14. Hadoop Map Reduce. Aslan Bakirov Kevser Nur Çoğalmış
Istanbul Şehir University Big Data Camp 14 Hadoop Map Reduce Aslan Bakirov Kevser Nur Çoğalmış Agenda Map Reduce Concepts System Overview Hadoop MR Hadoop MR Internal Job Execution Workflow Map Side Details
HDInsight Essentials. Rajesh Nadipalli. Chapter No. 1 "Hadoop and HDInsight in a Heartbeat"
HDInsight Essentials Rajesh Nadipalli Chapter No. 1 "Hadoop and HDInsight in a Heartbeat" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter
Hadoop/MapReduce. Object-oriented framework presentation CSCI 5448 Casey McTaggart
Hadoop/MapReduce Object-oriented framework presentation CSCI 5448 Casey McTaggart What is Apache Hadoop? Large scale, open source software framework Yahoo! has been the largest contributor to date Dedicated
Introduction to MapReduce and Hadoop
Introduction to MapReduce and Hadoop Jie Tao Karlsruhe Institute of Technology [email protected] Die Kooperation von Why Map/Reduce? Massive data Can not be stored on a single machine Takes too long to process
Hadoop Framework. technology basics for data scientists. Spring - 2014. Jordi Torres, UPC - BSC www.jorditorres.eu @JordiTorresBCN
Hadoop Framework technology basics for data scientists Spring - 2014 Jordi Torres, UPC - BSC www.jorditorres.eu @JordiTorresBCN Warning! Slides are only for presenta8on guide We will discuss+debate addi8onal
The Hadoop Eco System Shanghai Data Science Meetup
The Hadoop Eco System Shanghai Data Science Meetup Karthik Rajasethupathy, Christian Kuka 03.11.2015 @Agora Space Overview What is this talk about? Giving an overview of the Hadoop Ecosystem and related
LANGUAGES FOR HADOOP: PIG & HIVE
Friday, September 27, 13 1 LANGUAGES FOR HADOOP: PIG & HIVE Michail Michailidis & Patrick Maiden Friday, September 27, 13 2 Motivation Native MapReduce Gives fine-grained control over how program interacts
Lambda Architecture. CSCI 5828: Foundations of Software Engineering Lecture 29 12/09/2014
Lambda Architecture CSCI 5828: Foundations of Software Engineering Lecture 29 12/09/2014 1 Goals Cover the material in Chapter 8 of the Concurrency Textbook The Lambda Architecture Batch Layer MapReduce
USING HDFS ON DISCOVERY CLUSTER TWO EXAMPLES - test1 and test2
USING HDFS ON DISCOVERY CLUSTER TWO EXAMPLES - test1 and test2 (Using HDFS on Discovery Cluster for Discovery Cluster Users email [email protected] if you have questions or need more clarifications. Nilay
Extreme Computing. Hadoop MapReduce in more detail. www.inf.ed.ac.uk
Extreme Computing Hadoop MapReduce in more detail How will I actually learn Hadoop? This class session Hadoop: The Definitive Guide RTFM There is a lot of material out there There is also a lot of useless
Running Hadoop on Windows CCNP Server
Running Hadoop at Stirling Kevin Swingler Summary The Hadoopserver in CS @ Stirling A quick intoduction to Unix commands Getting files in and out Compliing your Java Submit a HadoopJob Monitor your jobs
Enterprise Data Storage and Analysis on Tim Barr
Enterprise Data Storage and Analysis on Tim Barr January 15, 2015 Agenda Challenges in Big Data Analytics Why many Hadoop deployments under deliver What is Apache Spark Spark Core, SQL, Streaming, MLlib,
Mrs: MapReduce for Scientific Computing in Python
Mrs: for Scientific Computing in Python Andrew McNabb, Jeff Lund, and Kevin Seppi Brigham Young University November 16, 2012 Large scale problems require parallel processing Communication in parallel processing
CS54100: Database Systems
CS54100: Database Systems Cloud Databases: The Next Post- Relational World 18 April 2012 Prof. Chris Clifton Beyond RDBMS The Relational Model is too limiting! Simple data model doesn t capture semantics
map/reduce connected components
1, map/reduce connected components find connected components with analogous algorithm: map edges randomly to partitions (k subgraphs of n nodes) for each partition remove edges, so that only tree remains
Advanced Java Client API
2012 coreservlets.com and Dima May Advanced Java Client API Advanced Topics Originals of slides and source code for examples: http://www.coreservlets.com/hadoop-tutorial/ Also see the customized Hadoop
Data Science in the Wild
Data Science in the Wild Lecture 3 Some slides are taken from J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 1 Data Science and Big Data Big Data: the data cannot
Hadoop. Dawid Weiss. Institute of Computing Science Poznań University of Technology
Hadoop Dawid Weiss Institute of Computing Science Poznań University of Technology 2008 Hadoop Programming Summary About Config 1 Open Source Map-Reduce: Hadoop About Cluster Configuration 2 Programming
MarkLogic Server. MarkLogic Connector for Hadoop Developer s Guide. MarkLogic 8 February, 2015
MarkLogic Connector for Hadoop Developer s Guide 1 MarkLogic 8 February, 2015 Last Revised: 8.0-3, June, 2015 Copyright 2015 MarkLogic Corporation. All rights reserved. Table of Contents Table of Contents
Map-Reduce and Hadoop
Map-Reduce and Hadoop 1 Introduction to Map-Reduce 2 3 Map Reduce operations Input data are (key, value) pairs 2 operations available : map and reduce Map Takes a (key, value) and generates other (key,
Getting to know Apache Hadoop
Getting to know Apache Hadoop Oana Denisa Balalau Télécom ParisTech October 13, 2015 1 / 32 Table of Contents 1 Apache Hadoop 2 The Hadoop Distributed File System(HDFS) 3 Application management in the
Introduc)on to the MapReduce Paradigm and Apache Hadoop. Sriram Krishnan [email protected]
Introduc)on to the MapReduce Paradigm and Apache Hadoop Sriram Krishnan [email protected] Programming Model The computa)on takes a set of input key/ value pairs, and Produces a set of output key/value pairs.
Chulalongkorn University International School of Engineering Department of Computer Engineering 2140105 Computer Programming Lab.
Chulalongkorn University Name International School of Engineering Student ID Department of Computer Engineering Station No. 2140105 Computer Programming Lab. Date Lab 2 Using Java API documents, command
Processing of massive data: MapReduce. 2. Hadoop. New Trends In Distributed Systems MSc Software and Systems
Processing of massive data: MapReduce 2. Hadoop 1 MapReduce Implementations Google were the first that applied MapReduce for big data analysis Their idea was introduced in their seminal paper MapReduce:
Tutorial. Christopher M. Judd
Tutorial Christopher M. Judd Christopher M. Judd CTO and Partner at leader Columbus Developer User Group (CIDUG) Marc Peabody @marcpeabody Introduction http://hadoop.apache.org/ Scale up Scale up
CS2506 Operating Systems II Lab 8, 8 th Tue/03 /2011 Java API
Introduction The JDBC API was designed to keep simple things simple. This means that the JDBC makes everyday database tasks easy. In this lab you will learn about how Java interacts with databases. JDBC
Hadoop: Understanding the Big Data Processing Method
Hadoop: Understanding the Big Data Processing Method Deepak Chandra Upreti 1, Pawan Sharma 2, Dr. Yaduvir Singh 3 1 PG Student, Department of Computer Science & Engineering, Ideal Institute of Technology
Hadoop and ecosystem * 本 文 中 的 言 论 仅 代 表 作 者 个 人 观 点 * 本 文 中 的 一 些 图 例 来 自 于 互 联 网. Information Management. Information Management IBM CDL Lab
IBM CDL Lab Hadoop and ecosystem * 本 文 中 的 言 论 仅 代 表 作 者 个 人 观 点 * 本 文 中 的 一 些 图 例 来 自 于 互 联 网 Information Management 2012 IBM Corporation Agenda Hadoop 技 术 Hadoop 概 述 Hadoop 1.x Hadoop 2.x Hadoop 生 态
Creating.NET-based Mappers and Reducers for Hadoop with JNBridgePro
Creating.NET-based Mappers and Reducers for Hadoop with JNBridgePro CELEBRATING 10 YEARS OF JAVA.NET Apache Hadoop.NET-based MapReducers Creating.NET-based Mappers and Reducers for Hadoop with JNBridgePro
COSC 6397 Big Data Analytics. Mahout and 3 rd homework assignment. Edgar Gabriel Spring 2014. Mahout
COSC 6397 Big Data Analytics Mahout and 3 rd homework assignment Edgar Gabriel Spring 2014 Mahout Scalable machine learning library Built with MapReduce and Hadoop in mind Written in Java Focusing on three
Case-Based Reasoning Implementation on Hadoop and MapReduce Frameworks Done By: Soufiane Berouel Supervised By: Dr Lily Liang
Case-Based Reasoning Implementation on Hadoop and MapReduce Frameworks Done By: Soufiane Berouel Supervised By: Dr Lily Liang Independent Study Advanced Case-Based Reasoning Department of Computer Science
Hadoop, Hive & Spark Tutorial
Hadoop, Hive & Spark Tutorial 1 Introduction This tutorial will cover the basic principles of Hadoop MapReduce, Apache Hive and Apache Spark for the processing of structured datasets. For more information
Big Data and Analytics by Seema Acharya and Subhashini Chellappan Copyright 2015, WILEY INDIA PVT. LTD. Introduction to Pig
Introduction to Pig Agenda What is Pig? Key Features of Pig The Anatomy of Pig Pig on Hadoop Pig Philosophy Pig Latin Overview Pig Latin Statements Pig Latin: Identifiers Pig Latin: Comments Data Types
HPCHadoop: MapReduce on Cray X-series
HPCHadoop: MapReduce on Cray X-series Scott Michael Research Analytics Indiana University Cray User Group Meeting May 7, 2014 1 Outline Motivation & Design of HPCHadoop HPCHadoop demo Benchmarking Methodology
5 HDFS - Hadoop Distributed System
5 HDFS - Hadoop Distributed System 5.1 Definition and Remarks HDFS is a file system designed for storing very large files with streaming data access patterns running on clusters of commoditive hardware.
Data Science Analytics & Research Centre
Data Science Analytics & Research Centre Data Science Analytics & Research Centre 1 Big Data Big Data Overview Characteristics Applications & Use Case HDFS Hadoop Distributed File System (HDFS) Overview
Big Data 2012 Hadoop Tutorial
Big Data 2012 Hadoop Tutorial Oct 19th, 2012 Martin Kaufmann Systems Group, ETH Zürich 1 Contact Exercise Session Friday 14.15 to 15.00 CHN D 46 Your Assistant Martin Kaufmann Office: CAB E 77.2 E-Mail:
About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. AVRO Tutorial
i About the Tutorial Apache Avro is a language-neutral data serialization system, developed by Doug Cutting, the father of Hadoop. This is a brief tutorial that provides an overview of how to set up Avro
Hadoop Pig. Introduction Basic. Exercise
Your Name Hadoop Pig Introduction Basic Exercise A set of files A database A single file Modern systems have to deal with far more data than was the case in the past Yahoo : over 170PB of data Facebook
Object-Oriented Programming in Java
CSCI/CMPE 3326 Object-Oriented Programming in Java Class, object, member field and method, final constant, format specifier, file I/O Dongchul Kim Department of Computer Science University of Texas Rio
How To Write A Map In Java (Java) On A Microsoft Powerbook 2.5 (Ahem) On An Ipa (Aeso) Or Ipa 2.4 (Aseo) On Your Computer Or Your Computer
Lab 0 - Introduction to Hadoop/Eclipse/Map/Reduce CSE 490h - Winter 2007 To Do 1. Eclipse plug in introduction Dennis Quan, IBM 2. Read this hand out. 3. Get Eclipse set up on your machine. 4. Load the
OLH: Oracle Loader for Hadoop OSCH: Oracle SQL Connector for Hadoop Distributed File System (HDFS)
Use Data from a Hadoop Cluster with Oracle Database Hands-On Lab Lab Structure Acronyms: OLH: Oracle Loader for Hadoop OSCH: Oracle SQL Connector for Hadoop Distributed File System (HDFS) All files are
Overview of Web Services API
1 CHAPTER The Cisco IP Interoperability and Collaboration System (IPICS) 4.5(x) application programming interface (API) provides a web services-based API that enables the management and control of various
Programming Hadoop Map-Reduce Programming, Tuning & Debugging. Arun C Murthy Yahoo! CCDI [email protected] ApacheCon US 2008
Programming Hadoop Map-Reduce Programming, Tuning & Debugging Arun C Murthy Yahoo! CCDI [email protected] ApacheCon US 2008 Existential angst: Who am I? Yahoo! Grid Team (CCDI) Apache Hadoop Developer
Cloud Computing Era. Trend Micro
Cloud Computing Era Trend Micro Three Major Trends to Chang the World Cloud Computing Big Data Mobile 什 麼 是 雲 端 運 算? 美 國 國 家 標 準 技 術 研 究 所 (NIST) 的 定 義 : Essential Characteristics Service Models Deployment
Parallel Programming Map-Reduce. Needless to Say, We Need Machine Learning for Big Data
Case Study 2: Document Retrieval Parallel Programming Map-Reduce Machine Learning/Statistics for Big Data CSE599C1/STAT592, University of Washington Carlos Guestrin January 31 st, 2013 Carlos Guestrin
Internals of Hadoop Application Framework and Distributed File System
International Journal of Scientific and Research Publications, Volume 5, Issue 7, July 2015 1 Internals of Hadoop Application Framework and Distributed File System Saminath.V, Sangeetha.M.S Abstract- Hadoop
Basic Hadoop Programming Skills
Basic Hadoop Programming Skills Basic commands of Ubuntu Open file explorer Basic commands of Ubuntu Open terminal Basic commands of Ubuntu Open new tabs in terminal Typically, one tab for compiling source
Hadoop at Yahoo! Owen O Malley Yahoo!, Grid Team [email protected]
Hadoop at Yahoo! Owen O Malley Yahoo!, Grid Team [email protected] Who Am I? Yahoo! Architect on Hadoop Map/Reduce Design, review, and implement features in Hadoop Working on Hadoop full time since Feb
File class in Java. Scanner reminder. Files 10/19/2012. File Input and Output (Savitch, Chapter 10)
File class in Java File Input and Output (Savitch, Chapter 10) TOPICS File Input Exception Handling File Output Programmers refer to input/output as "I/O". The File class represents files as objects. The
An Implementation of Sawzall on Hadoop
1 An Implementation of Sawzall on Hadoop Hidemoto Nakada, Tatsuhiko Inoue and Tomohiro Kudoh, 1-1-1 National Institute of Advanced Industrial Science and Technology, Umezono, Tsukuba, Ibaraki 35-8568,
public static void main(string[] args) { System.out.println("hello, world"); } }
Java in 21 minutes hello world basic data types classes & objects program structure constructors garbage collection I/O exceptions Strings Hello world import java.io.*; public class hello { public static
www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk
CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling
This material is built based on, Patterns covered in this class FILTERING PATTERNS. Filtering pattern
2/23/15 CS480 A2 Introduction to Big Data - Spring 2015 1 2/23/15 CS480 A2 Introduction to Big Data - Spring 2015 2 PART 0. INTRODUCTION TO BIG DATA PART 1. MAPREDUCE AND THE NEW SOFTWARE STACK 1. DISTRIBUTED
Continuous Integration Part 2
1 Continuous Integration Part 2 This blog post is a follow up to my blog post Continuous Integration (CI), in which I described how to execute test cases in Code Tester (CT) in a CI environment. What I
Report Vertiefung, Spring 2013 Constant Interval Extraction using Hadoop
Report Vertiefung, Spring 2013 Constant Interval Extraction using Hadoop Thomas Brenner, 08-928-434 1 Introduction+and+Task+ Temporal databases are databases expanded with a time dimension in order to
BIG DATA ANALYTICS USING HADOOP TOOLS. A Thesis. Presented to the. Faculty of. San Diego State University. In Partial Fulfillment
BIG DATA ANALYTICS USING HADOOP TOOLS A Thesis Presented to the Faculty of San Diego State University In Partial Fulfillment of the Requirements for the Degree Master of Science in Computer Science by
Introduction To Hadoop
Introduction To Hadoop Kenneth Heafield Google Inc January 14, 2008 Example code from Hadoop 0.13.1 used under the Apache License Version 2.0 and modified for presentation. Except as otherwise noted, the
HDFS - Java API. 2012 coreservlets.com and Dima May. 2012 coreservlets.com and Dima May
2012 coreservlets.com and Dima May HDFS - Java API Originals of slides and source code for examples: http://www.coreservlets.com/hadoop-tutorial/ Also see the customized Hadoop training courses (onsite
web-scale data processing Christopher Olston and many others Yahoo! Research
web-scale data processing Christopher Olston and many others Yahoo! Research Motivation Projects increasingly revolve around analysis of big data sets Extracting structured data, e.g. face detection Understanding
D06 PROGRAMMING with JAVA
Cicles Formatius de Grau Superior Desenvolupament d Aplicacions Informàtiques D06 PROGRAMMING with JAVA Ch16 Files and Streams PowerPoint presentation, created by Angel A. Juan - ajuanp(@)gmail.com, for
To reduce or not to reduce, that is the question
To reduce or not to reduce, that is the question 1 Running jobs on the Hadoop cluster For part 1 of assignment 8, you should have gotten the word counting example from class compiling. To start with, let
COSC 6397 Big Data Analytics. 2 nd homework assignment Pig and Hive. Edgar Gabriel Spring 2015
COSC 6397 Big Data Analytics 2 nd homework assignment Pig and Hive Edgar Gabriel Spring 2015 2 nd Homework Rules Each student should deliver Source code (.java files) Documentation (.pdf,.doc,.tex or.txt
How to program a MapReduce cluster
How to program a MapReduce cluster TF-IDF step by step Ján Súkeník [email protected] [email protected] TF-IDF potrebujeme pre každý dokument počet slov frekvenciu každého slova pre každé
Working With Derby. Version 10.2 Derby Document build: December 11, 2006, 7:06:09 AM (PST)
Working With Derby Version 10.2 Derby Document build: December 11, 2006, 7:06:09 AM (PST) Contents Copyright...3 Introduction and prerequisites...4 Activity overview... 5 Activity 1: Run SQL using the
