New microsoft power point presentation
-
Upload
rajsandhu1989 -
Category
Documents
-
view
437 -
download
0
Transcript of New microsoft power point presentation
![Page 1: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/1.jpg)
Hadoop on MultiNodeRajinder Sandhuerrajindersandhu.blogspot.com
![Page 2: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/2.jpg)
Single Node
• Install hadoop on single node.•Stop hadoop using• /hadoop/bin/stop-all.sh
![Page 3: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/3.jpg)
Networking
• All nodes should be on same network and can be accessed.• Assign IP for all nodes• Edit• sudo nano /etc/hosts• In this file add following lines•master 192.168.216.130• slave 192.168.216.131
![Page 4: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/4.jpg)
SSH access
• You should be able to ssh the all nodes from master• Add a RSA key using following command• ssh-copy-id -i $HOME/.ssh/id_rsa.pub
hduser@slave• Finally check the SSH by following
commands• ssh master• ssh slave
![Page 5: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/5.jpg)
Configuration for Hadoop
•Update •/hadoop/conf /masters to•master
•and•/hadoop/conf/slaves to•master• slave
![Page 6: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/6.jpg)
conf/core-site.xml (ALL Machines)
• <property> <name>fs.default.name</name>• <value>hdfs://master:54310</value> • <description>The name of the default file system. A
URI whose scheme and authority determine the FileSystem implementation. The uri's scheme determines the config property (fs.SCHEME.impl) naming the FileSystem implementation class. The uri's authority is used to determine the host, port, etc. for a filesystem.</description> • </property>
![Page 7: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/7.jpg)
conf/mapred-site.xml (ALL machines)
• <property> <name>mapred.job.tracker</name> • <value>master:54311</value> • <description>The host and port that the
MapReduce job tracker runs at. If "local", then jobs are run in-process as a single map and reduce task. </description> • </property>
![Page 8: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/8.jpg)
conf/hdfs-site.xml (ALL machines)
• <property> • <name>dfs.replication</name> • <value>2</value> • <description>Default block replication. The
actual number of replications can be specified when the file is created. The default is used if replication is not specified in create time. </description> • </property>
![Page 9: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/9.jpg)
Formatting the HDFS filesystem
• Format the namenode by following command• /hadoop/bin/hadoop namenode –
format• This will erase all previous data from
hadoop
![Page 10: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/10.jpg)
Starting the multi-node cluster
•On master•/hadoop/bin/start-dfs.sh•/hadoop/bin/start-mapred.sh
![Page 11: New microsoft power point presentation](https://reader036.fdocuments.in/reader036/viewer/2022083003/5592de0c1a28abef3b8b4760/html5/thumbnails/11.jpg)
Running the Map-reduce Job
• Run word count application by following command• bin/hadoop jar hadoop*examples*.jar
wordcount /user/hduser/gutenberg /user/hduser/gutenberg-output