GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - clockfly/nativetask: native task

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

291 Commits
291 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
patch
patch
 
 
prebuild
prebuild
 
 
scenariotest
scenariotest
 
 
src
src
 
 
.gitignore
.gitignore
 
 
DESIGN.html
DESIGN.html
 
 
DESIGN.txt
DESIGN.txt
 
 
INSTALL
INSTALL
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
TODOS
TODOS
 
 
installation_guide.txt
installation_guide.txt
 
 
pom.xml
pom.xml
 
 
prebuild.sh
prebuild.sh
 
 

Repository files navigation

#Introduction NativeTask is a native engine inside Hadoop MapReduce(MR) Task written in C++ and focuses on task performance optimization, while leaving the scheduling and communication job to the MR framework.

NativeTask could be used in two modes:

  1. native MapOutputCollector mode
  2. full native mode

For the first mode, there is little user work needed other than turning on a option and users could run their Java MapReduce job transparently. For the second mode, users will need to write MapReduce jobs in C/C++.

NativeTask feature list:

  1. transparently support existing MRv1 and MRv2 apps
  2. support most common key types and all values
  3. support Java combiner
  4. support Lz4 / Snappy / Gzip
  5. support CRC32 and CRC32C (hardware checksum)
  6. support Hive / Mahout / Pig
  7. support MR ove HBase
  8. support non-sort Map
  9. support hash join

##Motivation We found MapReduce slow for the following reasons:

  • IO bound with Compression/Decompression overhead
  • Inefficient Scheduling/Shuffle/Merge
  • Inefficient memory management
  • Suboptimal sorting
  • Inefficient Serialization & Deserialization
  • Inflexible programming paradigm
  • Java limitations

NativeTask solves the above issues and is faster because:

  • Use optimized Compression/Decompression codec
  • High efficient memory management
  • Highly optimized sorting
  • Use hardware optimization when neccessary
  • Avoid Java runtime side-effects

##Performance overview

Here is the diagram of NativeTask Performance improvement (native MapOutputCollector mode) against Hadoop original.

native MapOutputCollector mode

NativeTask is 2x faster further in full native mode.

full native mode


##How to use

Native MapOutputCollector mode

In MRv1, please set mapreduce.map.output.collector.delegator.class=org.apache.hadoop.mapred.nativetask.NativeMapOutputCollectorDelegator in JobConf. For example, to run Pi with native MapOutputCollector

hadoop jar hadoop-examples.jar pi -D mapreduce.map.output.collector.delegator.class=org.apache.hadoop.mapred.nativetask.NativeMapOutputCollectorDelegator 10 10

MRv2 supports pluggable MapOutputCollector. Set mapreduce.job.map.output.collector.class=org.apache.hadoop.mapred.nativetask.NativeMapOutputCollectorDelegator in JobConf. Now the Pi example could be run with native MapOutputCollector as

hadoop jar hadoop-mapreduce-examples.jar pi -D mapreduce.job.map.output.collector.class=org.apache.hadoop.mapred.nativetask.NativeMapOutputCollectorDelegator 10 10

In both MRv1 and MRv2, please check the task log, if there is

INFO org.apache.hadoop.mapred.nativetask.NativeMapOutputCollectorDelegator: Native output collector can be successfully enabled! 

Then NativeTask is successfully enabled.

Full native mode


##Related work MAPREDUCE-2841 discusses about some initial experiment in "task level native optimization" while our implementation comes with far more advanced features (e.g. more key types support, Java combiner support) and has been used and verified in production environment.


About

native task

Resources

Readme
Apache-2.0 license
Activity

Stars

3 stars

Watchers

3 watching

Forks

10 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.