首页 > 其他 > 详细

六: Image Viewer 离线镜像查看器

时间:2017-08-30 23:27:38      阅读:367      评论:0      收藏:0      [点我收藏+]
  参考: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 离线镜像查看器

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!