# Processing hundreds of millions of records

**URL:** <https://forum.knime.com/t/processing-hundreds-of-millions-of-records/13593>\
**Category:** KNIME Analytics Platform\
**Created:** [February 26, 2019, 3:58am UTC](https://forum.knime.com/t/processing-hundreds-of-millions-of-records/13593 "2019-02-26T03:58:41Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 4, 2019, 10:04pm UTC](https://forum.knime.com/t/processing-hundreds-of-millions-of-records/13593/19 "2019-03-04T22:04:11Z")

</div>

well in fact there is a way …  
You can use the HIVE function of an external table from the local Big Data environment and point it to a folder that contains all the CSV files you want to aggregate. And then you can refer to this external table and convert that to a regular table. All the CSV files will have to have the same structure and you will have to specify the structure.

Please not I have used “|” as a separator in the 3 sample files.

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/7/7531daf8cc680ef340cf64d13e84059901be94b6.png)

OK and here come the quirks:

- the HIVE version KNIME is using does not respect the settings to skip the initial row (`TBLPROPERTIES ('skip.header.line.count'='1', 'skip.footer.line.count'='4')`) and also not the setting for the footers
- if you use a folder that is within the KNIME workspace it will contain a _workflowset.meta_ file that will also be read and imported

![image](https://forum-cdn.knime.com/uploads/default/original/2X/e/e72c2a0178e7eb2f51dc20ec6f0d7ac52625b731.png)

So if you can live with having all the data initially as strings (you can convert them later) and you have to remove the lines that contain the headers and the XML-info from the workflowset.meta you can import all the CSV files from one folder in one step (ab)using the Local Big data environment. Not sure if there also is a maximum (might depend on the power of your machine).

The upside is the external table will update each time you add new files - but please be aware that often you would have Hive work together with Impala’s COMPUTE INCREMENTAL STATS which is not available in the the local Big Data environment of KNIME.

[kn\_example\_bigdata\_hive\_csv\_loader.knar](https://forum-cdn.knime.com/uploads/default/original/2X/9/933b62610eaa52d3e2d9a536211cf8f72749eb0c.knar) (688.8 KB)

---

_[View the full topic](https://forum.knime.com/t/processing-hundreds-of-millions-of-records/13593)._
