码迷,mamicode.com
首页 > 其他好文 > 详细

六: Image Viewer 离线镜像查看器

时间:2017-08-30 23:46:33      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:viewer   ref   gray   dfs   ocs   code   oop   current   specified   

  参考:http://hadoop.apache.org/docs/r2.6.3/hadoop-project-dist/hadoop-hdfs/HdfsImageViewer.html
  离线镜像查看器用于查看HDFS镜像。hadoop2.4之前的镜像查看器与之后的不同,要查看2.4之前的,请用2.3的查看器,或者用oiv_legacy Command 命令。

输出格式:
1)web http(默认方式)
2)XML

使用方式:
1)web方式
首先启动HTTP REST:
列出有哪些目录:
查看指定目录:
2)XML方式
将fsimage里的内容dump到xml中


命令选项:
FlagDescription
-i|--inputFile input fileSpecify the input fsimage file to process. Required.
-o|--outputFile output fileSpecify the output filename, if the specified output processor generates one. If the specified file already exists, it is silently overwritten. (output to stdout by default)
-p|--processor processorSpecify the image processor to apply against the image file. Currently valid options are Web (default), XML and FileDistribution.
-addr addressSpecify the address(host:port) to listen. (localhost:5978 by default). This option is used with Web processor.
-maxSize sizeSpecify the range [0, maxSize] of file sizes to be analyzed in bytes (128GB by default). This option is used with FileDistribution processor.
-step sizeSpecify the granularity of the distribution in bytes (2MB by default). This option is used with FileDistribution processor.
-h|--helpDisplay the tool usage and help information and exit.











六: Image Viewer 离线镜像查看器

标签:viewer   ref   gray   dfs   ocs   code   oop   current   specified   

原文地址:http://www.cnblogs.com/skyrim/p/7455562.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!