Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to remove nodes from my cluster gracefully. I added the following to my hadoop-site.xml:


I'm adding a node to be removed to the file and executing

hadoop dfsadmin -refreshNodes

as root, but I get

refreshNodes: org.apache.hadoop.fs.permission.AccessControlException: Superuser privilege is required

The mod on the HDFS partition is 777.

Running Cloudera's hadoop-ec2 distribution, ver 0.18

share|improve this question
up vote 1 down vote accepted

have a look in ${HADOOP_CONF_DIR}/hadoop-policy.xml and see if the root has permissions to do that, root maybe superuser over the system, however may not be over the app.

Try thi link


share|improve this answer

The property dfs.hosts.exclude names a file that contains a list of hosts that are not permitted to connect to the namenode. The full pathname of the file must be specified.

cd <hadoop_installation>/bin

  • To start datanode start datanode

  • To start tasktracker start tasktracker

  • To stop datanode (remove the datanode from the cluster) stop datanode

  • To stop tasktracker (remove tasktracker from the cluster) stop tasktracker

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.