Hadoop2015. 1. 13. 14:36

데이터노드의 hdfs-site.xml 설정을 확인 하던중 이상한 점을 발견

사용디스크 설정이 file:///home/hadoop/data,file:///data1/data,file:///data2/data,file:///data3/data 되어있지만

실제 존재하는 디스크는 file:///home/hadoop/data,file:///data1/data

그리고 dfs.datanode.failed.volumes.tolerated 설정이 3으로 되어있음. 디스크 4개가 고장나면 데이터노드 서버스를

종료한다는 의미인데, 실제로 디스크가 2개밖에 존재하지 않는 상황에서 이런 설정을 하면 문제가 없는건가?


<property>

    <name>dfs.datanode.data.dir</name>

    <value>file:///home/hadoop/data,file:///data1/data,file:///data2/data,file:///data3/data</value>

    <description>

     If this is a comma-delimited list of directories then the name table is replicated in all of the directories, for redundancy.

    </description>

 </property>

 <property>

    <name>dfs.datanode.failed.volumes.tolerated</name>

    <value>3</value>

    <description>

     The number of volumes that are allowed to fail before a datanode stops offering service.

     By default any volume failure will cause a datanode to shutdown.

    </description>

  </property>


Posted by 유나아빠