Git Product home page Git Product logo

yinyinbigdata / gpdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greenplum-db/gpdb

0.0 2.0 0.0 111.27 MB

Pivotal Greenplum Database

Home Page: http://greenplum.org

License: Apache License 2.0

Makefile 0.52% Shell 0.47% C 36.49% C++ 2.37% PLpgSQL 49.29% PLSQL 0.23% Perl 0.85% HTML 0.36% Groff 0.64% Java 0.98% XSLT 0.01% Yacc 0.51% Lex 0.21% Objective-C 0.01% Python 5.53% Gherkin 1.29% SQLPL 0.21% CSS 0.01% Fortran 0.02% Assembly 0.01%

gpdb's Introduction

Greenplum

The Greenplum Database (GPDB) is an advanced, fully featured, open source data warehouse. It provides powerful and rapid analytics on petabyte scale data volumes. Uniquely geared toward big data analytics, Greenplum Database is powered by the world’s most advanced cost-based query optimizer delivering high analytical query performance on large data volumes.

The Greenplum project is released under the Apache 2 license. We want to thank all our current community contributors and are really interested in all new potential contributions. For the Greenplum Database community no contribution is too small, we encourage all types of contributions.

Overview

A Greenplum cluster consists of a master server, and multiple segment servers. All user data resides in the segments, the master contains only metadata. The master server, and all the segments, share the same schema.

Users always connect to the master server, which divides up the query into fragments that are executed in the segments, sends the fragments to the segments, and collects the results.

Requirements

  • From the GPDB doc set, review Configuring Your Systems and Installing Greenplum and perform appropriate updates to your system for GPDB use.

  • gpMgmt utilities - command line tools for managing the cluster.

    You will need to add the following Python modules (2.7 & 2.6 are supported) into your installation

    • psi
    • lockfile
    • paramiko
    • setuptools
    • epydoc

    Ensure the ed text-editor is installed for gpinitsystem. For RHEL/Centos:

    sudo yum install ed
    

Code layout

The directory layout of the repository follows the same general layout as upstream PostgreSQL. There are changes compared to PostgreSQL throughout the codebase, but a few larger additions worth noting:

  • gpMgmt/

    Contains Greenplum-specific command-line tools for managing the cluster. Scripts like gpinit, gpstart, gpstop live here. They are mostly written in Python.

  • gpAux/

    Contains Greenplum-specific extensions such as gpfdist and gpmapreduce. Some additional directories are submodules and will be made available over time.

  • doc/

    In PostgreSQL, the user manual lives here. In Greenplum, the user manual is distributed separately (see http://gpdb.docs.pivotal.io), and only the reference pages used to build man pages are here.

  • src/backend/cdb/

    Contains larger Greenplum-specific backend modules. For example, communication between segments, turning plans into parallelizable plans, mirroring, distributed transaction and snapshot management, etc. cdb stands for Cluster Database - it was a workname used in the early days. That name is no longer used, but the cdb prefix remains.

  • src/backend/gpopt/

    Contains the so-called translator library, for using the ORCA optimizer with Greenplum. The translator library is written in C++ code, and contains glue code for translating plans and queries between the DXL format used by ORCA, and the PostgreSQL internal representation. This goes unused, unless building with --enable-orca.

  • src/backend/gp_libpq_fe/

    A slightly modified copy of libpq. The master node uses this to connect to segments, and to send fragments of a query plan to segments for execution. It is linked directly into the backend, it is not a shared library like libpq.

  • src/backend/fts/

    FTS is a process that runs in the master node, and periodically polls the segments to maintain the status of each segment.

Regression tests

  • The default regression tests
make installcheck-good
  • optional extra/heavier regression tests
make installcheck-bugbuster
  • The PostgreSQL check target does not work. Setting up a Greenplum cluster is more complicated than a single-node PostgreSQL installation, and no-one's done the work to have make check create a cluster. Create a cluster manually or use gpAux/gpdemo/ (example below) and run make installcheck-good against that. Patches are welcome!

  • The PostgreSQL installcheck target does not work either, because some tests are known to fail with Greenplum. The installcheck-good schedule excludes those tests.

Basic GPDB source configuration, compilation, gpdemo cluster creation and test execution example

  • Configure build environment
configure --prefix=<install location>
  • Compilation and install
make
make install
  • Bring in greenplum environment into your running shell
source <install location>/greenplum_path.sh
  • Start demo cluster (gpdemo-env.sh is created which contain PGPORT and MASTER_DATA_DIRECTORY values)
cd gpAux/gpdemo
make cluster
source gpdemo-env.sh
  • Run tests
make installcheck-good

Glossary

  • QD

    Query Dispatcher. A synonym for the master server.

  • QE

    Query Executor. A synonym for a segment server.

Documentation

For Greenplum Database documentation, please check online docs: http://gpdb.docs.pivotal.io

gpdb's People

Contributors

adunstan avatar alvherre avatar ashwinstar avatar asubramanya avatar bmomjian avatar darcyjcain avatar davecramer avatar dbdbdb avatar feodor avatar grunthos avatar hlinnaka avatar hsyuan avatar jconway avatar jimmyyih avatar kjurka avatar michvhf avatar petere avatar royc1 avatar scrappy avatar tatsuo-ishii avatar tglsfdc avatar vadim4o avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.