<?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: How does --hive import work in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108090#M33580</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;: Got it. But, I do not want the data moved out of warehouse dir /target-dir.Is there a solution for that? or I need to do it separately without the hive import option to keep it in hdfs ?Also, the link suggests using hcatalog: &lt;A target="_blank" href="http://grokbase.com/t/sqoop/user/143waxddrr/jira-commented-sqoop-1293-hive-import-causes-target-dir-and-warehouse-dir-to-not-be-respected-nor-delete-target-dir"&gt;http://grokbase.com/t/sqoop/user/143waxddrr/jira-commented-sqoop-1293-hive-import-causes-target-dir-and-warehouse-dir-to-not-be-respected-nor-delete-target-dir&lt;/A&gt; .Is it really a solution to the problem?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2016 14:41:16 GMT</pubDate>
    <dc:creator>simran_k</dc:creator>
    <dc:date>2016-07-01T14:41:16Z</dc:date>
    <item>
      <title>How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108081#M33571</link>
      <description>&lt;P&gt;Whenever I use --hive-import argument, I specify a --warehouse-dir as well in my sqoop jobs.&lt;/P&gt;&lt;P&gt;Now, I check my hive tables and data is indeed there but my question is why do I not see any files in warehouse dir using hadoop fs -ls command ?&lt;/P&gt;&lt;P&gt;Sure I do see them when I replace -hive-import and --warehouse-dir with --target-dir .&lt;/P&gt;&lt;P&gt;How does it work? What are the advantages of one over the other?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:04:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108081#M33571</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-07-01T13:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108082#M33572</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt; In sqoop --hive import --warehouse directory is the temporary HDFS directory location which collects the imported data finally it moves the data (metadata of files) to hive.warehouse.dir (generally /apps/hive/warehouse- as we specify in our hive-site.xml)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:31:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108082#M33572</guid>
      <dc:creator>dchiguruvad</dc:creator>
      <dc:date>2016-07-01T13:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108083#M33573</link>
      <description>&lt;P&gt;&lt;EM&gt;Awesome.Thank you!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:42:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108083#M33573</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-07-01T13:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108084#M33574</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt;&lt;P&gt;Can you please check the hive table created using describe formatted &amp;lt;hivetablename&amp;gt; and check the location of the hive data?&lt;/P&gt;&lt;P&gt;It seems like data is being written to different directory and with --warehouse-dir not taking effect.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:49:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108084#M33574</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-07-01T13:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108085#M33575</link>
      <description>&lt;P&gt;so if I replace --warehouse-dir with --target-dir , it would permanently store files in target-dir location and then I can have my tables mapped to this location as external table? &lt;A rel="user" href="https://community.cloudera.com/users/5354/dchiguruvada.html" nodeid="5354"&gt;@Dileep Kumar Chiguruvada&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:00:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108085#M33575</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-07-01T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108086#M33576</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;&lt;P&gt;You are right. It shows table location as &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;hdfs://FQDN:8020/user/hive/warehouse/magentodb.db/TABLENAME&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:15:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108086#M33576</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-07-01T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108087#M33577</link>
      <description>&lt;P&gt;Why would it ignore the argument? I tried it with target-dir as well and that did not work either &lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:16:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108087#M33577</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-07-01T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108088#M33578</link>
      <description>&lt;P&gt;I believe it is because of the --hive-import argument? I could remove that but I have to use --hive-overwrite argument and I can't use it unless I use --hive-import.  &lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt; . So, how do I use --hive-overwrite while using warehouse-dir /target-dir?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:19:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108088#M33578</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-07-01T14:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108089#M33579</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt;&lt;P&gt;--target-dir is the while importing table data into HDFS using the Sqoop import tool and might not work with --hive-import.&lt;/P&gt;&lt;P&gt;As &lt;A rel="user" href="https://community.cloudera.com/users/5354/dchiguruvada.html" nodeid="5354"&gt;@Dileep Kumar Chiguruvada&lt;/A&gt; explained earlier, the value of Hive warehouse directory will be picked from hive-site.xml.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:38:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108089#M33579</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-07-01T14:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108090#M33580</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;: Got it. But, I do not want the data moved out of warehouse dir /target-dir.Is there a solution for that? or I need to do it separately without the hive import option to keep it in hdfs ?Also, the link suggests using hcatalog: &lt;A target="_blank" href="http://grokbase.com/t/sqoop/user/143waxddrr/jira-commented-sqoop-1293-hive-import-causes-target-dir-and-warehouse-dir-to-not-be-respected-nor-delete-target-dir"&gt;http://grokbase.com/t/sqoop/user/143waxddrr/jira-commented-sqoop-1293-hive-import-causes-target-dir-and-warehouse-dir-to-not-be-respected-nor-delete-target-dir&lt;/A&gt; .Is it really a solution to the problem?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:41:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108090#M33580</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-07-01T14:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: How does --hive import work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108091#M33581</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you have a Hive metastore associated with your HDFS cluster, --hive-import and -hive-overwrite always writes to Hive warehouse directory. Arguments like --warehouse-dir &amp;lt;dir&amp;gt;, --as-avrodatafile, --as-sequencefile, --target-dir etc. are not honoured.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 15:15:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-hive-import-work/m-p/108091#M33581</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-07-01T15:15:31Z</dc:date>
    </item>
  </channel>
</rss>

