Guo Ruijing created HDFS-6748:
---------------------------------

             Summary: Add layout version, NamespaceID, numItemsInTree in XML 
offlineImageViewer
                 Key: HDFS-6748
                 URL: https://issues.apache.org/jira/browse/HDFS-6748
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: tools
    Affects Versions: 2.0.5-alpha
            Reporter: Guo Ruijing


Add layout version, NamespaceID, numItemsInTree in XML offlineImageViewer:

existing implementation:
a.  hdfs oiv -p XML -i fsimage_0000000000000000929 -o fsimage.xml
b. cat fsimage.xml

?xml version="1.0"?>
<fsimage><NameSection>
<genstampV1>1000</genstampV1><genstampV2>1098</genstampV2><genstampV1Limit>0</genstampV1Limit><lastAllocatedBlockId>1073741922</lastAllocatedBlockId><txid>929</txid></NameSection>
<INodeSection><lastInodeId>16594</lastInodeId><inode><id>16385</id><type>DIRECTORY</type><name></name><mtime>1406180633657</mtime><permission>hdfs:supergroup:rwxr-xr-x</permission><nsquota>9223372036854775807</nsquota><dsquota>-1</dsquota></inode>

expected behavior:
layout version, NamespaceID, numItemsInTree are included in fsimage.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to