Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should Hadoop be restarted if core-site.xml is updated

Tags:

hadoop2

I am a newbie of Hadoop, I added more properties to core-site.xml in currently running Hadoop system, so should I restarted Hadoop to make those new properties available

like image 656
Rui Avatar asked Oct 24 '25 17:10

Rui


1 Answers

The core-site.xml file tells Hadoop daemon where NameNode is running in the cluster. It contains the configuration that overrides default settings for Hadoop Core such as I/O settings that are common to HDFS.

You can reload configuration without cluster restart. Check dfsadmin

hdfs dfsadmin -refreshNamenodes datanodehost:port   

For the given datanode, reloads the configuration files, stops serving the removed block-pools and starts serving new block-pools.

See HDFS Command Guide

like image 100
PoX Avatar answered Oct 26 '25 14:10

PoX