You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by wl...@apache.org on 2015/11/27 08:43:02 UTC

[3/8] incubator-hawq git commit: HAWQ-184. Add license header to source files

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/mainUtils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/mainUtils.py b/tools/bin/gppylib/mainUtils.py
index a441fe7..d6096e2 100644
--- a/tools/bin/gppylib/mainUtils.py
+++ b/tools/bin/gppylib/mainUtils.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Line too long - pylint: disable=C0301
 # Invalid name  - pylint: disable=C0103
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/__init__.py b/tools/bin/gppylib/operations/__init__.py
index 48f0774..68a572f 100644
--- a/tools/bin/gppylib/operations/__init__.py
+++ b/tools/bin/gppylib/operations/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Make sure Python loads the modules of this package via absolute paths.
 from os.path import abspath as _abspath
 from gppylib import gplog

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/backup_utils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/backup_utils.py b/tools/bin/gppylib/operations/backup_utils.py
index 99b1ecd..9af88bf 100755
--- a/tools/bin/gppylib/operations/backup_utils.py
+++ b/tools/bin/gppylib/operations/backup_utils.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 import fnmatch
 import tempfile

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/buildMirrorSegments.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/buildMirrorSegments.py b/tools/bin/gppylib/operations/buildMirrorSegments.py
index 475b05a..813e4d9 100644
--- a/tools/bin/gppylib/operations/buildMirrorSegments.py
+++ b/tools/bin/gppylib/operations/buildMirrorSegments.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 import pickle
 import signal

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/dump.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/dump.py b/tools/bin/gppylib/operations/dump.py
index 62e5268..ca71a60 100755
--- a/tools/bin/gppylib/operations/dump.py
+++ b/tools/bin/gppylib/operations/dump.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 import tempfile
 from datetime import datetime

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/dump_analyzedb.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/dump_analyzedb.py b/tools/bin/gppylib/operations/dump_analyzedb.py
index de16ee2..8398a2b 100755
--- a/tools/bin/gppylib/operations/dump_analyzedb.py
+++ b/tools/bin/gppylib/operations/dump_analyzedb.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 #####################################################################
 # This is a snapshot of dump.py in 4.2 main at March 5, 2015.
 # It is used solely for analyzedb as part of the porting of analyzedb

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/filespace.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/filespace.py b/tools/bin/gppylib/operations/filespace.py
index 5959a6e..eff33dc 100644
--- a/tools/bin/gppylib/operations/filespace.py
+++ b/tools/bin/gppylib/operations/filespace.py
@@ -1,5 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Line too long - pylint: disable=C0301
-# Copyright (c) Greenplum Inc 2011. All Rights Reserved.
 
 import sys
 import os

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/gpMigratorUtil.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/gpMigratorUtil.py b/tools/bin/gppylib/operations/gpMigratorUtil.py
index 0879413..a6c8c36 100644
--- a/tools/bin/gppylib/operations/gpMigratorUtil.py
+++ b/tools/bin/gppylib/operations/gpMigratorUtil.py
@@ -1,9 +1,23 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 #
 # This is a common util lib for gpmigrator and gpmigrator_mirror.
 #
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
 import pickle, base64
 import subprocess, csv
 import optparse, tempfile, re, traceback

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/hdfs_cmd.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/hdfs_cmd.py b/tools/bin/gppylib/operations/hdfs_cmd.py
index 71ae33b..3c92ba0 100644
--- a/tools/bin/gppylib/operations/hdfs_cmd.py
+++ b/tools/bin/gppylib/operations/hdfs_cmd.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # encoding: utf-8
 '''
 This file contains all API for calling hdfs related commands directly

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/madlib_depcheck/argparse.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/madlib_depcheck/argparse.py b/tools/bin/gppylib/operations/madlib_depcheck/argparse.py
index 334384c..c2bb504 100644
--- a/tools/bin/gppylib/operations/madlib_depcheck/argparse.py
+++ b/tools/bin/gppylib/operations/madlib_depcheck/argparse.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Author: Steven J. Bethard <st...@gmail.com>.
 
 """Command-line parsing library

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/madlib_depcheck/depcheck.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/madlib_depcheck/depcheck.py b/tools/bin/gppylib/operations/madlib_depcheck/depcheck.py
index 9389f27..e55eec0 100755
--- a/tools/bin/gppylib/operations/madlib_depcheck/depcheck.py
+++ b/tools/bin/gppylib/operations/madlib_depcheck/depcheck.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 ## # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 # Main Madpack installation executable.
 ## # # # # # # # # # # # # # # # # # # # # # # # # # # # #

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/package.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/package.py b/tools/bin/gppylib/operations/package.py
index 6821b55..d422c24 100644
--- a/tools/bin/gppylib/operations/package.py
+++ b/tools/bin/gppylib/operations/package.py
@@ -1,5 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Line too long - pylint: disable=C0301
-# Copyright (c) Greenplum Inc 2011. All Rights Reserved.
 
 from contextlib import closing
 import os

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/rebalanceSegments.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/rebalanceSegments.py b/tools/bin/gppylib/operations/rebalanceSegments.py
index 07f6c7f..71f894c 100644
--- a/tools/bin/gppylib/operations/rebalanceSegments.py
+++ b/tools/bin/gppylib/operations/rebalanceSegments.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 from gppylib.gparray import GpArray
 from gppylib.db import dbconn
 from gppylib.commands.gp import GpSegStopCmd, GpRecoverseg

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/restore.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/restore.py b/tools/bin/gppylib/operations/restore.py
index a0a47a9..d50c7a4 100755
--- a/tools/bin/gppylib/operations/restore.py
+++ b/tools/bin/gppylib/operations/restore.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 import gzip
 import getpass

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/startSegments.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/startSegments.py b/tools/bin/gppylib/operations/startSegments.py
index cc39f34..654675d 100644
--- a/tools/bin/gppylib/operations/startSegments.py
+++ b/tools/bin/gppylib/operations/startSegments.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os, pickle, base64
 
 from gppylib.utils import checkNotNone

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/__init__.py b/tools/bin/gppylib/operations/test/regress/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/operations/test/regress/__init__.py
+++ b/tools/bin/gppylib/operations/test/regress/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Make sure Python loads the modules of this package via absolute paths.
 from os.path import abspath as _abspath
 __path__[0] = _abspath(__path__[0])

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/__init__.py b/tools/bin/gppylib/operations/test/regress/test_package/__init__.py
index 37b63ae..36dcc49 100644
--- a/tools/bin/gppylib/operations/test/regress/test_package/__init__.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 import shutil
 import unittest2 as unittest

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_clean_gppkg.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_clean_gppkg.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_clean_gppkg.py
index 8b881ab..f69cc8c 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_clean_gppkg.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_clean_gppkg.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_misc.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_misc.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_misc.py
index 1d9c933..fe0e6a8 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_misc.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_misc.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 import shutil

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals.py
index 32c515a..f9e16cc 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 import tarfile

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals_on_standby.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals_on_standby.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals_on_standby.py
index 02aecdf..18f726a 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals_on_standby.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_muck_with_internals_on_standby.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 import tarfile

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_query.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_query.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_query.py
index c59e374..f7cc5bb 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_query.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_query.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 import tarfile

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_shared_dependencies.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_shared_dependencies.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_shared_dependencies.py
index 71e36e9..6793cc0 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_shared_dependencies.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_shared_dependencies.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_gppkg.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_gppkg.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_gppkg.py
index 3612598..f2ed788 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_gppkg.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_gppkg.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import unittest2 as unittest
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_negative.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_negative.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_negative.py
index d1667a2..1ec3959 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_negative.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_simple_negative.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os 
 import tarfile

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_package/test_regress_single_dependencies.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_single_dependencies.py b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_single_dependencies.py
index 7b3187a..a7cc00d 100755
--- a/tools/bin/gppylib/operations/test/regress/test_package/test_regress_single_dependencies.py
+++ b/tools/bin/gppylib/operations/test/regress/test_package/test_regress_single_dependencies.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/regress/test_regress_filespace.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/regress/test_regress_filespace.py b/tools/bin/gppylib/operations/test/regress/test_regress_filespace.py
index 7a8b472..64c02b0 100644
--- a/tools/bin/gppylib/operations/test/regress/test_regress_filespace.py
+++ b/tools/bin/gppylib/operations/test/regress/test_regress_filespace.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import unittest2 as unittest
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/test_package.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/test_package.py b/tools/bin/gppylib/operations/test/test_package.py
index e7d436e..35d3060 100755
--- a/tools/bin/gppylib/operations/test/test_package.py
+++ b/tools/bin/gppylib/operations/test/test_package.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import os
 import shutil

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/unit/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/unit/__init__.py b/tools/bin/gppylib/operations/test/unit/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/operations/test/unit/__init__.py
+++ b/tools/bin/gppylib/operations/test/unit/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Make sure Python loads the modules of this package via absolute paths.
 from os.path import abspath as _abspath
 __path__[0] = _abspath(__path__[0])

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/unit/test_unit_restore.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/unit/test_unit_restore.py b/tools/bin/gppylib/operations/test/unit/test_unit_restore.py
index d36465b..b34b1c2 100755
--- a/tools/bin/gppylib/operations/test/unit/test_unit_restore.py
+++ b/tools/bin/gppylib/operations/test/unit/test_unit_restore.py
@@ -1,8 +1,21 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 #
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved. 
-#
-
 import unittest
 import tempfile
 from gppylib.operations.restore import *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test/unit/test_unit_utils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test/unit/test_unit_utils.py b/tools/bin/gppylib/operations/test/unit/test_unit_utils.py
index d94c234..aac15a9 100755
--- a/tools/bin/gppylib/operations/test/unit/test_unit_utils.py
+++ b/tools/bin/gppylib/operations/test/unit/test_unit_utils.py
@@ -1,6 +1,20 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved. 
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 #
 
 import unittest

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/test_utils_helper.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/test_utils_helper.py b/tools/bin/gppylib/operations/test_utils_helper.py
index 9947feb..51be194 100755
--- a/tools/bin/gppylib/operations/test_utils_helper.py
+++ b/tools/bin/gppylib/operations/test_utils_helper.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 from gppylib.operations import Operation
 
 """

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/unix.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/unix.py b/tools/bin/gppylib/operations/unix.py
index 3996fdd..a58b167 100644
--- a/tools/bin/gppylib/operations/unix.py
+++ b/tools/bin/gppylib/operations/unix.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 import fnmatch
 import pickle

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/utils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/utils.py b/tools/bin/gppylib/operations/utils.py
index d95ed1d..2b16b7d 100644
--- a/tools/bin/gppylib/operations/utils.py
+++ b/tools/bin/gppylib/operations/utils.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 import sys
 import pickle

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/operations/verify.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/operations/verify.py b/tools/bin/gppylib/operations/verify.py
index 95bb960..ec26783 100755
--- a/tools/bin/gppylib/operations/verify.py
+++ b/tools/bin/gppylib/operations/verify.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 import os
 
 from gppylib import gplog

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/parseutils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/parseutils.py b/tools/bin/gppylib/parseutils.py
index 75e6c86..7fbfe92 100644
--- a/tools/bin/gppylib/parseutils.py
+++ b/tools/bin/gppylib/parseutils.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Line too long            - pylint: disable=C0301
 # Invalid name             - pylint: disable=C0103
 
@@ -7,8 +23,6 @@
     
   Routines to parse "flexible" configuration files for tools like 
     gpaddmirrors, gprecoverseg, gpexpand, etc.
-
-  Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved. 
 """
 
 import sys

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/pgconf.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/pgconf.py b/tools/bin/gppylib/pgconf.py
index 6f264e3..0ecd12b 100644
--- a/tools/bin/gppylib/pgconf.py
+++ b/tools/bin/gppylib/pgconf.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # $Id: $
 """
 postgresql.conf configuration file reader

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/__init__.py b/tools/bin/gppylib/programs/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/programs/__init__.py
+++ b/tools/bin/gppylib/programs/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Make sure Python loads the modules of this package via absolute paths.
 from os.path import abspath as _abspath
 __path__[0] = _abspath(__path__[0])

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/clsAddMirrors.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/clsAddMirrors.py b/tools/bin/gppylib/programs/clsAddMirrors.py
index b984663..8ec6b3d 100644
--- a/tools/bin/gppylib/programs/clsAddMirrors.py
+++ b/tools/bin/gppylib/programs/clsAddMirrors.py
@@ -1,9 +1,23 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Line too long            - pylint: disable=C0301
 # Invalid name             - pylint: disable=C0103
 #
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
 # import mainUtils FIRST to get python version check
 # THIS IMPORT SHOULD COME FIRST
 from gppylib.mainUtils import *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/clsInjectFault.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/clsInjectFault.py b/tools/bin/gppylib/programs/clsInjectFault.py
index 51c2802..be6d5ce 100644
--- a/tools/bin/gppylib/programs/clsInjectFault.py
+++ b/tools/bin/gppylib/programs/clsInjectFault.py
@@ -1,7 +1,21 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 #
 # Used to inject faults into the file replication code
 #

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/clsRecoverSegment.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/clsRecoverSegment.py b/tools/bin/gppylib/programs/clsRecoverSegment.py
index 19d2d65..850664e 100644
--- a/tools/bin/gppylib/programs/clsRecoverSegment.py
+++ b/tools/bin/gppylib/programs/clsRecoverSegment.py
@@ -1,9 +1,24 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # Line too long            - pylint: disable=C0301
 # Invalid name             - pylint: disable=C0103
 #
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
 # Note: the option to recover to a new host is not very good if we have a multi-home configuration
 #
 # Options removed when 4.0 gprecoverseg was implemented:

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/clsSystemState.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/clsSystemState.py b/tools/bin/gppylib/programs/clsSystemState.py
index 5a632d3..6ede6ae 100644
--- a/tools/bin/gppylib/programs/clsSystemState.py
+++ b/tools/bin/gppylib/programs/clsSystemState.py
@@ -1,6 +1,21 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 #
 # import mainUtils FIRST to get python version check
 # THIS IMPORT SHOULD COME FIRST

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/gppkg.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/gppkg.py b/tools/bin/gppylib/programs/gppkg.py
index 2a114ad..7cc5190 100755
--- a/tools/bin/gppylib/programs/gppkg.py
+++ b/tools/bin/gppylib/programs/gppkg.py
@@ -1,5 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # Line too long - pylint: disable=C0301
-# Copyright (c) Greenplum Inc 2011. All Rights Reserved.
 
 from optparse import OptionGroup
 import os

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/kill.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/kill.py b/tools/bin/gppylib/programs/kill.py
index cec4beb..bd2661f 100644
--- a/tools/bin/gppylib/programs/kill.py
+++ b/tools/bin/gppylib/programs/kill.py
@@ -1,5 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # Line too long - pylint: disable=C0301
-# Copyright (c) Greenplum Inc 2011. All Rights Reserved.
 
 from gppylib import gplog
 from gppylib.commands import gp

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/programIoUtils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/programIoUtils.py b/tools/bin/gppylib/programs/programIoUtils.py
index 8b4b448..6a9b8ba 100644
--- a/tools/bin/gppylib/programs/programIoUtils.py
+++ b/tools/bin/gppylib/programs/programIoUtils.py
@@ -1,6 +1,20 @@
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 from gppylib import gparray, gplog, pgconf, userinput
 
 logger = gplog.get_default_logger()

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/programs/verify.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/verify.py b/tools/bin/gppylib/programs/verify.py
index 03b58bd..b8a2907 100644
--- a/tools/bin/gppylib/programs/verify.py
+++ b/tools/bin/gppylib/programs/verify.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 '''
 Created on May 9, 2011
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/ComputeCatalogUpdate.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/ComputeCatalogUpdate.py b/tools/bin/gppylib/system/ComputeCatalogUpdate.py
index 5c3fe51..f46e888 100755
--- a/tools/bin/gppylib/system/ComputeCatalogUpdate.py
+++ b/tools/bin/gppylib/system/ComputeCatalogUpdate.py
@@ -1,10 +1,25 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Line too long - pylint: disable=C0301
 # Invalid name  - pylint: disable=C0103
 
 """
   ComputeCatalogUpdate.py
-  Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved. 
 
   Used by updateSystemConfig() to compare the db state and 
   goal state of a gpArray containing the Greenplum segment 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/__init__.py b/tools/bin/gppylib/system/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/system/__init__.py
+++ b/tools/bin/gppylib/system/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Make sure Python loads the modules of this package via absolute paths.
 from os.path import abspath as _abspath
 __path__[0] = _abspath(__path__[0])

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/configurationImplGpdb.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/configurationImplGpdb.py b/tools/bin/gppylib/system/configurationImplGpdb.py
index a78e23b..5a19fa9 100644
--- a/tools/bin/gppylib/system/configurationImplGpdb.py
+++ b/tools/bin/gppylib/system/configurationImplGpdb.py
@@ -1,8 +1,21 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-# Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 """
 This file defines the interface that can be used to fetch and update system
 configuration information.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/configurationImplTest.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/configurationImplTest.py b/tools/bin/gppylib/system/configurationImplTest.py
index afdaac5..27514f8 100644
--- a/tools/bin/gppylib/system/configurationImplTest.py
+++ b/tools/bin/gppylib/system/configurationImplTest.py
@@ -1,7 +1,21 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 from gppylib.gparray import *
 
 """

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/configurationInterface.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/configurationInterface.py b/tools/bin/gppylib/system/configurationInterface.py
index 2532f46..43893ef 100644
--- a/tools/bin/gppylib/system/configurationInterface.py
+++ b/tools/bin/gppylib/system/configurationInterface.py
@@ -1,7 +1,21 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2009. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 
 """
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/environment.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/environment.py b/tools/bin/gppylib/system/environment.py
index 3bc5dac..2b53213 100644
--- a/tools/bin/gppylib/system/environment.py
+++ b/tools/bin/gppylib/system/environment.py
@@ -1,7 +1,21 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 from gppylib import gplog, pgconf
 from gppylib.commands import gp
 from gppylib.db import catalog, dbconn

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/faultProberImplGpdb.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/faultProberImplGpdb.py b/tools/bin/gppylib/system/faultProberImplGpdb.py
index 9adabdc..a819b4f 100644
--- a/tools/bin/gppylib/system/faultProberImplGpdb.py
+++ b/tools/bin/gppylib/system/faultProberImplGpdb.py
@@ -1,7 +1,19 @@
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
-
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 """
 
 Note that this does NOT pay attention to the current pause state in the db.  It can't do that right now
@@ -78,4 +90,4 @@ class GpFaultProberImplGpdb(GpFaultProber):
             if conn:
                 conn.close()
                 
-        return probe_interval_secs
\ No newline at end of file
+        return probe_interval_secs

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/faultProberImplTest.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/faultProberImplTest.py b/tools/bin/gppylib/system/faultProberImplTest.py
index 3a65d80..fde8dba 100644
--- a/tools/bin/gppylib/system/faultProberImplTest.py
+++ b/tools/bin/gppylib/system/faultProberImplTest.py
@@ -1,6 +1,19 @@
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 """
 """

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/faultProberInterface.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/faultProberInterface.py b/tools/bin/gppylib/system/faultProberInterface.py
index 4a4be18..7b5165d 100644
--- a/tools/bin/gppylib/system/faultProberInterface.py
+++ b/tools/bin/gppylib/system/faultProberInterface.py
@@ -1,6 +1,19 @@
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 """
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/fileSystemImplOs.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/fileSystemImplOs.py b/tools/bin/gppylib/system/fileSystemImplOs.py
index 1f8b48e..e6a094c 100644
--- a/tools/bin/gppylib/system/fileSystemImplOs.py
+++ b/tools/bin/gppylib/system/fileSystemImplOs.py
@@ -1,7 +1,20 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2009. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 """
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/fileSystemImplTest.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/fileSystemImplTest.py b/tools/bin/gppylib/system/fileSystemImplTest.py
index 0094f83..49fae07 100644
--- a/tools/bin/gppylib/system/fileSystemImplTest.py
+++ b/tools/bin/gppylib/system/fileSystemImplTest.py
@@ -1,7 +1,20 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2009. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 """
 
@@ -103,4 +116,4 @@ class GpFileSystemProviderForTest :
         return self.__temporaryFiles[tempFileIndex].getDataForTesting()
 
     def hasTemporaryFileDataForTesting(self, tempFileIndex):
-        return tempFileIndex >= 0 and tempFileIndex < len(self.__temporaryFiles)
\ No newline at end of file
+        return tempFileIndex >= 0 and tempFileIndex < len(self.__temporaryFiles)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/fileSystemInterface.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/fileSystemInterface.py b/tools/bin/gppylib/system/fileSystemInterface.py
index 6ad7bcc..5cd9d57 100644
--- a/tools/bin/gppylib/system/fileSystemInterface.py
+++ b/tools/bin/gppylib/system/fileSystemInterface.py
@@ -1,7 +1,20 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2009. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 """
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/osImplNative.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/osImplNative.py b/tools/bin/gppylib/system/osImplNative.py
index 30def94..ca32e35 100644
--- a/tools/bin/gppylib/system/osImplNative.py
+++ b/tools/bin/gppylib/system/osImplNative.py
@@ -1,7 +1,20 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2009. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 """
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/osImplTest.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/osImplTest.py b/tools/bin/gppylib/system/osImplTest.py
index c1c159e..7a9cce9 100644
--- a/tools/bin/gppylib/system/osImplTest.py
+++ b/tools/bin/gppylib/system/osImplTest.py
@@ -1,7 +1,21 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2009. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 """
 
 This file defines the interface that can be used to

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/system/osInterface.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/system/osInterface.py b/tools/bin/gppylib/system/osInterface.py
index 17743ca..15d722f 100644
--- a/tools/bin/gppylib/system/osInterface.py
+++ b/tools/bin/gppylib/system/osInterface.py
@@ -1,7 +1,20 @@
 #!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2009. All Rights Reserved.
-#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 """
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/test/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/test/__init__.py b/tools/bin/gppylib/test/__init__.py
index bb0e52c..3ac40b9 100644
--- a/tools/bin/gppylib/test/__init__.py
+++ b/tools/bin/gppylib/test/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # $Id: $
 
 # Make sure Python loads the modules of this package via absolute paths.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/test/regress/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/test/regress/__init__.py b/tools/bin/gppylib/test/regress/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/test/regress/__init__.py
+++ b/tools/bin/gppylib/test/regress/__init__.py
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 # Make sure Python loads the modules of this package via absolute paths.
 from os.path import abspath as _abspath
 __path__[0] = _abspath(__path__[0])

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/test/regress/test_regress_gpexpand.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/test/regress/test_regress_gpexpand.py b/tools/bin/gppylib/test/regress/test_regress_gpexpand.py
index 15a9ddc..2c32c11 100644
--- a/tools/bin/gppylib/test/regress/test_regress_gpexpand.py
+++ b/tools/bin/gppylib/test/regress/test_regress_gpexpand.py
@@ -1,4 +1,20 @@
 #!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import unittest2 as unittest
 import os, socket