Giter VIP home page Giter VIP logo

skylinemapreducehadoop's Introduction

This repository contanins the implementation of the paper

[Parallel computation of skyline and reverse skyline queries using mapreduce] (http://dl.acm.org/citation.cfm?id=2556580) Dataset: http://www.cs.ucr.edu/~iabsa001/files/gsod_readme.txt The code is tested in Cloudera VM.

This readme file explains how to run source code in Cloudera VM. Some of the path in the source are hard coded. In order to run locally, you need to update the path appropriately.

Instructions

Sample commands to Run Range.java to compute min max value

mkdir range_classes
javac -cp /usr/lib/hadoop/*:/usr/lib/hadoop/client-0.20/* -d range_classes/ Range.java
jar -cvf range.jar -C range_classes/ .
hadoop fs -rmr output
hadoop jar range.jar org.myorg.Range /user/cloudera/range/input /user/cloudera/range/output
hadoop fs -cat /user/cloudera/range/output/part-00000

Sample commands to Run Skyline.java to compute Local Skyline

mkdir skyline_classes
javac -cp /usr/lib/hadoop/*:/usr/lib/hadoop/client-0.20/* -d skyline_classes/ Skyline.java
jar -cvf Skyline.jar -C skyline_classes/ .
hadoop fs -rmr /user/cloudera/range/output5000
hadoop jar Skyline.jar org.myorg.Skyline data5000.txt /user/cloudera/range/output5000
hadoop fs -cat /user/cloudera/range/output5000/part-00000

Sample commands to Run GlobalSkyline.java to compute Local Skyline:

hadoop fs -cat /user/cloudera/range/output5000/vpn* >vpn
hadoop fs -cat /user/cloudera/range/output5000/filter* >filter
mkdir global_skyline_classes
javac -cp /usr/lib/hadoop/*:/usr/lib/hadoop/client-0.20/* -d global_skyline_classes/ GlobalSkyline.java
jar -cvf GlobalSkyline.jar -C global_skyline_classes/ .
hadoop fs -rmr /user/cloudera/range/globaloutput5000
hadoop jar GlobalSkyline.jar org.myorg.GlobalSkyline /user/cloudera/range/output5000/part* /user/cloudera/range/globaloutput5000
hadoop fs -cat /user/cloudera/range/globaloutput5000/part-00000

skylinemapreducehadoop's People

Contributors

masruba 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.