Skip to content

Commit

Permalink
run word count success
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwenlau committed Jun 12, 2016
1 parent a37c5cb commit 817a72f
Show file tree
Hide file tree
Showing 28 changed files with 8 additions and 422 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

hadoop-base/files/hadoop-2.3.0.tar.gz
.DS_Store
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ RUN /usr/local/hadoop/bin/hdfs namenode -format

WORKDIR /root

EXPOSE 8025 8030 8050 8040 8088 50070
# EXPOSE 8030 8031 8032 8033 8040 8042 8060 8088 9000 50010 50020 50060 50070 50075 50090 50475

CMD [ "sh", "-c", "service ssh start; bash"]



16 changes: 1 addition & 15 deletions build-image.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
#!/bin/bash

# echo -e "\nbuild docker hadoop-base image\n"
# sudo docker build -f hadoop-base/Dockerfile -t kiwenlau/hadoop-base:1.0 ./hadoop-base

# echo ""


# echo -e "\nbuild docker hadoop-master image\n"
# sudo docker build -f hadoop-master/Dockerfile -t kiwenlau/hadoop-master:1.0 ./hadoop-master

# echo ""

# echo -e "\nbuild docker hadoop-slave image\n"
# sudo docker build -f hadoop-slave/Dockerfile -t kiwenlau/hadoop-slave:1.0 ./hadoop-slave

# echo ""
echo ""

echo -e "\nbuild docker hadoop image\n"
sudo docker build -t kiwenlau/hadoop:1.0 .
Expand Down
1 change: 0 additions & 1 deletion config/core-site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
<property>
<name>fs.defaultFS</name>
<value>hdfs://hadoop-master:9000/</value>
<description>NameNode URI</description>
</property>
</configuration>
1 change: 1 addition & 0 deletions config/run-wordcount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ hdfs dfs -cat input/file2.txt
# print the output of wordcount
echo -e "\nwordcount output:"
hdfs dfs -cat output/part-r-00000

4 changes: 4 additions & 0 deletions config/yarn-site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
<name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
<property>
<name>yarn.resourcemanager.hostname</name>
<value>hadoop-master</value>
</property>
</configuration>
Binary file removed hadoop-base/.DS_Store
Binary file not shown.
24 changes: 0 additions & 24 deletions hadoop-base/Dockerfile

This file was deleted.

Binary file removed hadoop-base/config/.DS_Store
Binary file not shown.
19 changes: 0 additions & 19 deletions hadoop-base/config/.bashrc

This file was deleted.

98 changes: 0 additions & 98 deletions hadoop-base/config/hadoop-env.sh

This file was deleted.

9 changes: 0 additions & 9 deletions hadoop-base/config/ssh_config

This file was deleted.

Binary file removed hadoop-master/.DS_Store
Binary file not shown.
33 changes: 0 additions & 33 deletions hadoop-master/Dockerfile

This file was deleted.

Binary file removed hadoop-master/files/.DS_Store
Binary file not shown.
9 changes: 0 additions & 9 deletions hadoop-master/files/core-site.xml

This file was deleted.

34 changes: 0 additions & 34 deletions hadoop-master/files/hdfs-site.xml

This file was deleted.

9 changes: 0 additions & 9 deletions hadoop-master/files/mapred-site.xml

This file was deleted.

28 changes: 0 additions & 28 deletions hadoop-master/files/run-wordcount.sh

This file was deleted.

2 changes: 0 additions & 2 deletions hadoop-master/files/slaves

This file was deleted.

12 changes: 0 additions & 12 deletions hadoop-master/files/start-hadoop.sh

This file was deleted.

31 changes: 0 additions & 31 deletions hadoop-master/files/yarn-site.xml

This file was deleted.

Loading

0 comments on commit 817a72f

Please sign in to comment.