Git Product home page Git Product logo

tacc-scrunch's Introduction

TACC-Scrunch

Author: Dan Garrette ([email protected])

Introduction

This is an example project for getting Scrunch to work on TACC

Prerequisites

Scrunch requires a newer version of Hadoop than what is used on TACC by default. By default, TACC uses Apache Hadoop 0.20.0. Scrunch requires Cloudera Hadoop 0.20.2-cdh3u1. We will use Cloudera Hadoop 0.20.2-cdh3u2.

To get this set up, do the following in your home directory:

ln -s /scratch/01813/roller/software/lib/hadoop/hadoop-0.20.2-cdh3u2 hadoop

Add the following to ~/.profile_user and job.hadoop.new:

export HADOOP_HOME=/scratch/01813/roller/software/lib/hadoop/hadoop-0.20.2-cdh3u2

Testing the setup

Package a jar:

sbt assembly

Make some data:

echo "this is a test . this test is short ." > example.txt
hadoop fs -put example.txt example.txt

Run the materialize example:

hadoop jar target/tacc-scrunch-assembly.jar example.WordCountMaterialize example.txt

This will produce

List((a,1), (is,2), (short,1), (test,2), (this,2))

Run the file-output example:

hadoop jar target/tacc-scrunch-assembly.jar example.WordCount example.txt example.wc
hadoop fs -getmerge example.wc example.wc
cat example.wc

This will produce

a	1
is	2
short	1
test	2
this	2

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.