<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>#Apache Archives - anteelo</title>
	<atom:link href="https://anteelo.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://anteelo.com/tag/apache/</link>
	<description>Leading Digital Solution Firm</description>
	<lastBuildDate>Fri, 21 May 2021 08:54:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.12</generator>

<image>
	<url>https://anteelo.com/wp-content/uploads/2020/01/cantlogo.png</url>
	<title>#Apache Archives - anteelo</title>
	<link>https://anteelo.com/tag/apache/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Convert CSV to Parquet Files</title>
		<link>https://anteelo.com/convert-csv-to-parquet-files/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-csv-to-parquet-files</link>
		
		<dc:creator><![CDATA[Anteelo Master]]></dc:creator>
		<pubDate>Thu, 07 Jan 2021 08:52:08 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[#Apache]]></category>
		<category><![CDATA[#CSV]]></category>
		<category><![CDATA[#Parquet]]></category>
		<guid isPermaLink="false">https://anteelo.com/?p=3533</guid>

					<description><![CDATA[<p>Apache Parquet Apache Parquet is a columnar data storage format, which provides a way to store tabular data column wise. Columns of same date-time are stored together as rows in Parquet format, so as to offer better storage, compression and data retrieval. What is Row Oriented Storage Format? In row oriented storage, data is stored [&#8230;]</p>
<p>The post <a href="https://anteelo.com/convert-csv-to-parquet-files/">Convert CSV to Parquet Files</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Apache Parquet</h2>
<p>Apache Parquet is a columnar data storage format, which provides a way to store tabular data column wise. Columns of same date-time are stored together as rows in Parquet <a href="https://anteelo.com/">format</a>, so as to offer better storage, compression and data retrieval.</p>
<h2>What is Row Oriented Storage Format?</h2>
<p>In row oriented storage, data is stored row wise on to the disk.</p>
<h2>Columnar Storage Format</h2>
<p>In columnar storage format above table will be stored column wise.</p>
<p>As you can see in this format all the IDs are together and so are names and salaries. A Query selecting Name column will require less I/O time as all the values are adjacent unlike in row oriented format.</p>
<h2>Using Apache Parquet</h2>
<p>Using Parquet format has two advantages</p>
<ol>
<li>Reduced storage</li>
<li>Query performance</li>
</ol>
<p>Depending on your business use case, Apache Parquet is a good option if you have to provide partial search features i.e. not querying all the columns, and you are not worried about file write time.</p>
<p>Apache Parquet format is supported in all Hadoop based frameworks. Queries selecting few columns from a big set of columns, run faster because disk I/O is much improved because of <a href="https://www.instagram.com/anteelodesign/">homogeneous data</a> stored together.</p>
<p>To use Apache spark we need to convert existing data into parquet format. In this article we will learn to convert CSV files to parquet format and then retrieve them back.</p>
<h2>CSV to Parquet</h2>
<p>&nbsp;</p>
<p>We will convert csv files to parquet format using Apache Spark.</p>
<p>Below is pyspark code to convert csv to parquet. You can edit the names and types of columns as per your input.csv</p>
<p>Above code will create parquet files in <em>input-parquet </em>directory. Files will be in binary format so you will not able to read them. You can check the size of the directory and compare it with size of CSV compressed file.</p>
<p>For a 8 MB csv, when compressed, it generated a 636kb parquet file.</p>
<p><img decoding="async" class="aligncenter" src="https://lh3.googleusercontent.com/proxy/5nVYuyDqFfgve0X88CH-eg4UzbtZS9zjOZZj267Km3XGSYpHdMHNId-txr_cBdmrfj2uckjeJOHouRl0HiYhdKw0CnkSfu8x-Kc-XjKH8AQeV9YjDeZZcF313whqwo7IaljrGPaw8L95_4xoPS3bLHbpFji9" alt="How-to-convert-CSV-to-Parquet-Files – Humble Bits" /></p>
<h2>The other way: Parquet to CSV</h2>
<p>You can retrieve csv files back from parquet files.</p>
<p>You can compare the original and converted CSV files.</p>
<p>You can provide parquet files to your Hadoop based applications rather than providing plain CSV files.</p>
<p>The post <a href="https://anteelo.com/convert-csv-to-parquet-files/">Convert CSV to Parquet Files</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
