Skip to content

Commit

Permalink
SGA import
Browse files Browse the repository at this point in the history
  • Loading branch information
rvs committed Sep 19, 2015
1 parent 420619c commit 8b26974
Show file tree
Hide file tree
Showing 6,843 changed files with 5,789,771 additions and 5 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
56 changes: 51 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# This file should contain patterns all developers want to ignore
# If you have workspace specific files, add them
# to .git/info/exclude.
#
# see git help gitignore for more details
# Object files
*.o
*.ko
*.obj
*.elf
.deps

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.o
*.ko
*.obj
*.elf
objfiles.txt

# Eclipse Project
.project
.pydevproject

# Generated files
GNUmakefile
config.log
config.status
VERSION
env.sh
ext/
plr.tgz
autom4te.cache/
38 changes: 38 additions & 0 deletions .p4ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
GNUmakefile
config.status
a.out.dSYM
confdefs.h
conftest.c
conftest.err
config.status.lineno
config.log
configure.lineno
.config.log.swp
Debug
Release
*.log
pgsql.sln
*.vcproj
autom4te.cache
*.o
*.so
*.so.[0-9]
*.so.[0-9].[0-9]
*.sl
*.sl.[0-9]
*.sl.[0-9].[0-9]
*.dylib
*.dll
*.a
*.mo
objfiles.txt
.deps/
*.gcno
*.gcda
*.gcov
*.gcov.out
lcov.info
*.vcproj
win32ver.rc
*.exe
lib*dll.defautom4te.cache
43 changes: 43 additions & 0 deletions BUILD_INSTRUCTIONS
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Instruction for Building the Apache HAWQ

September 2015

Dependencies:

Tested on Centos 6 with the following version.

autoconf 2.63
binutils 2.20.51
bison 2.4.1
flex 2.5.35
gperf 3.0.4
gcc 4.4.7
g++ 4.4.7
make 3.81
perl 5.10.1
python-devel 2.6.2
zlib-devel 1.2.3
bzip2-devel 1.0.5
readline-devel 6.0
libevent-devel 1.4.6
LibYAML 0.1.1
boost 1.55
snappy 1.1.1
thrift 0.9.1
json-c 0.9
libcurl 7.21.7
libhdfs3 2.2.30
libyarn code shipped with HAWQ


Build

./configure --prefix=/somewhere/you/want/to/install
make -j8
make install

Test

After setup a HAWQ cluster.

make installcheck-good
25 changes: 25 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Greenplum Database version of PostgreSQL Database Management System
(formerly known as Postgres, then as Postgres95)

Portions Copyright (c) 2011 EMC

Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group

Portions Copyright (c) 1994, The Regents of the University of California

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without a written agreement
is hereby granted, provided that the above copyright notice and this
paragraph and the following two paragraphs appear in all copies.

IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
157 changes: 157 additions & 0 deletions GNUmakefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
#
# PostgreSQL top level makefile
#
# $PostgreSQL: pgsql/GNUmakefile.in,v 1.45 2006/08/18 19:58:05 adunstan Exp $
#

subdir =
top_builddir = .
include $(top_builddir)/src/Makefile.global

all:
# $(MAKE) -C doc all
$(MAKE) -C src all
$(MAKE) -C config all
$(MAKE) -C contrib/formatter_fixedwidth all
$(MAKE) -C contrib/gp_sparse_vector all
# $(MAKE) -C contrib/hawq-hadoop all
$(MAKE) -C contrib/gp_mdver all
$(MAKE) -C tools all
@echo "All of HAWQ successfully made. Ready to install."

install:
# $(MAKE) -C doc $@
$(MAKE) -C src $@
$(MAKE) -C config $@
$(MAKE) -C contrib/formatter_fixedwidth $@
$(MAKE) -C contrib/gp_sparse_vector $@
# $(MAKE) -C contrib/hawq-hadoop $@
$(MAKE) -C contrib/gp_mdver $@
$(MAKE) -C tools $@
@echo "HAWQ installation complete."

installdirs uninstall:
# $(MAKE) -C doc $@
$(MAKE) -C src $@
$(MAKE) -C config $@
$(MAKE) -C contrib/formatter_fixedwidth $@
$(MAKE) -C contrib/gp_sparse_vector $@
# $(MAKE) -C contrib/hawq-hadoop $@
$(MAKE) -C contrib/gp_mdver $@

distprep:
# $(MAKE) -C doc $@
$(MAKE) -C src $@
$(MAKE) -C config $@
$(MAKE) -C contrib $@

# clean, distclean, etc should apply to contrib too, even though
# it's not built by default
clean:
# $(MAKE) -C doc $@
$(MAKE) -C contrib $@
$(MAKE) -C src $@
$(MAKE) -C config $@
$(MAKE) -C contrib/formatter_fixedwidth $@
$(MAKE) -C contrib/gp_sparse_vector $@
# $(MAKE) -C contrib/hawq-hadoop $@
$(MAKE) -C contrib/gp_mdver $@
$(MAKE) -C tools $@
# Garbage from autoconf:
@rm -rf autom4te.cache/

# Important: distclean `src' last, otherwise Makefile.global
# will be gone too soon.
distclean maintainer-clean:
# -$(MAKE) -C doc $@
-$(MAKE) -C contrib $@
-$(MAKE) -C config $@
-$(MAKE) -C tools $@
-$(MAKE) -C src $@
-rm -f config.cache config.log config.status GNUmakefile
# Garbage from autoconf:
@rm -rf autom4te.cache/

installcheck installcheck-parallel installcheck-good:
$(MAKE) -C src/test $@

GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
./config.status $@


##########################################################################

distdir = postgresql-$(VERSION)
dummy = =install=
garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*

dist: $(distdir).tar.gz
ifeq ($(split-dist), yes)
dist: postgresql-base-$(VERSION).tar.gz postgresql-docs-$(VERSION).tar.gz postgresql-opt-$(VERSION).tar.gz postgresql-test-$(VERSION).tar.gz
endif
dist:
-rm -rf $(distdir)

$(distdir).tar: distdir
$(TAR) chf $@ $(distdir)

opt_files = \
src/tools src/tutorial \
$(addprefix src/pl/, plpython tcl)

#docs_files = doc/postgres.tar.gz doc/src doc/TODO.detail
docs_files :=

postgresql-base-$(VERSION).tar: distdir
$(TAR) -c $(addprefix --exclude $(distdir)/, $(docs_files) $(opt_files) src/test) \
-f $@ $(distdir)

postgresql-docs-$(VERSION).tar: distdir
$(TAR) cf $@ $(addprefix $(distdir)/, $(docs_files))

postgresql-opt-$(VERSION).tar: distdir
$(TAR) cf $@ $(addprefix $(distdir)/, $(opt_files))

postgresql-test-$(VERSION).tar: distdir
$(TAR) cf $@ $(distdir)/src/test

distdir:
-rm -rf $(distdir)* $(dummy)
for x in `cd $(top_srcdir) && find . -name CVS -prune -o -print`; do \
file=`expr X$$x : 'X\./\(.*\)'`; \
if test -d "$(top_srcdir)/$$file" ; then \
mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
else \
ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
|| cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
fi || exit; \
done
$(MAKE) -C $(distdir) distprep
#$(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
#cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
#cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
#cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
$(MAKE) -C $(distdir) distclean
-rm -f $(distdir)/README.CVS

distcheck: $(distdir).tar.gz
-rm -rf $(dummy)
mkdir $(dummy)
$(GZIP) -d -c $< | $(TAR) xf -
install_prefix=`cd $(dummy) && pwd`; \
cd $(distdir) \
&& ./configure --prefix="$$install_prefix"
$(MAKE) -C $(distdir) -q distprep
$(MAKE) -C $(distdir)
$(MAKE) -C $(distdir) install
$(MAKE) -C $(distdir) uninstall
@echo "checking whether \`$(MAKE) uninstall' works"
test `find $(dummy) ! -type d | wc -l` -eq 0
$(MAKE) -C $(distdir) dist
# Room for improvement: Check here whether this distribution tarball
# is sufficiently similar to the original one.
-rm -rf $(distdir) $(dummy)
@echo "Distribution integrity checks out."

.PHONY: dist distdir distcheck
unexport split-dist
Loading

0 comments on commit 8b26974

Please sign in to comment.