Code Monkey home page Code Monkey logo

hio_test's Introduction

hio_bench

This tests random and sequence HDFS I/O.

Building

In order to build and run this test, you must put the HDFS and Hadoop-common jar files into your classpath. In the Hadoop install, these are found under share/hadoop/common/ share/hadoop/hdfs/

Alternatively, you can generate a jar using maven:

mvn package

TODO: use Ivy.

Running

You have to set some Java system properties when running the test.

Here is an example of how to run the test:

ANT\_OPTS="-Dhio.nthreads=5 -Dhio.ngigs.to.read=10 -Dhio.ngigs.in.file=10 -Dhio.hdfs.uri=hdfs://localhost:4000" ant compile jar run

It's also important to make sure libhadoop.so is in your LD_LIBRARY_PATH; otherwise, you won't get features like short-circuit local reads which are important for performance.

Alternately, you can directly run the jar with:

java -Dhio.nthreads=5 -Dhio.ngigs.to.read=1 -Dhio.ngigs.in.file=1 -Dhio.hdfs.uri=hdfs://localhost:6000 com.cloudera.HioBench

You can also run the jar using 'hadoop jar' command:

First, set the required configurations

export HADOOP_OPTS="-Dhio.nthreads=1 -Dhio.ngigs.to.read=4 -Dhio.read.chunk.bytes=1048576 -Dhio.hdfs.uri=hdfs://localhost:9000/ -Dhio.hdfs.file.name=hdfs://localhost:9000/user/host/test.in -Dhio.ngigs.in.file=4 -Dhio.hdfs.test.type=random -Dverbose"

Then run the benchmark

hadoop jar hio_test-0.0.1-SNAPSHOT.jar com.cloudera.HioBench

Contact information

Colin Patrick McCabe [email protected]

Ahmed Mahran [email protected]

hio_test's People

Contributors

ahmed-mahran avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.