Better HN
topnewbestaskshowjobs
Log inSign up

pitah1

38 karma · joined Jan 19, 2022 (4y ago) · 70 submissions

Data Engineer https://data.catering/ https://github.com/pflooky
Submissions

comment 1y ago · link · parent

I have a tool[1] that solely worked with docker before and was putting off supporting podman for a while because I thought it would take some time. But it turned out to work straight out of the box without tweaking. Essentially frictionless.

[1] Tool for reference: https://github.com/data-catering/insta-infra

2.

Show HN: Insta-infra – One click start any service(github.com ↗)

1 points · by pitah1 · 1y ago · discuss

comment 1y ago · link · parent

It leverages docker compose 'depends_on' for the dependencies (https://docs.docker.com/compose/how-tos/startup-order/). For example, airflow depends on airflow-init container to be completed successfully which then depends on postgres.

https://github.com/data-catering/insta-infra/blob/main/cmd/i...

comment 1y ago · link · parent

I have a small open-source project, that uses docker compose behind the scenes, to help startup any service. You can look to add it in (or I am also happy to add it in) and then users are one command away from running it (insta moose). Recently just added in lakekeeper and various data annotation tools.

insta-infra: https://github.com/data-catering/insta-infra

comment 1y ago · link · parent

This looks really cool. I'm surprised I didn't find this before when I was searching for something like this. I've been using jpackage[1] for a while now but this seems like it would be easier for me to manage using JReleaser given there is support via Gradle.

Would this be a simple lift and shift job to move to JReleaser (as it seems like it just uses jpackage behind the scenes)? With jpackage, if you want to create a Windows exe, it needs to be built on Windows. Similarly, build dmg on Mac and deb for Linux. Does Jreleaser also require this?

[1] https://docs.oracle.com/en/java/javase/22/docs/specs/man/jpa...

comment 1y ago · link · parent

I've taken a stab at making a solution for it via https://github.com/data-catering/data-caterer. It focuses on making integration tests easier by generating data across batch and real-time data sources, whilst maintaining any relationships across the datasets. You can automatically set it to pick up the schema definition from the metadata in your database to generate data for it. Once your app/job/data consumer(s) use the data, you can run data validations to ensure it runs as expected. Then you can clean up the data at the end (including data pushed to downstream data sources) if run in a shared test environment or locally. All of this runs within 60 seconds.

It also gives you the option of running other types of tests such as load/performance/stress testing via generating larger amounts of data.

7.

A year of getting paid from Medium articles(data.catering ↗)

1 points · by pitah1 · 1y ago · discuss

8.

The ultimate test of your Docker image: Running in GitHub Actions(medium.com ↗)

1 points · by pitah1 · 2y ago · discuss

comment 2y ago · link · parent

This was also my philosophy behind creating insta-infra (https://github.com/data-catering/insta-infra). Single command to run any service. No additional thinking required.

Too many times I've become very frustrated when an installation doesn't work the first time or it has some dependencies that you haven't installed (or worse, you have a different version). Then you end up in some deep rabbit hole that you can't dig out from. Now for each tool I make, it must have a quick start with a single command.

comment 2y ago · link · parent

The world of mock data generation is now flooded with ML/AI solutions generating data but this is a solution that understands it is better to generate metadata to help guide the data generation. I found this was the case given the former solutions rely on production data, retraining, slow speed, huge resources, no guarantee about leaking sensitive data and its inability to retain referential integrity.

As mentioned in the article, I think there is a lot of potential in this area for improvement. I've been working on a tool called Data Caterer (https://github.com/data-catering/data-caterer) which is a metadata-driven data generator that also can validate based on the generated data. Then you have full end-to-end testing using a single tool. There are also other metadata sources that can help drive these kinds of tools outside of using LLMs (i.e. data catalogs, data quality).

11.

Data Contracts in Action: Tools(medium.com ↗)

1 points · by pitah1 · 2y ago · discuss

comment 2y ago · link · parent

I recently went down the rabbit hole of using PyScript for running a Python CLI app in the browser.

It felt hacky the whole time, especially when dependencies were involved. I had to create wrapper classes to work around Pydantic 2.x not being available to use. I tried to put all logic into the Python files but found some things missing that I had to put in JavaScript.

I think it could be good in use cases where you want some simple UI with custom UI logic on top of your Python code but maybe Streamlit or Gradio could be more suitable.

GitHub repo: https://github.com/data-catering/data-contract-playground

Website: https://data-catering.github.io/data-contract-playground/

13.

Show HN: Data Contract Playground(data-catering.github.io ↗)

1 points · by pitah1 · 2y ago · discuss

comment 2y ago · link · parent

I've created a Docker image for it and onboarded it into my tool called insta-infra[1]. You should be able to run it via:

    ./run.sh maestro
[1] https://github.com/data-catering/insta-infra

15.

Data Contracts in Action: Testing(medium.com ↗)

1 points · by pitah1 · 2y ago · discuss

16.

Data Contracts in Action: Testing(medium.com ↗)

1 points · by pitah1 · 2y ago · discuss

comment 2y ago · link · parent

Would love to hear what people think or other approaches people have taken to help quickly spin up tools on your laptop.

18.

Show HN: Insta-infra – Single command quickstart for any tool(github.com ↗)

2 points · by pitah1 · 2y ago · 1 comment

19.

Show HN: Insta-infra – Spin up any tool in your local laptop with one command(github.com ↗)

2 points · by pitah1 · 2y ago · discuss

comment 2y ago · link · parent

I've been keeping an eye on these kinds of Spark accelerator libraries for a while now.

How does it compare to Blaze[1] and Gluten[2]?

I'm interested in running some benchmarks soon against all three for my project to see how they all go.

[1] https://github.com/kwai/blaze

[2] https://github.com/apache/incubator-gluten

comment 2y ago · link · parent

Thanks for sharing. Happy to see another solution that doesn't just slap on AI/ML to try to solve it.

I am also among the many people who have created a solution similar[0] to this :). The approach I took though is being metadata-driven (given most anonymisation solutions cannot guarantee sensitive data not leaking and also open up network access from prod to test envs, security teams did not accept it whilst I was working at a bank), offering the option to validate based on the generated data (i.e. check if your service or job has consumed the data correctly) and ability to clean up the generated or consumed data.

Being metadata-driven opened up the possibility of linking to existing metadata services like data catalogs (OpenMetadata, Amundsen), data quality (Great Expectations, Soda), specification files (OpenAPI/Swagger), etc., which are often underutilized.

The other part that I found whilst building and getting feedback from customers, was having referential integrity across data sources. For example, account create events coming through Kafka, consumed and stored in Postgres whilst, at the end of the day, a CSV file of the same accounts would also be consumed by a job.

I'm wondering if you have come across similar thoughts or feedback from your users?

[0]: https://github.com/data-catering/data-caterer

22.

Difficulties of Test Environments(medium.com ↗)

1 points · by pitah1 · 2y ago · discuss

23.

Generate Data for HTTP API from Swagger/OpenAPI Spec(youtube.com ↗)

1 points · by pitah1 · 2y ago · discuss

24.

Automatic data generation and clean up in Postgres in 60 seconds(youtube.com ↗)

1 points · by pitah1 · 2y ago · discuss

25.

Deploying a Spark-based application as a Windows application(medium.com ↗)

1 points · by pitah1 · 2y ago · discuss

26.

Most Dangerous Button [video](youtube.com ↗)

1 points · by pitah1 · 2y ago · discuss

comment 2y ago · link · parent

Working on a data generation and validation tool called Data Caterer. The focus of it is being data source agnostic, fast and simple. Just last week, I released a UI for it.

https://github.com/data-catering/data-caterer

28.

Show HN: Data Caterer – Data generation and validation tool(github.com ↗)

1 points · by pitah1 · 2y ago · discuss

29.

Places you can find the Java version in Intellij(medium.com ↗)

1 points · by pitah1 · 2y ago · discuss

123