<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: List out the Metadata attributes in Hadoop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-out-the-Metadata-attributes-in-Hadoop/m-p/133351#M34934</link>
    <description>&lt;P&gt;Note that 'hdfs fsck / -files -blocks -locations' is a workaround. It can be slow on large clusters. There is no efficient way to query the block locations of a file.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2016 05:27:49 GMT</pubDate>
    <dc:creator>ArpitAgarwal</dc:creator>
    <dc:date>2016-07-19T05:27:49Z</dc:date>
    <item>
      <title>List out the Metadata attributes in Hadoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-out-the-Metadata-attributes-in-Hadoop/m-p/133349#M34932</link>
      <description>&lt;P&gt;1. List out the Metadata attributes in Hadoop&lt;/P&gt;&lt;P&gt;2. Can we see the block level metadata file? if Yes, how can we see that file&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 19:49:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-out-the-Metadata-attributes-in-Hadoop/m-p/133349#M34932</guid>
      <dc:creator>gsrao_cse</dc:creator>
      <dc:date>2016-07-18T19:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: List out the Metadata attributes in Hadoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-out-the-Metadata-attributes-in-Hadoop/m-p/133350#M34933</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11566/gsraocse.html" nodeid="11566"&gt;@srinivasa  rao&lt;/A&gt; &lt;/P&gt;&lt;P&gt;1.) You can access the Metadata attributes in Hadoop using the following rest command: curl -i "http://server1:50070/webhdfs/v1/tmp?user.name=hdfs&amp;amp;op=GETFILESTATUS" where 'server1' is the setting for 'dfs.namenode.http-address' and 'tmp' is the directory you wanted to get the Metadata attributes for&lt;/P&gt;&lt;P&gt;{"FileStatus":{"accessTime":0,"blockSize":0,"childrenNum":6,"fileId":16386,"group":"hdfs","length":0,"modificationTime":1468810999066,"owner":"hdfs","pathSuffix":"","permission":"777","replication":0,"storagePolicy":0,"type":"DIRECTORY"}}[root@server1 ~]# &lt;/P&gt;&lt;P&gt;A link to more information about the WebHDFS REST API is available at: &lt;A href="https://hadoop.apache.org/docs/r1.0.4/webhdfs.html#blocksize" target="_blank"&gt;https://hadoop.apache.org/docs/r1.0.4/webhdfs.html#blocksize&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.) You can also list out the block information for a directory with the command line: 'hdfs fsck / -files -blocks -locations'&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 21:14:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-out-the-Metadata-attributes-in-Hadoop/m-p/133350#M34933</guid>
      <dc:creator>mjohnson</dc:creator>
      <dc:date>2016-07-18T21:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: List out the Metadata attributes in Hadoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-out-the-Metadata-attributes-in-Hadoop/m-p/133351#M34934</link>
      <description>&lt;P&gt;Note that 'hdfs fsck / -files -blocks -locations' is a workaround. It can be slow on large clusters. There is no efficient way to query the block locations of a file.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 05:27:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-out-the-Metadata-attributes-in-Hadoop/m-p/133351#M34934</guid>
      <dc:creator>ArpitAgarwal</dc:creator>
      <dc:date>2016-07-19T05:27:49Z</dc:date>
    </item>
  </channel>
</rss>

