Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -x
- #en
- cd /usr/local/hadoop/
- bin/hdfs namenode -format
- sbin/start-dfs.sh
- bin/hdfs dfs -mkdir /user
- bin/hdfs dfs -mkdir /user/domi
- bin/hdfs dfs -put /home/domi/Desktop/wikiscraps/en wc_input
- bin/hadoop jar share/hadoop/tools/lib/hadoop-streaming-2.7.2.jar -input wc_input -output wc_output -mapper /home/domi/PycharmProjects/HadoopWordCount/wc/wc_mapper.py -reducer /home/domi/PycharmProjects/HadoopWordCount/wc/wc_reducer.py
- bin/hdfs dfs -cat wc_output/* > /home/domi/wc_output.txt
- bin/hdfs dfs -cat wc_output/*
- head -200 /home/domi/wc_output.txt > /home/domi/PycharmProjects/HadoopWordCount/most_frequent/en_200_most_frequent.txt
- sbin/stop-dfs.sh
- for x in `cd /etc/init.d ; ls hadoop*` ; do sudo service $x stop ; done
- rm -rf /tmp/hadoop-domi/dfs/*
- #pl
- cd /usr/local/hadoop/
- bin/hdfs namenode -format
- sbin/start-dfs.sh
- bin/hdfs dfs -mkdir /user
- bin/hdfs dfs -mkdir /user/domi
- bin/hdfs dfs -put /home/domi/Desktop/wikiscraps/pl wc_input
- bin/hadoop jar share/hadoop/tools/lib/hadoop-streaming-2.7.2.jar -input wc_input -output wc_output -mapper /home/domi/PycharmProjects/HadoopWordCount/wc/wc_mapper.py -reducer /home/domi/PycharmProjects/HadoopWordCount/wc/wc_reducer.py
- bin/hdfs dfs -cat wc_output/* > /home/domi/wc_output.txt
- bin/hdfs dfs -cat wc_output/*
- head -200 /home/domi/wc_output.txt > /home/domi/PycharmProjects/HadoopWordCount/most_frequent/pl_200_most_frequent.txt
- sbin/stop-dfs.sh
- for x in `cd /etc/init.d ; ls hadoop*` ; do sudo service $x stop ; done
- rm -rf /tmp/hadoop-domi/dfs/*
- #hu
- cd /usr/local/hadoop/
- bin/hdfs namenode -format
- sbin/start-dfs.sh
- bin/hdfs dfs -mkdir /user
- bin/hdfs dfs -mkdir /user/domi
- bin/hdfs dfs -put /home/domi/Desktop/wikiscraps/hu wc_input
- bin/hadoop jar share/hadoop/tools/lib/hadoop-streaming-2.7.2.jar -input wc_input -output wc_output -mapper /home/domi/PycharmProjects/HadoopWordCount/wc/wc_mapper.py -reducer /home/domi/PycharmProjects/HadoopWordCount/wc/wc_reducer.py
- bin/hdfs dfs -cat wc_output/* > /home/domi/wc_output.txt
- bin/hdfs dfs -cat wc_output/*
- head -200 /home/domi/wc_output.txt > /home/domi/PycharmProjects/HadoopWordCount/most_frequent/hu_200_most_frequent.txt
- sbin/stop-dfs.sh
- for x in `cd /etc/init.d ; ls hadoop*` ; do sudo service $x stop ; done
- rm -rf /tmp/hadoop-domi/dfs/*
- #de
- cd /usr/local/hadoop/
- bin/hdfs namenode -format
- sbin/start-dfs.sh
- bin/hdfs dfs -mkdir /user
- bin/hdfs dfs -mkdir /user/domi
- bin/hdfs dfs -put /home/domi/Desktop/wikiscraps/de wc_input
- bin/hadoop jar share/hadoop/tools/lib/hadoop-streaming-2.7.2.jar -input wc_input -output wc_output -mapper /home/domi/PycharmProjects/HadoopWordCount/wc/wc_mapper.py -reducer /home/domi/PycharmProjects/HadoopWordCount/wc/wc_reducer.py
- bin/hdfs dfs -cat wc_output/* > /home/domi/wc_output.txt
- bin/hdfs dfs -cat wc_output/*
- head -200 /home/domi/wc_output.txt > /home/domi/PycharmProjects/HadoopWordCount/most_frequent/de_200_most_frequent.txt
- sbin/stop-dfs.sh
- for x in `cd /etc/init.d ; ls hadoop*` ; do sudo service $x stop ; done
- rm -rf /tmp/hadoop-domi/dfs/*
- #sv
- cd /usr/local/hadoop/
- bin/hdfs namenode -format
- sbin/start-dfs.sh
- bin/hdfs dfs -mkdir /user
- bin/hdfs dfs -mkdir /user/domi
- bin/hdfs dfs -put /home/domi/Desktop/wikiscraps/sv wc_input
- bin/hadoop jar share/hadoop/tools/lib/hadoop-streaming-2.7.2.jar -input wc_input -output wc_output -mapper /home/domi/PycharmProjects/HadoopWordCount/wc/wc_mapper.py -reducer /home/domi/PycharmProjects/HadoopWordCount/wc/wc_reducer.py
- bin/hdfs dfs -cat wc_output/* > /home/domi/wc_output.txt
- bin/hdfs dfs -cat wc_output/*
- head -200 /home/domi/wc_output.txt > /home/domi/PycharmProjects/HadoopWordCount/most_frequent/sv_200_most_frequent.txt
- sbin/stop-dfs.sh
- for x in `cd /etc/init.d ; ls hadoop*` ; do sudo service $x stop ; done
- rm -rf /tmp/hadoop-domi/dfs/*
- #nl
- cd /usr/local/hadoop/
- bin/hdfs namenode -format
- sbin/start-dfs.sh
- bin/hdfs dfs -mkdir /user
- bin/hdfs dfs -mkdir /user/domi
- bin/hdfs dfs -put /home/domi/Desktop/wikiscraps/nl wc_input
- bin/hadoop jar share/hadoop/tools/lib/hadoop-streaming-2.7.2.jar -input wc_input -output wc_output -mapper /home/domi/PycharmProjects/HadoopWordCount/wc/wc_mapper.py -reducer /home/domi/PycharmProjects/HadoopWordCount/wc/wc_reducer.py
- bin/hdfs dfs -cat wc_output/* > /home/domi/wc_output.txt
- bin/hdfs dfs -cat wc_output/*
- head -200 /home/domi/wc_output.txt > /home/domi/PycharmProjects/HadoopWordCount/most_frequent/nl_200_most_frequent.txt
- sbin/stop-dfs.sh
- for x in `cd /etc/init.d ; ls hadoop*` ; do sudo service $x stop ; done
- rm -rf /tmp/hadoop-domi/dfs/*
Add Comment
Please, Sign In to add comment