<?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 Stored data from CSV into a Parquet File and export Parquet File Format in HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stored-data-from-CSV-into-a-Parquet-File-and-export-Parquet/m-p/119328#M38808</link>
    <description>&lt;PRE&gt;Hi experts,I have a .csv file stored in HDFS and I need to do 3 steps:a) Create a parquet file format b) Load the data from .csv to the Parquet Filec) Store Parquet file in a new HDFS directoryThe first step I had completed using Apache Hive:

create external table parquet_file (ID BIGINT, Date TimeStamp, Size Int)
  ROW FORMAT SERDE 'parquet.hive.serde.ParquetHiveSerDe'
  STORED AS 
    INPUTFORMAT "parquet.hive.DeprecatedParquetInputFormat"
    OUTPUTFORMAT "parquet.hive.DeprecatedParquetOutputFormat"
    LOCATION '.../filedirectory';

How can I complete tasks b) and c)??? Many thanks!&lt;/PRE&gt;</description>
    <pubDate>Thu, 25 Aug 2016 19:26:21 GMT</pubDate>
    <dc:creator>Stewart12586</dc:creator>
    <dc:date>2016-08-25T19:26:21Z</dc:date>
    <item>
      <title>Stored data from CSV into a Parquet File and export Parquet File Format in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stored-data-from-CSV-into-a-Parquet-File-and-export-Parquet/m-p/119328#M38808</link>
      <description>&lt;PRE&gt;Hi experts,I have a .csv file stored in HDFS and I need to do 3 steps:a) Create a parquet file format b) Load the data from .csv to the Parquet Filec) Store Parquet file in a new HDFS directoryThe first step I had completed using Apache Hive:

create external table parquet_file (ID BIGINT, Date TimeStamp, Size Int)
  ROW FORMAT SERDE 'parquet.hive.serde.ParquetHiveSerDe'
  STORED AS 
    INPUTFORMAT "parquet.hive.DeprecatedParquetInputFormat"
    OUTPUTFORMAT "parquet.hive.DeprecatedParquetOutputFormat"
    LOCATION '.../filedirectory';

How can I complete tasks b) and c)??? Many thanks!&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Aug 2016 19:26:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stored-data-from-CSV-into-a-Parquet-File-and-export-Parquet/m-p/119328#M38808</guid>
      <dc:creator>Stewart12586</dc:creator>
      <dc:date>2016-08-25T19:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stored data from CSV into a Parquet File and export Parquet File Format in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stored-data-from-CSV-into-a-Parquet-File-and-export-Parquet/m-p/119329#M38809</link>
      <description>&lt;P&gt;B) Create a hive table. The Hive table should have all the columns stated in your hive2parquet.csv file. Assume (col1, col2, col3). Also assume your csv file is in /tmp dir inside HDFS.&lt;/P&gt;&lt;P&gt; 1- Log into Hive and at hive command prompt and execute 2- and 3- and C) below;&lt;/P&gt;&lt;P&gt;// create the hive table &lt;/P&gt;&lt;P&gt; 2-  create table temp_txt (col1 string,col2 string, col3 string)  row format delimited fields terminated by ',';&lt;/P&gt;&lt;P&gt;// load the hive table with hive2parquet.csv  file  &lt;/P&gt;&lt;P&gt;3-  load data input ' /tmp/hive2parquet.csv' into table temp_text;&lt;/P&gt;&lt;P&gt;// Insert from table 'temp_txt' to table 'table_parquet_file' &lt;/P&gt;&lt;P&gt;C-  insert into table  table_parquet_file select * from temp_txt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 20:13:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stored-data-from-CSV-into-a-Parquet-File-and-export-Parquet/m-p/119329#M38809</guid>
      <dc:creator>adaher</dc:creator>
      <dc:date>2016-08-25T20:13:46Z</dc:date>
    </item>
  </channel>
</rss>

