<?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: Saving output of impala query to hdfs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saving-output-of-impala-query-to-hdfs/m-p/64959#M74876</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20536"&gt;@gimp077&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I think there is two ways to do it:&lt;BR /&gt;&lt;BR /&gt;1- You can put the output of impala-query in HDFS after you get it in a system file with PUT HDFS command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;sudo -u hdfs hdfs dfs -put "${3}" hdfs_path&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;2- You can use a directe insert into a result_table (stored in HDFS)&amp;nbsp;just before your select statement:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;INSERT INTO result_tables YOUR_QUERY&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 12:43:16 GMT</pubDate>
    <dc:creator>AcharkiMed</dc:creator>
    <dc:date>2018-02-27T12:43:16Z</dc:date>
    <item>
      <title>Saving output of impala query to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saving-output-of-impala-query-to-hdfs/m-p/64892#M74875</link>
      <description>&lt;P&gt;Is it possible to save the output of an impala query to hdfs .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;impala-shell --ssl -i "${load_balancer}" -f  "${2}" -o "${3}"

&lt;/PRE&gt;&lt;P&gt;Would like to have it saved not to local but to hdfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:53:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saving-output-of-impala-query-to-hdfs/m-p/64892#M74875</guid>
      <dc:creator>gimp077</dc:creator>
      <dc:date>2022-09-16T12:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Saving output of impala query to hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saving-output-of-impala-query-to-hdfs/m-p/64959#M74876</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20536"&gt;@gimp077&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I think there is two ways to do it:&lt;BR /&gt;&lt;BR /&gt;1- You can put the output of impala-query in HDFS after you get it in a system file with PUT HDFS command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;sudo -u hdfs hdfs dfs -put "${3}" hdfs_path&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;2- You can use a directe insert into a result_table (stored in HDFS)&amp;nbsp;just before your select statement:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;INSERT INTO result_tables YOUR_QUERY&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 12:43:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saving-output-of-impala-query-to-hdfs/m-p/64959#M74876</guid>
      <dc:creator>AcharkiMed</dc:creator>
      <dc:date>2018-02-27T12:43:16Z</dc:date>
    </item>
  </channel>
</rss>

