本文整理了Java中org.apache.hadoop.hdfs.server.datanode.DataNode.startCheckDiskErrorThread()
方法的一些代码示例,展示了DataNode.startCheckDiskErrorThread()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataNode.startCheckDiskErrorThread()
方法的具体详情如下:
包路径:org.apache.hadoop.hdfs.server.datanode.DataNode
类名称:DataNode
方法名:startCheckDiskErrorThread
[英]Starts a new thread which will check for disk error check request every 5 sec
[中]启动一个新线程,该线程将每隔5秒检查一次磁盘错误检查请求
代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs
/**
* Check if there is a disk failure asynchronously and if so, handle the error
*/
public void checkDiskErrorAsync() {
synchronized(checkDiskErrorMutex) {
checkDiskErrorFlag = true;
if(checkDiskErrorThread == null) {
startCheckDiskErrorThread();
checkDiskErrorThread.start();
LOG.info("Starting CheckDiskError Thread");
}
}
}
代码示例来源:origin: io.prestosql.hadoop/hadoop-apache
/**
* Check if there is a disk failure asynchronously and if so, handle the error
*/
public void checkDiskErrorAsync() {
synchronized(checkDiskErrorMutex) {
checkDiskErrorFlag = true;
if(checkDiskErrorThread == null) {
startCheckDiskErrorThread();
checkDiskErrorThread.start();
LOG.info("Starting CheckDiskError Thread");
}
}
}
内容来源于网络,如有侵权,请联系作者删除!