1. 程式人生 > >六: Image Viewer 離線鏡像查看器

六: Image Viewer 離線鏡像查看器

align osi 選項 mage ive host -s data port

參考: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 file
Specify 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.
來源: http://hadoop.apache.org/docs/r2.6.5/hadoop-project-dist/hadoop-hdfs/HdfsImageViewer.html









來自為知筆記(Wiz)

六: Image Viewer 離線鏡像查看器