hadoop node safemode

safemode模式

NameNode在启动的时候首先进入安全模式,如果datanode丢失的block达到一定的比例(1-dfs.safemode.threshold.pct),则系统会一直处于安全模式状态即只读状态。

 

hadoop dfsadmin -safemode leave

有两个方法离开这种安全模式

1. 修改dfs.safemode.threshold.pct为一个比较小的值,缺省是0.999。

2. hadoop dfsadmin -safemode leave命令强制离开

3 Responses so far.

  1. Quest Bars says:
    WOW just what I was searching for. Came here
    by searching for quest bars
  2. Quest bars says:
    What’s up colleagues, good piece of writing and good urging commented at
    this place, I am in fact enjoying by these.
  3. This is a topic close to my heart cheers, where are your contact details though?

LEAVE A COMMENT