News for hackers. Stuff that matters.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by jamal-kumar on Monday March 07, 2022 @10:56PM (#30596259)
Aside from Apache Spark, what's replaced it and does it still face the same speed of access limitations compared to just zipping through giant CSVs with awk or whatever streaming APIs you write with your own preferred language?
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by bpodgursky on Monday March 07, 2022 @11:25PM (#30596431)
I use Spark for a number of jobs for language-specific features still but I think within 2 years all custom code will be trivially invoked as native UDFs in SQL data warehouses (ie Snowflake, which has essentially solved big-data performance as a going concern).

I just write SQL in Snowflake and it replaces 95% of what I would otherwise have done in custom MapReduce or Spark code.

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by markus_zhang on Tuesday March 08, 2022 @08:25AM (#30599599)
What I really dislike modern cloud DWH such as Snowflake is that it hides a lot of things from me. Since I'm not a CTO who worries about not delivering, but a junior DE who actually wants to learn things, I really prefer that things were done in the old ways where we had to manage our own infrastructure and our own code for ETL. These kinds of things can not be learned "just for fun" because one has to work in a real environment.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by manigandham on Tuesday March 08, 2022 @09:00AM (#30599928)
What do you mean? Of course you can still learn them "just for fun" if you want. There are plenty of columnar data warehouses (memsql, greenplum, vertica, clickhouse, etc) and data processing frameworks (spark, flink, etc) that you can look at, implement and run yourself.

It's all using the same principles underneath.

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by markus_zhang on Tuesday March 08, 2022 @09:06AM (#30599993)
What I'm saying is that you can surely scratch the basics from personal use, but it's completely different from real usage and such can only be trained on job. Now that those jobs are fewer as everyone goes on cloud.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by tharne on Tuesday March 08, 2022 @07:33PM (#30609465)
> What I really dislike modern cloud DWH such as Snowflake is that it hides a lot of things from me.

This is by design. The less skill required to use a tool, the less some CTO has to pay the person using it.

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by deepstack on Tuesday March 08, 2022 @02:04AM (#30597206)
SQL will always be faster than Hadoop and MapReduce. The main reason to use those other slower services is developer are not use to SQL or declarative programming, and insist on having the code in Procedural way.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by lmm on Tuesday March 08, 2022 @02:45AM (#30597478)
That's completely backwards. Mapreduce-like approaches are how SQL datastores are implemented underneath; the absolute best case for SQL is to equal hand-tuned mapreduce-like performance, and often it will be slower (you're at the mercy of your query planner to pick the right indices, do joins in the right order, etc.). The main reason people use SQL is because they find it easier to express a query that way (which is completely legitimate - if your query planner is good enough most of the time, you've got better things to be doing than hand-tuning your query execution).
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by 988747 on Tuesday March 08, 2022 @04:00AM (#30597980)
No, that does not seem correct. SQL Datastores are not "map-reduce underneath", they have optimized datastructures for efficient querying (i.e. indices). Map-reduce is equivalent to those cases in SQL database where you have full table scan in your query plan - basically brute-forcing your way through the dataset.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by lmm on Tuesday March 08, 2022 @04:12AM (#30598038)
You can (and often should) have indices in a map-reduce situation as well - you just build them in an explicit, visible way. But in most of the relevant use cases you're doing some kind of aggregation over the whole table, so indices don't help any.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by tremon on Tuesday March 08, 2022 @08:51AM (#30599826)
And if your primary use-case is column-wise aggregation over the whole table, in SQL you'd use a (compressed) column store rather than a row store as your table storage method.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by 988747 on Tuesday March 08, 2022 @12:48PM (#30603021)
To be fair, Parquet, which is commonly used in Big Data solutions is a column store format. So, once you normalize your data and save it as Parquet you can have efficient column-wise aggregation - but that assumes some preprocessing step.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by manigandham on Tuesday March 08, 2022 @09:04AM (#30599969)
That makes no sense. SQL is a query language, commonly implemented by relational databases.

In the early 2000s, columnar relational data warehouses were not sophisticated and scalable enough to handle the scale of data encountered at Yahoo, Google and other internet companies. MapReduce (and the many evolutions of Hadoop ecosystem) was created to scale processing through low-level instructions and algorithms.

Eventually columnar data warehouses caught up and are now capable of handling petabyte scale, regardless of whatever language you use to query them. The fundamental storage and compute primitives haven't really changed that much, just offered in a much more user-friendly way now.

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by Cthulhu_ on Tuesday March 08, 2022 @04:24AM (#30598100)
SQL itself is just a query language, it's the underlying cloud based data warehouse that fulfills the role of what map/reduce used to do in terms of parallelization transparently.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by mohanmcgeek on Tuesday March 08, 2022 @12:26AM (#30596736)
But I can write SQL in Spark just fine. Can't I?
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by bpodgursky on Tuesday March 08, 2022 @12:31AM (#30596756)
You can write some SQL in Spark, but

1) Why would you want to maintain your own Spark infrastructure? Spark on Kube is a huge improvement over YARN but you still have to deal with OOMEs, filled disks, Kube upgrades, pushing custom images to container registries, etc etc etc.

2) Snowflake is probably 10-50x as performant as Spark for data manipulation. I don't know what kind of unholy demonic incantations Snowflake is doing on the backend to support their SQL performance, but it's really freaking fast. There's just no other way to cut it.

I've spent 5-10 years eking every ounce of performance I can get out of a Hadoop/Spark cluster. I'm not trying to be unreasonable about this. I would love for OSS to be competitive; it's great for the world, and it would be great for my skill set and earning potential.

But it's not a contest, and if you think standalone Spark is going to be a viable competitor in a couple years, you are deluding yourself. Make informed choices about your career and investment.

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by Foobar8568 on Tuesday March 08, 2022 @02:10AM (#30597232)
A lot of articles I read about snowflake involves data vault which is a massive turn off. And when their tech lead (Kent Graziano) is a prominent figure in the DV bullshit...
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by fritkot on Tuesday March 08, 2022 @02:56AM (#30597554)
Snowflake and DV have no interdependency whatsoever. Snowflake is just a database. Whether you use DV to model the data inside of it or dimensional modelling or "big wide tables" is completely up to you, there's nothing about it that requires or benefits DV in particular.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by secondcoming on Tuesday March 08, 2022 @04:07AM (#30598016)
What is DV?
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by belter on Tuesday March 08, 2022 @06:45AM (#30598874)
Count not knowing what it is, as a blessing. Run if you can.

https://en.wikipedia.org/wiki/Data_vault_modeling

Edit: As the Wikipedia article has no Criticism section I will add some references:

http://kejser.org/the-data-vault-vs-kimball-round-2/

https://timi.eu/blog/data-vaulting-from-a-bad-idea-to-ineffi...

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by fritkot on Tuesday March 08, 2022 @04:24AM (#30598101)
It's a data modelling method for data warehouses, it can be used in Snowflake or on any other data management platform.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by mohanmcgeek on Thursday March 10, 2022 @08:57PM (#30635241)
> Snowflake is probably 10-50x as performant as Spark for data manipulation

Wow is this for a fact? I haven't used either in a while but I saw the blog post from databricks and Spark was more performant than snowflake.

I assumed that's what I'll also get when i run spark on kube

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by rxin on Tuesday March 08, 2022 @12:43AM (#30596822)
You should try Databricks, especially the new Photon engine powering Spark. In general more performant than Snowflake in SQL and a lot more flexible. (There are some cases in which Databricks would be slower but the perf is improving rapidly.)
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by belter on Tuesday March 08, 2022 @03:47AM (#30597906)
Probably an oversight on your part, but I would argue would be elegant to disclose you are one of the co-founders.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by Fiahil on Tuesday March 08, 2022 @01:01AM (#30596897)
Databricks has an extremely bad API. So, sure, your Spark jobs might be a little bit faster some times, but why would you use it if you can't even read logs of running jobs?
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by Lucasoato on Tuesday March 08, 2022 @06:03AM (#30598614)
Databricks is amazing, the Delta Live Table technology is incredible. It's very hard to approach problems like Data Lineage and Data Quality, but that platform does it in the right way.

My only concern is that they offer just a managed cloud product. That's cool for startups, but large enterprises sometimes need more governance and ownership than that.

Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by soulbadguy on Tuesday March 08, 2022 @01:04AM (#30596917)
Very surprised by this. Do you have a reference ?
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by fnord123 on Tuesday March 08, 2022 @02:30AM (#30597360)
Fyi, rxin is co-founder of databricks.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by soulbadguy on Tuesday March 08, 2022 @11:37AM (#30601901)
That explains it
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by StreamBright on Tuesday March 08, 2022 @02:56AM (#30597563)
The biggest selling point of Snowflake for most of the customers is that they do not need to maintain the infrastructure.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by fritkot on Tuesday March 08, 2022 @02:56AM (#30597567)
Of course you would say that it's more performant and flexible ...TCP-DS was just a PR ploy
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by kohlerm on Tuesday March 08, 2022 @02:38AM (#30597421)
Apache Flink is an alternative with "real" (not micro batching) streaming support.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by easytiger on Tuesday March 08, 2022 @05:17AM (#30598371)
I spent a while putting a POC of Flink for a use case together at client behest a couple of years ago. Really struggled with it. Seemed slow as heck too. I'd much rather write a few hundred extra lines of my own code to do stuff like that (ingest -> process -> output. Modern software fashion trends seems to create as much work as it tries to save; as extensive and magical as a lot of the features are.
Re:Command-line Tools can be 235x Faster than your Hadoop Cl... by StreamBright on Tuesday March 08, 2022 @02:54AM (#30597543)
There are two kind of approaches that I see:

- skip streaming entirely and have near real time solutions using just storage + a query engine

- have streaming using message queues and lambda architecture

In both cases the goal is that your freshest data shows up on a dashboard.