Question: ) Create a text file which includes your favorite poem and follow the instruction on the following link to run Hadoop in Pseudo-Distributed mode. Notes:
) Create a text file which includes your favorite poem and follow the instruction on the following link to run Hadoop in Pseudo-Distributed mode.
Notes: The user is Student and the password is bigdata. Please take a screenshot of the wordcount result of your favorite poem and upload.


the infi is in the picture
1. Modify pdsh's default remd to ssh In the terminal, type $ export POSH_RCMD_TYPE=SSH 2. Set the JAVA_HOME to point to our Java install directory Scd /usr/share/hadoop/etc/hadoop S nano hadoop envish Add the following in hadoop-env.sh export JAVA_HOME=/usr/lib/jvm/jova-17- opendkamd64/ To save, ctrl x, then y, then enter ("File Name to Write: hadoop-env.sh") MY A 1.6 Fle 3. Edit core-site.xml in the same directory S nono core-site.xml Add the following inside the configuration> tag, then save 11 ered wees le for the last man W were fs.defaultS hats://localhost:9000 . te ont test ERR wy Tell 4. Edit hdts-site.xml in the same directory to configure HDFS S nono hdfs-site.xml Paste the following inside the configuration tag, then save NACE 2.23 andet wurd by Aten: WRITY O EDGE the language THE in me dfs.replicationsame> value> cut test 5. Format Name Node $ cd /usr/share/hadoop S bin/hdfs nomenode format 6. Start the Hadoop DFs daemons Ssbin/start.sh 7. Browse the web interface for the NameNode to confirm if it is working properly http://localhost:98701 8. Create an HDS directory to store the file to analyze Sbin/hdf's dfs mkdir -p Directory Nome DirectoryName can be replaced with the directory name you would like to use. 9. Copy the input files into the HDFS input directory Sbin/hdf's dy's put FilePath DirectoryName "FilePath is the full path of the text file which has your favorite poem. You can find an example text file "/home/student/Wordcount in student folder * DirectoryName can be replaced with the directory name you would like to use. 10. Run wordcount using existing jar file bin/hadoop jar share/hadoop/mapreduce/hedoop-mopreduce examples 3.3.0.jar wordcount Directory Nome output DirectoryName is the directory which stores the text file you are going to analyze *output is the directory which the output file will be stored. It will be created automatically. It can be replaced with the directory name you would like to use. BELESS TER- - priya 4 Mahats a crt wil/part-r- 11. Examine the output file in the output directory S bin/hdfsdfss output To view the output file $ bin/hdfsdfs.cat Output FileName *OutputFileName is the name of the file found in your output directory. In this example, output/part-r-00000. 11. When you're done, stop the daemons $ sbin/stop-dfs.sh 1. Modify pdsh's default remd to ssh In the terminal, type $ export POSH_RCMD_TYPE=SSH 2. Set the JAVA_HOME to point to our Java install directory Scd /usr/share/hadoop/etc/hadoop S nano hadoop envish Add the following in hadoop-env.sh export JAVA_HOME=/usr/lib/jvm/jova-17- opendkamd64/ To save, ctrl x, then y, then enter ("File Name to Write: hadoop-env.sh") MY A 1.6 Fle 3. Edit core-site.xml in the same directory S nono core-site.xml Add the following inside the configuration> tag, then save 11 ered wees le for the last man W were fs.defaultS hats://localhost:9000 . te ont test ERR wy Tell 4. Edit hdts-site.xml in the same directory to configure HDFS S nono hdfs-site.xml Paste the following inside the configuration tag, then save NACE 2.23 andet wurd by Aten: WRITY O EDGE the language THE in me dfs.replicationsame> value> cut test 5. Format Name Node $ cd /usr/share/hadoop S bin/hdfs nomenode format 6. Start the Hadoop DFs daemons Ssbin/start.sh 7. Browse the web interface for the NameNode to confirm if it is working properly http://localhost:98701 8. Create an HDS directory to store the file to analyze Sbin/hdf's dfs mkdir -p Directory Nome DirectoryName can be replaced with the directory name you would like to use. 9. Copy the input files into the HDFS input directory Sbin/hdf's dy's put FilePath DirectoryName "FilePath is the full path of the text file which has your favorite poem. You can find an example text file "/home/student/Wordcount in student folder * DirectoryName can be replaced with the directory name you would like to use. 10. Run wordcount using existing jar file bin/hadoop jar share/hadoop/mapreduce/hedoop-mopreduce examples 3.3.0.jar wordcount Directory Nome output DirectoryName is the directory which stores the text file you are going to analyze *output is the directory which the output file will be stored. It will be created automatically. It can be replaced with the directory name you would like to use. BELESS TER- - priya 4 Mahats a crt wil/part-r- 11. Examine the output file in the output directory S bin/hdfsdfss output To view the output file $ bin/hdfsdfs.cat Output FileName *OutputFileName is the name of the file found in your output directory. In this example, output/part-r-00000. 11. When you're done, stop the daemons $ sbin/stop-dfs.sh