Code Monkey home page Code Monkey logo

hadoop-mapreduce's Introduction

Hadoop-MapReduce

Hadoop Map-Reduce

  1. ssh [email protected] -------------Before run--------------- hdfs dfs -mkdir Input1 hdfs dfs -put Input1 Input1

hdfs dfs -rm hdfs://iop-bi-master.imdemocloud.com:8020/user/hdfs/Input1/* hdfs dfs -rmdir hdfs://iop-bi-master.imdemocloud.com:8020/user/hdfs/Input1/

hdfs dfs -ls hdfs://iop-bi-master.imdemocloud.com:8020/user/hdfs/Input1

export HADOOP_USER_NAME=hdfs hdfs dfs -chown -R parth5494 hdfs://iop-bi-master.imdemocloud.com:8020/data/

--------------Run the code---------------------------------

/usr/iop/current/hadoop-client/bin/hadoop jar Assignment1.jar hadoop.WordCount /user/hdfs/Input1/ /Output1

-------------Viewing the output--------------

hdfs dfs -ls hdfs://iop-bi-master.imdemocloud.com:8020/Output1 hdfs dfs -cat hdfs://iop-bi-master.imdemocloud.com:8020/Output1/part-r-00000

agriculture 8 education 11 politics 10 sports 21

--------------After each run----------------

hdfs dfs -rm hdfs://iop-bi-master.imdemocloud.com:8020/data/intermediate/* hdfs dfs -rmdir hdfs://iop-bi-master.imdemocloud.com:8020/data/intermediate/ hdfs dfs -rm hdfs://iop-bi-master.imdemocloud.com:8020/Output1/* hdfs dfs -rmdir hdfs://iop-bi-master.imdemocloud.com:8020/Output1


  1. ssh [email protected] -------------Before run--------------- hdfs dfs -mkdir Input1 hdfs dfs -put Input1 Input1

export HADOOP_USER_NAME=hdfs hdfs dfs -chown -R parth5494 hdfs://iop-bi-master.imdemocloud.com:8020/data/

--------------Run the code---------------------------------

/usr/iop/current/hadoop-client/bin/hadoop jar Assignment1.jar hadoop.WordRank /user/hdfs/Input1/ /Output2

-------------Viewing the output--------------

hdfs dfs -ls hdfs://iop-bi-master.imdemocloud.com:8020/Output2 hdfs dfs -cat hdfs://iop-bi-master.imdemocloud.com:8020/Output2/part-r-00000

agriculture-education-sports-politics Iowa, Louisiana agriculture-politics Wyoming agriculture-politics-education Alaska, North_Dakota agriculture-politics-sports Nebraska, Delaware agriculture-politics-sports-education South_Dakota education-agriculture-politics Mississippi, Washington education-agriculture-politics-sports Ohio, Arkansas, New_York education-politics West_Virginia, Tennessee, South_Carolina education-politics-sports-agriculture Alabama education-sports-politics Maryland, Oklahoma politics Maine politics-agriculture-education-sports Kentucky politics-agriculture-sports Pennsylvania politics-agriculture-sports-education Wisconsin politics-education Hawaii, Georgia politics-education-sports Arizona, New_Mexico politics-sports Idaho politics-sports-agriculture Massachusetts sports Rhode_Island, Indiana sports-agriculture-politics-education Kansas sports-education-agriculture-politics Missouri, New_Jersey, Texas, Virginia sports-education-politics-agriculture California sports-politics Utah, Montana, Connecticut, New_Hampshire sports-politics-agriculture Nevada sports-politics-agriculture-education Florida sports-politics-education Michigan, Illinois, Minnesota, Oregon sports-politics-education-agriculture Vermont, Colorado, North_Carolina

--------------After each run----------------

hdfs dfs -rm hdfs://iop-bi-master.imdemocloud.com:8020/data/intermediate/* hdfs dfs -rmdir hdfs://iop-bi-master.imdemocloud.com:8020/data/intermediate/ hdfs dfs -rm hdfs://iop-bi-master.imdemocloud.com:8020/Output2/* hdfs dfs -rmdir hdfs://iop-bi-master.imdemocloud.com:8020/Output2


ssh -i ~/.ssh/cs643-proj1.pem [email protected] ssh -i ~/.ssh/cs643-proj1.pem [email protected]

hadoop-mapreduce's People

Contributors

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