195 points · by snaga · 11y ago · 51 comments
We (Pivotal, for whom I don't speak in any official capacity) have also opensourced Apache HAWQ (incubating)[1], which is an SQL front-end for Hadoop that was extracted from Greenplum, as well as Apache Geode (incubating)[2] which was based on GemFire.
This was part of a general announcement we made in February that our intention was to opensource our data products as it became possible to do so.
Incidentally, we are hiring engineers across our entire data suite, including PostgreSQL specialists. The Data division solves seriously heavyweight distributed problems. You can look up the listings on http://pivotal.io/careers, or if you like helping a fellow engineer collect a referral, email me: jchester@pivotal.io and I'll work out which office and division to send you to.
I'd love to work on a project like this but I've got no PGSQL experience (though I have worked on HFT both with KDB+ and writing a fairly decent functional knock-off operating in production and I bet the distribution and data set problems were similar). How is EMC to work for as a parent company?
I'm not sure where Chorus and PHD fit into the picture -- the latter is I believe a distribution of Hadoop that we curate.
> Are you guys going to attempt to upstream this or is it forked to the point of no return?
Too early to say.
> How is EMC to work for as a parent company?
EMC is entirely hands off, in my experience. Pivotal runs itself. Best job I've ever had by a wide margin.
http://gpdb.docs.pivotal.io/4360/ref_guide/feature_summary.h...
Are there plans to eventually have full feature parity with ongoing PostgreSQL development (as in adding features from versions of PostgreSQL newer than 8.2), or is Greenplum going to mostly be taking its own trajectory?
I asked about this today while I was at work.
The gist was: it will depend on a lot of factors, so it'd be unwise to nail any documents to any doors. But watch this space for further developments.
In the mean time, Greenplum speaks the PostgreSQL wire protocol. All the tools that can speak to PostgreSQL can speak seamlessly to Greenplum.
Disclaimer: While I work for Pivotal, I work in Pivotal Labs. I'm just an engineer and I don't have any input into product direction for our data products, which is done in another division. If pain persists, consult your doctor.
The parallel loading looks good, but I'm concerned that the single master means it's a bottleneck for writes -- is this the case, or is there a way to distribute writes across segments without involving the master?
The other concern is that this isn't just "horizontally partitioned Postgres". It's forked from a very old version (8.2) of Postgres, and so doesn't have things like hot standby, streaming replication, the JSON datatype, GIN indexes (does it have GiST?), arrays, etc. It looks like it's optimized for parallel workloads, not for general use.
Anyone here with any experience with Greenplum who can perhaps speak about their work and the things that Greenplum is good at?
The analytics it is built for aren't the kind that ElasticSearch is typically used for.
Greenplum/datawarehouse style analytical are things like: What is the average spend of female customers with 2 children who live in postcode AAAA or BBBB. Break it down by day of week and group by their marital status. Now for the top cohort of buyers on Mondays, give me a breakdown of the 3 most popular products and our profit margin on each one. This is often called "Business Analytics" (BI)
You could make ElasticSearch do that of course, but it wouldn't be much fun.
Given that context, the single master limitation turns out not be be a huge problem. Typically Greenplum is setup to load data from the OLAP-style online system, and the amount of data loaded is very predictable.
Same with things like hot standby and replication. In the Datawarehouse world it isn't uncommon for there to be nightly periods where a batch dataload occurs and/or nightly reporting is done, and the availability of external interfaces to the DB during that time maybe restricted.
You can then write SQL, Scala, Python, R to interact with ElasticSearch. I can't recall the performance but against Cassandra, HDFS, HBase, MongoDB etc. it is very fast.
My understanding was that, typically, the DW is where the data gets ETLed from various places and lives in a normalized environment. Then from that big pool, departments get built columnar or OLAP databases for specific analyses they want to do, and I connect not to the DW but to the OLAP instance (we call it Datamart here). Was I living a lie? At first I thought that your master-segment system is the same, but then I read your comment. I looked into Greenplum a while back and wanted it because of Madlib, but my guys said "nope" and went with MS.
For myself, I tend to go with Kimble, but there are advantages and disadvantages to both approaches. Wikipedia has a decent summary of this here:
https://en.m.wikipedia.org/wiki/Data_warehouse#Dimensional_v...
Yes, this is what gpfdist[1] is for. Used properly, data can be bulk loaded in parallel across worker nodes without a master bottleneck. I've never used it, but our field engineers tell stories of heroism and victory that typically starred gpfdist as the magic sword.
In terms of what it's good at: really big queries on really big data sets. Note in particular the integration with the Apache MADlib (incubating) machine learning toolkit[2], which was opensourced and donated to the ASF earlier this year.
[1] http://gpdb.docs.pivotal.io/4330/utility_guide/admin_utiliti...
I guess I was too subtle in my comment; what I mean is, this looks like geared towards long, periodic bulk loads and not granular OLTP/webapp-type workloads where lots of clients write small transactions.
We're using ElasticSearch for analytics, and being able to write to any node is really nice. We stream events in real time, and only do bulk loads when we need to change the schema or reprocess the data.
But ES has its share of problems, and somethings like Greenplum would be preferable, if it can handle the write pattern.
Licensing was also ludicrously expensive, including an attempt to multiply our license cost by 10 one year. I'd be very leery of lock-in given the owners. I also suspect this is the result of a failed attempt to sell it and is an open-source hail mary.
Spring XD implemented a Java reactive version of the GPFdist protocol, so you could use that to wire it up to your existing app pretty easily (or just copy the Sink code which is pretty straightforward).
Here are some docs and synthetic benchmarks: http://docs.spring.io/spring-xd/docs/current/reference/html/...
A brief overview on MPP databases / Greenplum here: https://dwarehouse.wordpress.com/2012/12/28/introduction-to-...
It was always awkward to figure out what components you needed to build a development environment for it. It depended on having a virtual machine with a specific version of Greenplum Database running in it, but that version of the database wasn't easy to find. An open source Greenplum Database might make it easier to get started.
I was wondering whether anyone used greenplum in production and with what kind of loads. With today's in-memory fad, I am also interested in whether gp model supports loading everything into memory in a MOLAP fashion.
[1] http://techcrunch.com/2008/01/21/greenplum-takes-27-million-...
The experiences and tuning in the query plan re-writer for MPP might be helpful in rolling in parallel operations support to the base. Not necessarily the "how" since the GP strategy won't necessarily mesh, but the "what".
https://github.com/greenplum-db/gpdb/commits/master
Why include all the really old commits, while squashing the most recent 10 years of commits into a single commit (6b0e52bead)?
I wonder why it's based on Postgres 8.2 rather than a newer version?
That's what it was originally forked from.
[HACKERS] Patent warning about the Greenplum source code https://www.mail-archive.com/pgsql-hackers@postgresql.org/ms...
You may have to check this message before diving into the code.