Configuring Hadoop on NameNode

Log in to NameNode:

cd /opt/Hadoop/conf
    
vi core-site.xml  

Find and change the following properties with these values:

Filename
Property name
Property value
core-site.xml  fs.default.name  hdfs://namenode:9000/
dfs.permissions  False
hdfs-site.xml dfs.data.dir /opt/hadoop/hadoop/dfs/namenode/data
dfs.name.dir /opt/hadoop/hadoop/dfs/namenode
dfs.replication 1
mapred-site.xml mapred.job.tracker namenode:9001 
    vi masters
    namenode
    
    vi slaves
    datanode1
    datanode2
    datanode3