<?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: Downloading a file inside a hadoop archive using Apache Knox in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148475#M32502</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1499/poojakhandelwal.html" nodeid="1499"&gt;@pooja khandelwal&lt;/A&gt;: You may use following approach to get hadoop archived file in your local machine. &lt;/P&gt;&lt;P&gt;hadoop fs -text &lt;STRONG&gt;har:///&lt;/STRONG&gt;org/project/archived/data/hive/warehouse/test.har/Stats/2016_06_20.txt &amp;gt; 2016_06_20.txt&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2016 13:49:32 GMT</pubDate>
    <dc:creator>SK1</dc:creator>
    <dc:date>2016-06-21T13:49:32Z</dc:date>
    <item>
      <title>Downloading a file inside a hadoop archive using Apache Knox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148474#M32501</link>
      <description>&lt;P&gt;I am able to download a hdfs file /org/project/archived/data/hive/warehouse/Stats/2016_06_20.txt in a broswer thorugh knox using below URL&lt;/P&gt;&lt;P&gt;&lt;A href="http://hostname:8443/knox/nm1/webhdfs/v1/org/project/archived/data/hive/warehouse/Stats/2016_06_20.txt?op=OPEN" target="_blank"&gt;http://hostname:8443/knox/nm1/webhdfs/v1/org/project/archived/data/hive/warehouse/Stats/2016_06_20.txt?op=OPEN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now I have a file in  a hadoop archive as below.&lt;/P&gt;&lt;P&gt;har:///org/project/archived/data/hive/warehouse/test.har/Stats/2016_06_20.txt&lt;/P&gt;&lt;P&gt;How can i do the same for the above file?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:19:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148474#M32501</guid>
      <dc:creator>pooja_khandelwa</dc:creator>
      <dc:date>2016-06-21T13:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading a file inside a hadoop archive using Apache Knox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148475#M32502</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1499/poojakhandelwal.html" nodeid="1499"&gt;@pooja khandelwal&lt;/A&gt;: You may use following approach to get hadoop archived file in your local machine. &lt;/P&gt;&lt;P&gt;hadoop fs -text &lt;STRONG&gt;har:///&lt;/STRONG&gt;org/project/archived/data/hive/warehouse/test.har/Stats/2016_06_20.txt &amp;gt; 2016_06_20.txt&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:49:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148475#M32502</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2016-06-21T13:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading a file inside a hadoop archive using Apache Knox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148476#M32503</link>
      <description>&lt;P&gt;I want to download the file through browser only.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:06:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148476#M32503</guid>
      <dc:creator>pooja_khandelwa</dc:creator>
      <dc:date>2016-06-21T14:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading a file inside a hadoop archive using Apache Knox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148477#M32504</link>
      <description>&lt;P&gt;First download the har's _index file located at /org/project/archived/data/hive/warehouse/test.har/_index. Then locate Stats/2016_06_20.txt in _index and its data-n file, the offset within the data file and its length. Suppose it's in data-0 and offset=125000 and file-length=8200, then you can access&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://hostname:8443/knox/nm1/webhdfs/v1/org/project/archived/data/hive/warehouse/test.har/data-0?op=OPEN&amp;amp;offset=125000&amp;amp;length=8200" target="_blank"&gt;http://hostname:8443/knox/nm1/webhdfs/v1/org/project/archived/data/hive/warehouse/test.har/data-0?op=OPEN&amp;amp;offset=125000&amp;amp;length=8200&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Check this &lt;A href="http://blog.woopi.org/wordpress/?p=175"&gt;nicely written blog&lt;/A&gt; for a full example and a PHP script which can automate the process.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:17:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148477#M32504</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-06-21T14:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading a file inside a hadoop archive using Apache Knox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148478#M32505</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 10:10:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Downloading-a-file-inside-a-hadoop-archive-using-Apache-Knox/m-p/148478#M32505</guid>
      <dc:creator>pooja_khandelwa</dc:creator>
      <dc:date>2016-06-22T10:10:07Z</dc:date>
    </item>
  </channel>
</rss>

