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/12 04:35:38 UTC

[03/14] incubator-hawq git commit: HAWQ-57. Add license header to source files and add the NOTICE file

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_verification_history.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_verification_history.h b/src/include/catalog/gp_verification_history.h
index ef7c834..42e7540 100644
--- a/src/include/catalog/gp_verification_history.h
+++ b/src/include/catalog/gp_verification_history.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
 /*-------------------------------------------------------------------------
  *
  * gp_verification_history.h
  *    record status information on online verification requests
  *    gpverify utility adds and deletes records in this table
  *
- * Copyright (c) 2006-2011, Greenplum Inc.
  *
  * $Id: $
  * $Change: $

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/hcatalog/externalmd.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/hcatalog/externalmd.h b/src/include/catalog/hcatalog/externalmd.h
index b592fc7..f756c0a 100644
--- a/src/include/catalog/hcatalog/externalmd.h
+++ b/src/include/catalog/hcatalog/externalmd.h
@@ -1,4 +1,22 @@
 /*
+ * 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.
+ */
+/*
  * externalmd.h
  *
  *  Created on: Mar 6, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/hcatalog/hcatalogmd.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/hcatalog/hcatalogmd.h b/src/include/catalog/hcatalog/hcatalogmd.h
index bd1fd83..4b72d9e 100644
--- a/src/include/catalog/hcatalog/hcatalogmd.h
+++ b/src/include/catalog/hcatalog/hcatalogmd.h
@@ -1,4 +1,22 @@
 /*
+ * 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.
+ */
+/*
  * hcatalogmd.h
  *
  *  Representation of hcatalog table metadata

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbanalyze.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbanalyze.h b/src/include/cdb/cdbanalyze.h
index 3ac8baa..7cc2f01 100644
--- a/src/include/cdb/cdbanalyze.h
+++ b/src/include/cdb/cdbanalyze.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbanalyze.h
  *	  Provides routines for performing distributed analyze cdb
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbappendonlyblockdirectory.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbappendonlyblockdirectory.h b/src/include/cdb/cdbappendonlyblockdirectory.h
index b7d83ed..c85488c 100644
--- a/src/include/cdb/cdbappendonlyblockdirectory.h
+++ b/src/include/cdb/cdbappendonlyblockdirectory.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*------------------------------------------------------------------------------
  *
  * cdbappendonlyblockdirectory.h
  *
- * Copyright (c) 2009, Greenplum Inc.
- *
  * $Id: $
  * $Change: $
  * $DateTime: $

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbappendonlystorage.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbappendonlystorage.h b/src/include/cdb/cdbappendonlystorage.h
index 9df8827..7a74557 100644
--- a/src/include/cdb/cdbappendonlystorage.h
+++ b/src/include/cdb/cdbappendonlystorage.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbappendonlystorage.h
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBAPPENDONLYSTORAGE_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbappendonlystorage_int.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbappendonlystorage_int.h b/src/include/cdb/cdbappendonlystorage_int.h
index f849b86..dbfcdd3 100644
--- a/src/include/cdb/cdbappendonlystorage_int.h
+++ b/src/include/cdb/cdbappendonlystorage_int.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbappendonlystorage.h
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 
@@ -13,7 +30,7 @@
 #include "cdb/cdbappendonlystorage.h"
 
 /*
- * For checksum protection that doesn�t require examining the unchecked data,
+ * For checksum protection that doesn't require examining the unchecked data,
  * we always use a 64 bit header.  
  *
  * So, 64 bit header + [ block checksum + header checksum ].  When the table

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbappendonlystorageformat.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbappendonlystorageformat.h b/src/include/cdb/cdbappendonlystorageformat.h
old mode 100755
new mode 100644
index 9f81fbd..9c8d596
--- a/src/include/cdb/cdbappendonlystorageformat.h
+++ b/src/include/cdb/cdbappendonlystorageformat.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbappendonlystorageformat.h
  *
- * Copyright (c) 2007-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBAPPENDONLYSTORAGEFORMAT_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbappendonlystoragelayer.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbappendonlystoragelayer.h b/src/include/cdb/cdbappendonlystoragelayer.h
old mode 100755
new mode 100644
index 0b61ad1..7086295
--- a/src/include/cdb/cdbappendonlystoragelayer.h
+++ b/src/include/cdb/cdbappendonlystoragelayer.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbappendonlystoragelayer.h
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBAPPENDONLYSTORAGELAYER_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbappendonlystorageread.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbappendonlystorageread.h b/src/include/cdb/cdbappendonlystorageread.h
old mode 100755
new mode 100644
index 95717a8..02b0624
--- a/src/include/cdb/cdbappendonlystorageread.h
+++ b/src/include/cdb/cdbappendonlystorageread.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbappendonlystorageread.h
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBAPPENDONLYSTORAGEREAD_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbappendonlystoragewrite.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbappendonlystoragewrite.h b/src/include/cdb/cdbappendonlystoragewrite.h
old mode 100755
new mode 100644
index f93bad8..7c2edd5
--- a/src/include/cdb/cdbappendonlystoragewrite.h
+++ b/src/include/cdb/cdbappendonlystoragewrite.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbappendonlystoragewrite.h
  *
- * Copyright (c) 2007-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBAPPENDONLYSTORAGEWRITE_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbbackup.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbbackup.h b/src/include/cdb/cdbbackup.h
index c97af16..004bd9b 100644
--- a/src/include/cdb/cdbbackup.h
+++ b/src/include/cdb/cdbbackup.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbbackup.h
  *
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbbufferedappend.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbbufferedappend.h b/src/include/cdb/cdbbufferedappend.h
index a2f2b0d..d57d6d1 100644
--- a/src/include/cdb/cdbbufferedappend.h
+++ b/src/include/cdb/cdbbufferedappend.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbbufferedappend.h
@@ -5,8 +24,6 @@
  *
  * The client is given direct access to the write buffer for appending
  * buffers efficiency.
- *        
- * Copyright (c) 2007, greenplum inc
  *
  *-------------------------------------------------------------------------
  */
@@ -174,7 +191,7 @@ extern uint8 *BufferedAppendMoveToNextBuffer(
 
 
 /*
- * Returns the current file�s length.
+ * Returns the current file's length.
  */
 extern int64 BufferedAppendFileLen(
     BufferedAppend *bufferedAppend);

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbbufferedread.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbbufferedread.h b/src/include/cdb/cdbbufferedread.h
index e04e3ce..bffaee9 100644
--- a/src/include/cdb/cdbbufferedread.h
+++ b/src/include/cdb/cdbbufferedread.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbbufferedread.h
@@ -5,8 +24,6 @@
  *
  * The client is given direct access to large read buffer for reading
  * buffers efficiency.
- *        
- * Copyright (c) 2007, greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbcat.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbcat.h b/src/include/cdb/cdbcat.h
index c9be55e..9b492d4 100644
--- a/src/include/cdb/cdbcat.h
+++ b/src/include/cdb/cdbcat.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbcat.h
  *	  routines for reading info from Greenplum Database schema tables
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbcellbuf.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbcellbuf.h b/src/include/cdb/cdbcellbuf.h
index c0e1b52..d138796 100644
--- a/src/include/cdb/cdbcellbuf.h
+++ b/src/include/cdb/cdbcellbuf.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbcellbuf.h
  *    a container for small items of constant size
  *
- * Copyright (c) 2007-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBCELLBUF_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbchunkpool.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbchunkpool.h b/src/include/cdb/cdbchunkpool.h
index fccf0ba..3fc97f6 100644
--- a/src/include/cdb/cdbchunkpool.h
+++ b/src/include/cdb/cdbchunkpool.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbchunkpool.h
@@ -5,8 +24,6 @@
  * Allocates chunks of a fixed size from an underlying AsetDirectContext,
  * and keeps a freelist for recycling them.
  *
- * Copyright (c) 2007-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBCHUNKPOOL_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbconn.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbconn.h b/src/include/cdb/cdbconn.h
index 91365b0..cd53b96 100644
--- a/src/include/cdb/cdbconn.h
+++ b/src/include/cdb/cdbconn.h
@@ -1,10 +1,28 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbconn.h
  *
  * Functions returning results from a remote database
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbcopy.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbcopy.h b/src/include/cdb/cdbcopy.h
index 3d0f062..4d5a6f4 100644
--- a/src/include/cdb/cdbcopy.h
+++ b/src/include/cdb/cdbcopy.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*--------------------------------------------------------------------------
 *
 * cdbcopy.h
@@ -5,8 +24,6 @@
 *	 These are functions that are used by the backend
 *	 COPY command in Greenplum Database.
 *
-* Copyright (c) 2005-2008, Greenplum inc
-*
 *--------------------------------------------------------------------------
 */
 #ifndef CDBCOPY_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdatabaseinfo.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdatabaseinfo.h b/src/include/cdb/cdbdatabaseinfo.h
old mode 100755
new mode 100644
index fadcb44..ee7c252
--- a/src/include/cdb/cdbdatabaseinfo.h
+++ b/src/include/cdb/cdbdatabaseinfo.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdatabaseinfo.h
@@ -5,7 +24,6 @@
  *   Functions to collect information about the existing files within a
  *   database.
  *
- * Copyright (c) 2009-2010, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdatalocality.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdatalocality.h b/src/include/cdb/cdbdatalocality.h
index 25d1ada..902fc18 100644
--- a/src/include/cdb/cdbdatalocality.h
+++ b/src/include/cdb/cdbdatalocality.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdatalocality.h
  *	  Manages data locality.
  *
- * Copyright (c) 2014, Pivotal Inc.
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBDATALOCALITY_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdef.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdef.h b/src/include/cdb/cdbdef.h
index 9e3ad83..8d3033f 100644
--- a/src/include/cdb/cdbdef.h
+++ b/src/include/cdb/cdbdef.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdef.h
  *	Definitions for use anywhere
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBDEF_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdirectopen.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdirectopen.h b/src/include/cdb/cdbdirectopen.h
old mode 100755
new mode 100644
index 4247562..d352e8d
--- a/src/include/cdb/cdbdirectopen.h
+++ b/src/include/cdb/cdbdirectopen.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdirectopen.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBDIRECTOPEN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdisp.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdisp.h b/src/include/cdb/cdbdisp.h
index a2b5fe9..559fe47 100644
--- a/src/include/cdb/cdbdisp.h
+++ b/src/include/cdb/cdbdisp.h
@@ -1,11 +1,28 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdisp.h
  * routines for dispatching commands from the dispatcher process
  * to the qExec processes.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBDISP_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdispatchedtablespaceinfo.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdispatchedtablespaceinfo.h b/src/include/cdb/cdbdispatchedtablespaceinfo.h
index 2e8f3c5..db8e33a 100644
--- a/src/include/cdb/cdbdispatchedtablespaceinfo.h
+++ b/src/include/cdb/cdbdispatchedtablespaceinfo.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdispatchedtablespaceinfo.h
  *
- * Copyright (c) 2009-2012, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdispatchresult.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdispatchresult.h b/src/include/cdb/cdbdispatchresult.h
index 1ec249c..dce4ba9 100644
--- a/src/include/cdb/cdbdispatchresult.h
+++ b/src/include/cdb/cdbdispatchresult.h
@@ -1,11 +1,28 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdispatchresult.h
  * routines for dispatching commands from the dispatcher process
  * to the qExec processes.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBDISPATCHRESULT_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbdoublylinked.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbdoublylinked.h b/src/include/cdb/cdbdoublylinked.h
old mode 100755
new mode 100644
index d67ac87..ef78986
--- a/src/include/cdb/cdbdoublylinked.h
+++ b/src/include/cdb/cdbdoublylinked.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdoublylinked.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
  

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbexplain.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbexplain.h b/src/include/cdb/cdbexplain.h
index 17aa625..8dde233 100644
--- a/src/include/cdb/cdbexplain.h
+++ b/src/include/cdb/cdbexplain.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbexplain.h
  *    Functions supporting the Greenplum EXPLAIN ANALYZE command
  *
- * Copyright (c) 2006-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBEXPLAIN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbfilerep.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbfilerep.h b/src/include/cdb/cdbfilerep.h
index 012e268..0e6fe6e 100644
--- a/src/include/cdb/cdbfilerep.h
+++ b/src/include/cdb/cdbfilerep.h
@@ -1,9 +1,26 @@
 /*
+ * 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.
+ */
+
+/*
  *  cdbfilerep.h
  *
  *
- *  Copyright 2009-2010, Greenplum Inc. All rights reserved.
- *
  */
 
 #ifndef CDBFILEREP_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbfilesystemcredential.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbfilesystemcredential.h b/src/include/cdb/cdbfilesystemcredential.h
index 3413643..0a6be36 100644
--- a/src/include/cdb/cdbfilesystemcredential.h
+++ b/src/include/cdb/cdbfilesystemcredential.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbfilesystemcredential.h
  *	  manage local credential and file system credential
  *
- * Copyright (c) 2003-2013, Pivotal inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbfts.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbfts.h b/src/include/cdb/cdbfts.h
index c491af4..8c38e15 100644
--- a/src/include/cdb/cdbfts.h
+++ b/src/include/cdb/cdbfts.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  * cdbfts.h
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbgang.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbgang.h b/src/include/cdb/cdbgang.h
index 5358118..a30f8a5 100644
--- a/src/include/cdb/cdbgang.h
+++ b/src/include/cdb/cdbgang.h
@@ -1,8 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbgang.h
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbglobalsequence.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbglobalsequence.h b/src/include/cdb/cdbglobalsequence.h
old mode 100755
new mode 100644
index 6158939..7a08cc2
--- a/src/include/cdb/cdbglobalsequence.h
+++ b/src/include/cdb/cdbglobalsequence.h
@@ -1,8 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbglobalsequence.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbhash.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbhash.h b/src/include/cdb/cdbhash.h
index 8f4c270..ef8a2f2 100644
--- a/src/include/cdb/cdbhash.h
+++ b/src/include/cdb/cdbhash.h
@@ -1,9 +1,27 @@
+/*
+ * 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.
+ */
+
 /*--------------------------------------------------------------------------
 *
 * cdbhash.h
 *	 Definitions and API functions for cdbhash.c
 *
-* Copyright (c) 2005-2008, Greenplum inc
 *
 *--------------------------------------------------------------------------
 */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbheap.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbheap.h b/src/include/cdb/cdbheap.h
index 6b9f3d9..eba4989 100644
--- a/src/include/cdb/cdbheap.h
+++ b/src/include/cdb/cdbheap.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbheap.h
@@ -5,7 +24,6 @@
  * Generic heap functions, that can be used with any
  * data structure and comparator function
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbicudpfaultinjection.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbicudpfaultinjection.h b/src/include/cdb/cdbicudpfaultinjection.h
index 8845d83..40e6864 100644
--- a/src/include/cdb/cdbicudpfaultinjection.h
+++ b/src/include/cdb/cdbicudpfaultinjection.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  * cdbicudpfaultinjection.h
  *	   Fault injection code for UDP interconnect.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbinmemheapam.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbinmemheapam.h b/src/include/cdb/cdbinmemheapam.h
index ad2af21..cacb734 100644
--- a/src/include/cdb/cdbinmemheapam.h
+++ b/src/include/cdb/cdbinmemheapam.h
@@ -1,9 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbinmemheapam.h
  *	 goh in-memory heap table access method
  *
- * Copyright (c) 2007-2013, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbinterconnect.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbinterconnect.h b/src/include/cdb/cdbinterconnect.h
index 8168924..a27b782 100644
--- a/src/include/cdb/cdbinterconnect.h
+++ b/src/include/cdb/cdbinterconnect.h
@@ -1,8 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
 * cdbinterconnect.h
 *	defines state that is used by both the Motion Layer and IPC Layer.
 *
-* Copyright (c) 2006-2008, Greenplum inc
 *-------------------------------------------------------------------------
 */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbllize.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbllize.h b/src/include/cdb/cdbllize.h
index 8378d05..638f4bf 100644
--- a/src/include/cdb/cdbllize.h
+++ b/src/include/cdb/cdbllize.h
@@ -1,9 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbllize.h
  *	  definitions for cdbplan.c utilities
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *
  * NOTES

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdblogsync.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdblogsync.h b/src/include/cdb/cdblogsync.h
index 66d7c6b..ded4309 100644
--- a/src/include/cdb/cdblogsync.h
+++ b/src/include/cdb/cdblogsync.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  * cdblogsync.h
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmetadatacache.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmetadatacache.h b/src/include/cdb/cdbmetadatacache.h
index f36f5af..530329c 100644
--- a/src/include/cdb/cdbmetadatacache.h
+++ b/src/include/cdb/cdbmetadatacache.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #ifndef CDBMETADATACACHE_H
 #define CDBMETADATACACHE_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmetadatacache_internal.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmetadatacache_internal.h b/src/include/cdb/cdbmetadatacache_internal.h
index f7b2c39..b7dbeda 100644
--- a/src/include/cdb/cdbmetadatacache_internal.h
+++ b/src/include/cdb/cdbmetadatacache_internal.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #ifndef CDBMETADATACACHE_INTERNAL_H
 #define CDBMETADATACACHE_INTERNAL_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmirroredappendonly.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmirroredappendonly.h b/src/include/cdb/cdbmirroredappendonly.h
index ef60553..6ace301 100644
--- a/src/include/cdb/cdbmirroredappendonly.h
+++ b/src/include/cdb/cdbmirroredappendonly.h
@@ -1,8 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmirroredappendonly.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmirroredbufferpool.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmirroredbufferpool.h b/src/include/cdb/cdbmirroredbufferpool.h
old mode 100755
new mode 100644
index e3baf07..cf228d9
--- a/src/include/cdb/cdbmirroredbufferpool.h
+++ b/src/include/cdb/cdbmirroredbufferpool.h
@@ -1,8 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmirroredbufferpool.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmirroredfilesysobj.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmirroredfilesysobj.h b/src/include/cdb/cdbmirroredfilesysobj.h
old mode 100755
new mode 100644
index cebe128..1fef9d7
--- a/src/include/cdb/cdbmirroredfilesysobj.h
+++ b/src/include/cdb/cdbmirroredfilesysobj.h
@@ -1,9 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmirroredfsobj.h
  *	  Create and drop mirrored files and directories.
  *
- * Copyright (c) 2009-2010, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmirroredflatfile.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmirroredflatfile.h b/src/include/cdb/cdbmirroredflatfile.h
old mode 100755
new mode 100644
index 6e3cff8..ce944ba
--- a/src/include/cdb/cdbmirroredflatfile.h
+++ b/src/include/cdb/cdbmirroredflatfile.h
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmirroredflatfile.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBMIRROREDFLATFILE_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmotion.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmotion.h b/src/include/cdb/cdbmotion.h
index 755d5e6..5cf75f0 100644
--- a/src/include/cdb/cdbmotion.h
+++ b/src/include/cdb/cdbmotion.h
@@ -1,11 +1,28 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmotion.h
  *
  *
  *
- * Copyright (c) 2004-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBMOTION_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbmutate.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbmutate.h b/src/include/cdb/cdbmutate.h
index 2379eaa..c22f029 100644
--- a/src/include/cdb/cdbmutate.h
+++ b/src/include/cdb/cdbmutate.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbllize.h
  *	  definitions for cdbmutate.c utilities
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBMUTATE_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdboidsync.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdboidsync.h b/src/include/cdb/cdboidsync.h
index fcea727..ca1b6ea 100644
--- a/src/include/cdb/cdboidsync.h
+++ b/src/include/cdb/cdboidsync.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #ifndef CDBOIDSYNC_H_
 #define CDBOIDSYNC_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetam.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetam.h b/src/include/cdb/cdbparquetam.h
index 70c8937..e413bef 100644
--- a/src/include/cdb/cdbparquetam.h
+++ b/src/include/cdb/cdbparquetam.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetam.h
  *
  *  Created on: Jul 4, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetbitstreamutils.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetbitstreamutils.h b/src/include/cdb/cdbparquetbitstreamutils.h
index 0a3f428..ba0d824 100644
--- a/src/include/cdb/cdbparquetbitstreamutils.h
+++ b/src/include/cdb/cdbparquetbitstreamutils.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetbitstreamutils.h
  *
  *  Created on: Aug 22, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetbytepacker.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetbytepacker.h b/src/include/cdb/cdbparquetbytepacker.h
index 908188d..fd751db 100644
--- a/src/include/cdb/cdbparquetbytepacker.h
+++ b/src/include/cdb/cdbparquetbytepacker.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetbytepacker.h
  *
  *  Created on: Aug 22, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetcolumn.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetcolumn.h b/src/include/cdb/cdbparquetcolumn.h
index d45ba1c..521d444 100644
--- a/src/include/cdb/cdbparquetcolumn.h
+++ b/src/include/cdb/cdbparquetcolumn.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetcolum.h
  *
  *  Created on: Sep 29, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetfooterbuffer.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetfooterbuffer.h b/src/include/cdb/cdbparquetfooterbuffer.h
index 5a64528..34aa663 100644
--- a/src/include/cdb/cdbparquetfooterbuffer.h
+++ b/src/include/cdb/cdbparquetfooterbuffer.h
@@ -1,8 +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.
  */
 
 #ifndef CDBPARQUETFOOTERBUFFER_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetfooterprocessor.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetfooterprocessor.h b/src/include/cdb/cdbparquetfooterprocessor.h
index b532836..1759005 100644
--- a/src/include/cdb/cdbparquetfooterprocessor.h
+++ b/src/include/cdb/cdbparquetfooterprocessor.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetfooterprocessor.h
  *
  *  Created on: Sep 22, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetfooterserializer.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetfooterserializer.h b/src/include/cdb/cdbparquetfooterserializer.h
index c6e6e75..0c7a5b0 100644
--- a/src/include/cdb/cdbparquetfooterserializer.h
+++ b/src/include/cdb/cdbparquetfooterserializer.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetfooterserializer.h
  *
  *  Created on: Mar 17, 2014

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetfooterserializer_protocol.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetfooterserializer_protocol.h b/src/include/cdb/cdbparquetfooterserializer_protocol.h
index b872c44..6bfb19d 100644
--- a/src/include/cdb/cdbparquetfooterserializer_protocol.h
+++ b/src/include/cdb/cdbparquetfooterserializer_protocol.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetfooterserializer_protocol.h
  *
  *  Created on: Mar 17, 2014

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetrleencoder.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetrleencoder.h b/src/include/cdb/cdbparquetrleencoder.h
index 678820d..528d789 100644
--- a/src/include/cdb/cdbparquetrleencoder.h
+++ b/src/include/cdb/cdbparquetrleencoder.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetrleencoder.h
  *
  *  Created on: Aug 22, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetrowgroup.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetrowgroup.h b/src/include/cdb/cdbparquetrowgroup.h
index 57c3964..185e908 100644
--- a/src/include/cdb/cdbparquetrowgroup.h
+++ b/src/include/cdb/cdbparquetrowgroup.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetrowgroup.h
  *
  *  Created on: Sep 29, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetstorageread.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetstorageread.h b/src/include/cdb/cdbparquetstorageread.h
index 5fb5cff..d7a0627 100644
--- a/src/include/cdb/cdbparquetstorageread.h
+++ b/src/include/cdb/cdbparquetstorageread.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetstorageread.h
  *
  *  Created on: Jul 4, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbparquetstoragewrite.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbparquetstoragewrite.h b/src/include/cdb/cdbparquetstoragewrite.h
index 9e4097f..c0832c0 100644
--- a/src/include/cdb/cdbparquetstoragewrite.h
+++ b/src/include/cdb/cdbparquetstoragewrite.h
@@ -1,4 +1,23 @@
 /*
+ * 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.
+ */
+
+/*
  * cdbparquetstoragewrite.h
  *
  *  Created on: Jul 30, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpartition.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpartition.h b/src/include/cdb/cdbpartition.h
index 90c4747..9630eb3 100644
--- a/src/include/cdb/cdbpartition.h
+++ b/src/include/cdb/cdbpartition.h
@@ -1,10 +1,27 @@
+/*
+ * 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.
+ */
+
 /*--------------------------------------------------------------------------
  *
  * cdbpartition.h
  *	 Definitions and API functions for cdbpartition.c
  *
- * Copyright (c) 2005-2010, Greenplum inc
- *
  *--------------------------------------------------------------------------
  */
 #ifndef CDBPARTITION_H