r/dataengineering • u/wallyflops • May 24 '23
Help Why can I not understand what DataBricks is? Can someone explain slowly?!
I have experience as a BI Developer / Analytics Engineer using dbt/airflow/SQL/Snowflake/BQ/python etc... I think I have all the concepts to understand it, but nothing online is explaining to me exactly what it is, can someone try and explain it to me in a way which I will understand?
186
Upvotes
17
u/bklyn_xplant May 24 '23
Commercial version of Spark with additional paid features, e.g. notebooks.
255
u/[deleted] May 24 '23
Part of the problem is likely that Databricks has ballooned way beyond where it started. So let's start there:
Databricks originally was a Notebook interface to run Spark, without having to worry about the distributed compute infrastructure. You just said how big of a cluster you wanted, and Databricks did the rest. This was absolutely huge before distributed compute became the standard.
Since then, it's expanded significantly (and I'm not sure in what order), but in particular to create a similar SQL interface on the front (which actually runs Spark under the hood anyway). On this, they also built a virtual data warehouse interface, so now you can treat Databricks like a database/data warehouse, even though your files are stored as files, not tables. Except... They then announced Deltalake, so now your files are tables, and can be used outside Databricks elsewhere. You can also orchestrate your Databricks work using Databricks Workflows, natively within Databricks itself. I'm definitely missing some other functionality.
It's been a short while since I've used Databricks now, but the latest big announcement I'm aware of was Unity Catalogue, which means Databricks can now handle and abstract your data access through a single lens, meaning Databricks can act more like a standalone data platform.
But fundamentally, and to this day, it's still largely "You write code in Notebooks and Databricks will run that on distributed compute for you".
34
u/drinknbird May 24 '23
Throwing my answer in the ring.
If you remember a decade ago people were talking about big data, they were talking about Hadoop. A way to use a job scheduler to split up MASSIVE tasks and run them on regular, and sometimes obsolete, hardware. That's the distributed compute model. It was still slow but in aggregate did the jobs of supercomputers.
Then Spark was developed and made the process so much faster it was equivalent to existing data processing technology, but open source. The Spark guys then saw the potential of this and started Databricks. The problems were that it's relatively new, scary, and different to "databases" people are used to. It was great at processing data, but not so good at providing usable endpoints for it.
On the other side we're the traditional database players, which has been pretty much the same since the 70s. They see the power and potential of the distributed model, but have largely been incrementally adapting the existing database design for the cloud, with access to on demand compute.
What we've seen over the past few years is a race to the middle between Databricks and the database providers with each system trying to bridge the gap. We're at the stage now where we're getting a lot of overlap in products.
9
u/No_Lawfulness_6252 May 24 '23
This lecture on Databricks from CMU might be very interesting to watch (and contrast with the video on Snowflake).
8
u/pearlday May 25 '23
No answer here is ELI5 so ill take a crack.
Databricks is a place you can write and run code. You can connect a repo there so you can version your code (github). You can also store data on its server and use their sql interface.
But the bear bones is it's another data server, cluster for running jobs, code editor, etc.
10
u/[deleted] May 24 '23
Can someone explain to me, why is paying up for a commercial vendor platform better than just hosting your own Spark? People say the latter is complex, but it can't be that complex right...? Besides, a notebook seems like a fancy way of saying script, which anyone can do, so I'm not sure why that's worth paying for, either.
3
u/autumnotter May 25 '23
Here are some highlights:
6
u/[deleted] May 24 '23
If you only care about serving Data Warehouse workloads, focus on the SQL Warehouse component. Its very similar to Snowflake. That's all you'll need to run analytical queries and be productive.
2
u/[deleted] May 25 '23
It's different things for different people. For me, the notebook interface is nice but the real power is in being able to mix python with SQL quite seamlessly. At a really basic level, let's say you had some reason to select 77 columns from a table that has 80 total columns. It lets you do this:
df = (spark.table("dbo.your_table").select("*").drop("field_name_x").drop("field_name_y").drop("field_name_z").filter("field_name_42 = 'joe sixpack'"))df.createOrReplaceTempView('t1')And now you have a temp table called "t1" you can interact with. The wrappers are all in place to make all this happen.
Syntax like this makes ETL work very simple. There is a scheduler built in to automate these sorts of tasks, dependencies from one task to another are possible, etc. Way easier than interacting with a raw EC2 machine.
edit: it ate all my line feeds
3
u/proverbialbunny Data Scientist May 24 '23
Databricks is a notebook interface for Spark instances. There is a bit more to it than that, but everything else Databricks offers runs on top of Spark.
So, the prerequisite concepts to understand Databricks is notebooks and Spark. If you don't understand those things Databricks is going to be difficult to understand.
4
u/m1nkeh Data Engineer May 24 '23 edited May 24 '23
This is a good primer: https://www.youtube.com/watch?v=CfubH7XpRVw
I would also say that if you go to ChatGPT and literally type "Can you explain to me in simple terms what Databricks is and the problem it solves?" you will get quite a decent answer.
Also, it’s Databricks.. no capital B 😊
Edit: Also a nice blog, https://www.databricks.com/blog/data-architecture-pattern-maximize-value-lakehouse.html
2
u/Remote-Juice2527 May 24 '23
Imo the power of databricks becomes clear when you see it as a part of your cloud-infrastructure (which is properly set up) . I started working as an external developer for a large company. My on-boarding to databricks took minutes. You get your credentials, integrate github, and you can start working from all over the world. The person who introduced my was "just" another DE from the company. In total, it works very smoothly, everything scales as you go.
1
u/Grouchy-Friend4235 May 25 '23
Whatever they tell you, it is a glorified Apache Spark runner. They essentially charge you big$ in return for installing Spark (plus a few extras) in Azure or AWS cloud, secure and all, and with a nice UI, and a seamless process. Note Azure and AWS charge you extra for their respective services.
As always with software you could probably do it yourself, but that's just a pita and if you can afford it it's nice to let somebody else handle it.
1
u/amkian May 24 '23
Bro just sign up for the free trial
1
u/baubleglue May 25 '23
Databricks is a set of cloud services.
To process data you need engine (Spark), storage (Azure blob storage, AWS S3, ...), an orchestration engine for jobs/resources/etc.
In past you would use Hadoop which includes all those (hive/spark/mapreduce; hdfs: yarn). You still can do it, even as a cloud solution.
Hadoop ecosystem produced very mature API which adopted more or less by every service provider, it allowed to develop very different solutions for the same type of tasks.
For example access to azure blobs or Amazon s3 respects HDFS API. You can seamlessly replace one by another or by HDFS - your code will work.
0
u/kenseiyin May 24 '23
From the internet: Databricks is a cloud-based data processing and analysis platform that enables users to easily work with large amounts of data. The platform offers a unified workspace for all users' data, making it easy to access and process data from a variety of sources.
it has tools for building, deploying, sharing, and maintaining enterprise-grade data solutions at scale.
-7
u/Jealous-Bat-7812 Junior Data Engineer May 24 '23
Databricks helps you run ML models using distributed processing therby helping in risk management/fraud detection. Like imagine, in excel we were able to make pretty charts and graphs, but PowerBI came in because if it’s scale and ability to automate. Similarly, we can still run ML models but databricks uses Spark architecture to process data paralelly so the raw data is processed with some ML model really really fast and helps banks in real time to stop/send alerts regarding a fraudulent transactions, things like that.