Introducing Hadoop | 47
mapred-site.xml
Here, we have to configure the YARN as resource negotiator.
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
M03 Big Data Simplified XXXX 01.indd 47 5/10/2019 9:57:28 AM
48 | Big Data Simplied
yarn-site.xml
We have to configure the resource negotiator YARN.
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
M03 Big Data Simplified XXXX 01.indd 48 5/10/2019 9:57:28 AM
Introducing Hadoop | 49
Finally, it is needed to format the NameNode as follows.
$ hdfsnamenode -format
In industry, this above activity is performed only once when the cluster is set up. Because the
NameNode format will wipe out all the data/metadata from HDFS.
6. Start hadoop processes as follows.
$ ./start-dfs.sh
$ ./start-yarn.sh
Perform jps (Java process services) command in console.
M03 Big Data Simplified XXXX 01.indd 49 5/10/2019 9:57:29 AM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.97.170