How to restrict nodes that talk to namenode?

0 votes

I want to restrict the nodes that talk to the namenode. I want to set an include file, so that no other nodes can talk to the namenode, other than the nodes that are mentioned in the include file. How can I do this?

Jan 4 in Big Data Hadoop by digger
• 27,620 points
18 views
Is this restricted only to Hadoop platform? Is a similar file present in other tools also? Like if i'm dealing with puppet agents and Docker nodes...

1 answer to this question.

0 votes

Step 1: Create includes file in /home/hadoop directory.

Step 2: Update Hdfs-site.xml add the following property

<property>
<name>dfs.hosts</name>
<value>/home/hadoop/includes</value>
<final>true</final>
</property>

Step 3: Update mapred-site.xml 

<property>
<name>mapred.hosts</name>
<value>/home/hadoop/includes</value>
<final>true</final>
</property>

Step 4:  Run below command to refresh the nodes

hadoop dfsadmin -refreshNodes

Step 5: Run report command to see the list of nodes

hadoop dfsadmin -report
answered Jan 4 by Omkar
• 67,120 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to sync Hadoop configuration files to multiple nodes?

For syncing Hadoop configuration files, you have ...READ MORE

answered Jun 21, 2018 in Big Data Hadoop by HackTheCode
134 views
0 votes
1 answer

How to create a FileSystem object that can be used for reading from and writing to HDFS?

Read operation on HDFS In order to read ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,070 points

edited Mar 21, 2018 by nitinrawat895 213 views
0 votes
1 answer

How hadoop mapreduce job is submitted to worker nodes?

Alright, I think you are basically looking ...READ MORE

answered Mar 29, 2018 in Big Data Hadoop by Ashish
• 2,630 points
1,426 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,070 points
2,040 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,070 points
196 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,434 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
763 views
0 votes
1 answer

How to find the running namenodes and secondary name nodes in hadoop?

Name nodes: hdfs getconf -namenodes Secondary name nodes: hdfs getconf ...READ MORE

answered Nov 26, 2018 in Big Data Hadoop by Omkar
• 67,120 points
48 views
0 votes
1 answer

How to start namenode and datanode individually?

You can use these commands. For namenode: ./hadoop-daemon.sh start ...READ MORE

answered Dec 21, 2018 in Big Data Hadoop by Omkar
• 67,120 points
48 views