<?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>topic [resolved] Hive : Create external table based on a CSV file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Hive-Create-external-table-based-on-a-CSV-file/m-p/2289815#M63161</link>
    <description>Hello, I have searched in the forum and documentation but I didn't see where we specify where the csv is on the hdfs.&lt;BR /&gt;I have a .csv file located in my /user/mapr/extrnal_tables/my_file.csv&lt;BR /&gt;Hive create the table with the good format since I use a schema, the name of columns are rights etc...&lt;BR /&gt;BUT, the data is not there when I only specify in the URI the directory (/user/mapr/extrnal_tables), and when I specify the complete path of the file (/user/mapr/extrnal_tables/my_file.csv) I get this error:&lt;BR /&gt;Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:maprfs:/user/mapr/external_tables/my_file.csv is not a directory or unable to create one)&lt;BR /&gt;The job has 3 steps:&lt;BR /&gt;1) FileList -&amp;gt; OK&lt;BR /&gt;2) Put to HDFS files from previous job at specified location -&amp;gt; OK&lt;BR /&gt;3) Create Hive table -&amp;gt; NOK&lt;BR /&gt;EDIT: it's OK now.&lt;BR /&gt;I only put a prefix on the file and it magically worked I don't know why.</description>
    <pubDate>Sat, 16 Nov 2024 10:31:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:31:12Z</dc:date>
    <item>
      <title>[resolved] Hive : Create external table based on a CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Hive-Create-external-table-based-on-a-CSV-file/m-p/2289815#M63161</link>
      <description>Hello, I have searched in the forum and documentation but I didn't see where we specify where the csv is on the hdfs.&lt;BR /&gt;I have a .csv file located in my /user/mapr/extrnal_tables/my_file.csv&lt;BR /&gt;Hive create the table with the good format since I use a schema, the name of columns are rights etc...&lt;BR /&gt;BUT, the data is not there when I only specify in the URI the directory (/user/mapr/extrnal_tables), and when I specify the complete path of the file (/user/mapr/extrnal_tables/my_file.csv) I get this error:&lt;BR /&gt;Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:maprfs:/user/mapr/external_tables/my_file.csv is not a directory or unable to create one)&lt;BR /&gt;The job has 3 steps:&lt;BR /&gt;1) FileList -&amp;gt; OK&lt;BR /&gt;2) Put to HDFS files from previous job at specified location -&amp;gt; OK&lt;BR /&gt;3) Create Hive table -&amp;gt; NOK&lt;BR /&gt;EDIT: it's OK now.&lt;BR /&gt;I only put a prefix on the file and it magically worked I don't know why.</description>
      <pubDate>Sat, 16 Nov 2024 10:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Hive-Create-external-table-based-on-a-CSV-file/m-p/2289815#M63161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Hive : Create external table based on a CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Hive-Create-external-table-based-on-a-CSV-file/m-p/2289816#M63162</link>
      <description>You dont specify the filename in Hive create table statement. Hive only works at the directory level so multiple reducers can quickly write data in to HDFS. If you specify a filename it will have to send the file to one reducer and result in bad performance.</description>
      <pubDate>Mon, 11 Jul 2016 15:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Hive-Create-external-table-based-on-a-CSV-file/m-p/2289816#M63162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-11T15:05:43Z</dc:date>
    </item>
  </channel>
</rss>

