Parquet data lake

In this section we outline how to set up a Parquet data lake incl. automation and SQL interface.

Parquet data lakes offer a low cost, scalable and interoperable way of storing DBC decoded CAN/LIN data. The data lake can be analyzed via e.g. Python/MATLAB or SQL interfaces.

This is a prerequisite for Grafana dashboards and some MATLAB/Python script examples.


Prepare & test DBC files

  1. Download the MF4 decoder mdf2parquet_decode.exe and review the documentation here

  2. Rename your DBC files to add the <channel> prefix (can1-<name>.dbc, can9-<name>.dbc, …)[1]

  3. Verify that you can decode your log file by drag & dropping it onto the mdf2parquet_decode.exe

Note

You can easily plot and inspect your Parquet files via our free Parquet viewer (online, or offline with no install)

Note

If you have issues decoding your data, see our MF4 decoder troubleshooting guide


Create a Parquet data lake

Once you have tested your setup locally, you can set up your Parquet data lake and automation.

You can set this up in multiple ways, depending on your existing environment[2]:

  1. Amazon - create a Parquet data lake stored in an AWS S3 bucket (incl. automation)

  2. Google - create a Parquet data lake stored in a Google bucket (incl. automation)

  3. Azure - create a Parquet data lake stored in an Azure container (incl. automation)

  4. Local - create a Parquet data lake stored locally with manual processing



Technical

Advanced: The data lake folder and table structure.

Data lake structure

Local and cloud data lakes use the same structure:

<deviceid>/<message>/<yyyy>/<mm>/<dd>/<session>_<split>.parquet
e.g. AABBCCDD/CAN9_GnssPos/2024/03/14/00000012_00000001.parquet
  • Each <message> folder has one schema (timestamp t plus DBC signals)

  • The date folders let queries skip irrelevant files (e.g. in Grafana-Athena)

  • Trip summaries and other advanced outputs are stored under aggregations/

  • Cloud SQL tables are named tbl_<deviceid>_<message>

  • Helper tables are named tbl_aggregations_<name>

For details, see the MF4 decoder docs.