博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
finalize过程
阅读量:4705 次
发布时间:2019-06-10

本文共 1540 字,大约阅读时间需要 5 分钟。

之前说过case有两个

switch (startOpt) {      case FORMAT:        boolean aborted = format(conf, true);        System.exit(aborted ? 1 : 0);      case FINALIZE:        aborted = finalize(conf, true);        System.exit(aborted ? 1 : 0);      default:    }

现在看下finalize:

private static boolean finalize(Configuration conf,                               boolean isConfirmationNeeded                               ) throws IOException {    Collection
dirsToFormat = FSNamesystem.getNamespaceDirs(conf); Collection
editDirsToFormat = FSNamesystem.getNamespaceEditsDirs(conf); FSNamesystem nsys = new FSNamesystem(new FSImage(dirsToFormat, editDirsToFormat), conf); System.err.print( "\"finalize\" will remove the previous state of the files system.\n" + "Recent upgrade will become permanent.\n" + "Rollback option will not be available anymore.\n"); if (isConfirmationNeeded) { System.err.print("Finalize filesystem state ? (Y or N) "); if (!(System.in.read() == 'Y')) { System.err.println("Finalize aborted."); return true; } while(System.in.read() != '\n'); // discard the enter-key } nsys.dir.fsImage.finalizeUpgrade(); return false; }

 

接下来会牵扯一些rpc相关的.

 

问题:

<property>

  <name>dfs.namenode.handler.count</name>
  <value>10</value>
  <description>The number of server threads for the namenode.</description>
</property>

转载于:https://www.cnblogs.com/bokun-wang/p/3152909.html

你可能感兴趣的文章
Liferay 6.2 改造系列之十一:默认关闭CDN动态资源
查看>>
多线程
查看>>
折线切割平面
查看>>
获取当前路径下的所有文件路径 :listFiles
查看>>
图像形态学及更通用的形态学的原理及细节汇总
查看>>
linux开启coredump的3种方法
查看>>
数据驱动之 python + requests + Excel
查看>>
TCP/IP协议(4):网络层
查看>>
Eclipse下配置python开发环境插件
查看>>
for循环闭包添加事件方法
查看>>
temp for @青
查看>>
npm 换源
查看>>
Vultr Debian8系统一键快速DD安装Windows7系统
查看>>
UVA - 1610 Party Games(聚会游戏)(构造)
查看>>
POJ3278 Catch That Cow(BFS)
查看>>
使用vuex+vue-i18n方式国际化
查看>>
PAT 1085 Perfect Sequence[难]
查看>>
getPx function
查看>>
Hadoop2.0 Namenode HA实现方案
查看>>
Java 环境下使用 AES 加密的特殊问题处理
查看>>