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:36 UTC

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

Repository: incubator-hawq
Updated Branches:
  refs/heads/master d2862fff1 -> a41ad6f2c


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeRowTrigger.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeRowTrigger.h b/src/include/executor/nodeRowTrigger.h
index 5bcf138..d04ead7 100644
--- a/src/include/executor/nodeRowTrigger.h
+++ b/src/include/executor/nodeRowTrigger.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeRowTriggerOp.h
  *	  Prototypes for nodeRowTriggerOp.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeSequence.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeSequence.h b/src/include/executor/nodeSequence.h
index e532987..f7a398c 100644
--- a/src/include/executor/nodeSequence.h
+++ b/src/include/executor/nodeSequence.h
@@ -1,8 +1,25 @@
 /*
+ * 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.
+ */
+/*
  * nodeSequence.h
  *    header file for nodeSequence.c.
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
  */
 #ifndef NODESEQUENCE_H
 #define NODESEQUENCE_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeSplitUpdate.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeSplitUpdate.h b/src/include/executor/nodeSplitUpdate.h
index 6c7f22d..6806707 100644
--- a/src/include/executor/nodeSplitUpdate.h
+++ b/src/include/executor/nodeSplitUpdate.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeSplitUpdate.h
  *        Prototypes for nodeSplitUpdate.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeTableFunction.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeTableFunction.h b/src/include/executor/nodeTableFunction.h
index c0ada44..75b23a3 100644
--- a/src/include/executor/nodeTableFunction.h
+++ b/src/include/executor/nodeTableFunction.h
@@ -1,9 +1,25 @@
+/*
+ * 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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeTableFunction.h
  *
- * Copyright (c) 2011 - present, EMC
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeTableScan.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeTableScan.h b/src/include/executor/nodeTableScan.h
index 7f2923c..87501f8 100644
--- a/src/include/executor/nodeTableScan.h
+++ b/src/include/executor/nodeTableScan.h
@@ -1,7 +1,24 @@
 /*
+ * 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.
+ */
+/*
  * nodeTableScan.h
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
  */
 #ifndef NODETABLESCAN_H
 #define NODETABLESCAN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeWindow.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeWindow.h b/src/include/executor/nodeWindow.h
index c1db7cb..d5fe04e 100644
--- a/src/include/executor/nodeWindow.h
+++ b/src/include/executor/nodeWindow.h
@@ -1,11 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeWindow.h
  *	  prototypes for nodeWindow.c
  *
- *
- * Copyright (c) 2007-2008, Greenplum inc *
- *
  *-------------------------------------------------------------------------
  */
 #ifndef NODEWINDOW_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/utils/session_state.h
----------------------------------------------------------------------
diff --git a/src/include/utils/session_state.h b/src/include/utils/session_state.h
index cdf20e6..0a301ae 100644
--- a/src/include/utils/session_state.h
+++ b/src/include/utils/session_state.h
@@ -1,10 +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
  *
- * session_state.h
- *	  This file contains declarations for session state information.
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Copyright (c) 2014, Pivotal Inc.
+ * 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 SESSIONSTATE_H
 #define SESSIONSTATE_H
 


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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbmutate.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmutate.c b/src/backend/cdb/cdbmutate.c
index 7efb7a5..6959c64 100644
--- a/src/backend/cdb/cdbmutate.c
+++ b/src/backend/cdb/cdbmutate.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmutate.c
  *	  Parallelize a PostgreSQL sequential plan tree.
  *
- * Copyright (c) 2004-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdboidsync.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdboidsync.c b/src/backend/cdb/cdboidsync.c
index 6ccb167..19f2dda 100644
--- a/src/backend/cdb/cdboidsync.c
+++ b/src/backend/cdb/cdboidsync.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdboidsync.c
  *
  * Make sure we don't re-use oids already used on the segment databases
  *
- * Copyright (c) 2007-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetbitstreamutil.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetbitstreamutil.c b/src/backend/cdb/cdbparquetbitstreamutil.c
index ec34df6..c824dae 100644
--- a/src/backend/cdb/cdbparquetbitstreamutil.c
+++ b/src/backend/cdb/cdbparquetbitstreamutil.c
@@ -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.
+ */
+
+/*
  * cdbparquetbitstreamutil.c
  *
  *  Created on: Aug 23, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetbytepacker.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetbytepacker.c b/src/backend/cdb/cdbparquetbytepacker.c
index f1bc74c..776aafb 100644
--- a/src/backend/cdb/cdbparquetbytepacker.c
+++ b/src/backend/cdb/cdbparquetbytepacker.c
@@ -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.c
  *
  *  Created on: Aug 22, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetcolumn.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetcolumn.c b/src/backend/cdb/cdbparquetcolumn.c
index 1fa9560..be437f7 100644
--- a/src/backend/cdb/cdbparquetcolumn.c
+++ b/src/backend/cdb/cdbparquetcolumn.c
@@ -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.
+ */
+
+/*
  * cdbparquetcolumn.c
  *
  *  Created on: Sep 29, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetfooterbuffer.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetfooterbuffer.c b/src/backend/cdb/cdbparquetfooterbuffer.c
index eacd1a6..9a371b8 100644
--- a/src/backend/cdb/cdbparquetfooterbuffer.c
+++ b/src/backend/cdb/cdbparquetfooterbuffer.c
@@ -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.
+ */
+
 #include "cdb/cdbparquetfooterbuffer.h"
 
 #define PARQUET_FOOTER_TEMPFILE_PREFIX  "footer_buffered_write"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetfooterprocessor.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetfooterprocessor.c b/src/backend/cdb/cdbparquetfooterprocessor.c
index c72d286..510a65f 100644
--- a/src/backend/cdb/cdbparquetfooterprocessor.c
+++ b/src/backend/cdb/cdbparquetfooterprocessor.c
@@ -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.c
  *
  *  Created on: Sep 22, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetfooterserializer.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetfooterserializer.c b/src/backend/cdb/cdbparquetfooterserializer.c
index 493873d..8677078 100644
--- a/src/backend/cdb/cdbparquetfooterserializer.c
+++ b/src/backend/cdb/cdbparquetfooterserializer.c
@@ -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.c
  *
  *  Created on: Mar 17, 2014

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetfooterserializer_protocol.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetfooterserializer_protocol.c b/src/backend/cdb/cdbparquetfooterserializer_protocol.c
index f3b9113..da3121a 100644
--- a/src/backend/cdb/cdbparquetfooterserializer_protocol.c
+++ b/src/backend/cdb/cdbparquetfooterserializer_protocol.c
@@ -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.
+ */
+
 #include "cdb/cdbparquetfooterserializer_protocol.h"
 #include "cdb/cdbparquetfooterbuffer.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetrleencoder.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetrleencoder.c b/src/backend/cdb/cdbparquetrleencoder.c
index 9711c10..bebcf15 100644
--- a/src/backend/cdb/cdbparquetrleencoder.c
+++ b/src/backend/cdb/cdbparquetrleencoder.c
@@ -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.c
  *
  *  Created on: Aug 22, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetrowgroup.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetrowgroup.c b/src/backend/cdb/cdbparquetrowgroup.c
index cace895..05e0fc0 100644
--- a/src/backend/cdb/cdbparquetrowgroup.c
+++ b/src/backend/cdb/cdbparquetrowgroup.c
@@ -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.c
  *
  *  Created on: Sep 29, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetstorageread.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetstorageread.c b/src/backend/cdb/cdbparquetstorageread.c
index 236e3d0..92f0799 100644
--- a/src/backend/cdb/cdbparquetstorageread.c
+++ b/src/backend/cdb/cdbparquetstorageread.c
@@ -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.c
  *
  *  Created on: Sep 26, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbparquetstoragewrite.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetstoragewrite.c b/src/backend/cdb/cdbparquetstoragewrite.c
index a033f50..577b327 100644
--- a/src/backend/cdb/cdbparquetstoragewrite.c
+++ b/src/backend/cdb/cdbparquetstoragewrite.c
@@ -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.c
 
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpartindex.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpartindex.c b/src/backend/cdb/cdbpartindex.c
index 1e7bc80..ead6738 100644
--- a/src/backend/cdb/cdbpartindex.c
+++ b/src/backend/cdb/cdbpartindex.c
@@ -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.
+ */
+
 /*--------------------------------------------------------------------------
  *
  * cdbpartindex.c
  *	Provides utility routines to support indexes over partitioned tables
  *	within Greenplum Database.
  *
- * Copyright (c) 2005-2010, Greenplum inc
- *
  *--------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpartition.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpartition.c b/src/backend/cdb/cdbpartition.c
index bd74837..f6bbf0d 100644
--- a/src/backend/cdb/cdbpartition.c
+++ b/src/backend/cdb/cdbpartition.c
@@ -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.
+ */
+
 /*--------------------------------------------------------------------------
  *
  * cdbpartition.c
@@ -6,8 +25,6 @@
  * 
  *    Many items are just extensions of tablecmds.c.
  *
- * Copyright (c) 2005-2010, Greenplum inc
- *
  *--------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpath.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpath.c b/src/backend/cdb/cdbpath.c
index fe0ec5c..fc25f4c 100644
--- a/src/backend/cdb/cdbpath.c
+++ b/src/backend/cdb/cdbpath.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpath.c
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpathlocus.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpathlocus.c b/src/backend/cdb/cdbpathlocus.c
index c11db93..0cb1992 100644
--- a/src/backend/cdb/cdbpathlocus.c
+++ b/src/backend/cdb/cdbpathlocus.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpathlocus.c
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpathtoplan.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpathtoplan.c b/src/backend/cdb/cdbpathtoplan.c
index 96b632d..946f85d 100644
--- a/src/backend/cdb/cdbpathtoplan.c
+++ b/src/backend/cdb/cdbpathtoplan.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpathtoplan.c
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpersistentbuild.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentbuild.c b/src/backend/cdb/cdbpersistentbuild.c
old mode 100755
new mode 100644
index 7b161b1..25fe38a
--- a/src/backend/cdb/cdbpersistentbuild.c
+++ b/src/backend/cdb/cdbpersistentbuild.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistentbuild.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpersistentdatabase.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentdatabase.c b/src/backend/cdb/cdbpersistentdatabase.c
old mode 100755
new mode 100644
index cd509bf..b52dafc
--- a/src/backend/cdb/cdbpersistentdatabase.c
+++ b/src/backend/cdb/cdbpersistentdatabase.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistentdatabase.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpersistentfilesysobj.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentfilesysobj.c b/src/backend/cdb/cdbpersistentfilesysobj.c
old mode 100755
new mode 100644
index 98c6cd0..5b3b36d
--- a/src/backend/cdb/cdbpersistentfilesysobj.c
+++ b/src/backend/cdb/cdbpersistentfilesysobj.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistentfilesysobj.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpersistentrelation.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentrelation.c b/src/backend/cdb/cdbpersistentrelation.c
index e42bc6c..7ec8958 100644
--- a/src/backend/cdb/cdbpersistentrelation.c
+++ b/src/backend/cdb/cdbpersistentrelation.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistentrelation.c
  *
- * Copyright (c) 2013-2014, Pivotal Software Inc.
- *
  *-------------------------------------------------------------------------
  */
 

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpersistentstore.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentstore.c b/src/backend/cdb/cdbpersistentstore.c
old mode 100755
new mode 100644
index ded1611..b7cd963
--- a/src/backend/cdb/cdbpersistentstore.c
+++ b/src/backend/cdb/cdbpersistentstore.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistentstore.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpersistenttablespace.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistenttablespace.c b/src/backend/cdb/cdbpersistenttablespace.c
old mode 100755
new mode 100644
index 3cab072..5a008e9
--- a/src/backend/cdb/cdbpersistenttablespace.c
+++ b/src/backend/cdb/cdbpersistenttablespace.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistenttablespace.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpgdatabase.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpgdatabase.c b/src/backend/cdb/cdbpgdatabase.c
index f8553c6..2e0ae97 100644
--- a/src/backend/cdb/cdbpgdatabase.c
+++ b/src/backend/cdb/cdbpgdatabase.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpgdatabase.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbplan.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbplan.c b/src/backend/cdb/cdbplan.c
index 9c70335..68d65f0 100644
--- a/src/backend/cdb/cdbplan.c
+++ b/src/backend/cdb/cdbplan.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbplan.c
  *	  Provides routines supporting plan tree manipulation.
  *
- * Copyright (c) 2004-2008, Greenplum inc
- *
  * NOTES
  *	See src/backend/optimizer/util/clauses.c for background information
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbpullup.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpullup.c b/src/backend/cdb/cdbpullup.c
index a3a9562..bc3c6e2 100644
--- a/src/backend/cdb/cdbpullup.c
+++ b/src/backend/cdb/cdbpullup.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpullup.c
  *    Provides routines supporting plan tree manipulation.
  *
- * Copyright (c)2006-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbquerycontextdispatching.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbquerycontextdispatching.c b/src/backend/cdb/cdbquerycontextdispatching.c
index 401e15d..b8607bd 100644
--- a/src/backend/cdb/cdbquerycontextdispatching.c
+++ b/src/backend/cdb/cdbquerycontextdispatching.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbquerydispatchingcontext.c
  *
- * Copyright (c) 2007-2013, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbrelsize.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbrelsize.c b/src/backend/cdb/cdbrelsize.c
index c4802a7..3fd96a7 100644
--- a/src/backend/cdb/cdbrelsize.c
+++ b/src/backend/cdb/cdbrelsize.c
@@ -1,12 +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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbrelsize.h
  *
  * Get the max size of the relation across the segDBs
  *
- * Copyright (c) 2006-2008, Greenplum inc
- *
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbresynchronizechangetracking.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbresynchronizechangetracking.c b/src/backend/cdb/cdbresynchronizechangetracking.c
index dc72d1c..f8361b6 100644
--- a/src/backend/cdb/cdbresynchronizechangetracking.c
+++ b/src/backend/cdb/cdbresynchronizechangetracking.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbresynchronizechangetracking.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include <fcntl.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbsetop.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbsetop.c b/src/backend/cdb/cdbsetop.c
index b081987..488beda 100644
--- a/src/backend/cdb/cdbsetop.c
+++ b/src/backend/cdb/cdbsetop.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsetop.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbshareddoublylinked.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbshareddoublylinked.c b/src/backend/cdb/cdbshareddoublylinked.c
index d1bd317..d72a78c 100644
--- a/src/backend/cdb/cdbshareddoublylinked.c
+++ b/src/backend/cdb/cdbshareddoublylinked.c
@@ -1,374 +1,391 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
- *
- * cdbshareddoublylinked.c
- *
- * Copyright (c) 2007-2008, Greenplum inc
  *
- *-------------------------------------------------------------------------
- */
-
+ * cdbshareddoublylinked.c
+ *
+ *-------------------------------------------------------------------------
+ */
+
 #include "postgres.h"
-#include "miscadmin.h"
-#include "cdb/cdbshareddoublylinked.h"
-
-void
-SharedListBase_Init(
-	SharedListBase		*base,
-	void				*data,
-	int					size,
-	int					offsetToDoubleLinks)
-{
-	base->data = data;
-	base->size = size;
-	base->offsetToDoubleLinks = offsetToDoubleLinks;
-}
-
-void
-SharedDoublyLinkedHead_Init(
-	SharedDoublyLinkedHead	*head)
-{
-	head->count = 0;
-	head->first = -1;
-	head->last = -1;
-}
-
-void
-SharedDoubleLinks_Init(
-	SharedDoubleLinks	*doubleLinks,
-	int					index)
-{
-	doubleLinks->index = index;
-	doubleLinks->prev = -1;
-	doubleLinks->next = -1;
-}
-
-SharedDoubleLinks*
-SharedDoubleLinks_FromElement(	
-	SharedListBase				*base,
-	void						*current)
-{
-	uint8 *uint8Current = (uint8*)current;
-
-	return (SharedDoubleLinks*)(uint8Current + base->offsetToDoubleLinks);
-}
-
-void*
-SharedListBase_ToElement(	
-	SharedListBase		*base,
-	int					index)
-{
-	Assert(base != NULL);
-	Assert(index >= 0);
-	
-	return base->data + (index * base->size);
-}
-
-void*
-SharedDoublyLinkedHead_First(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head)
-{
-	Assert(base != NULL);
-	Assert(head != NULL);
-
-	if (head->first != -1)
-	{
-		void *firstEle;
-		SharedDoubleLinks	*firstDoubleLinks;
-
-		Assert(head->first >= 0);
-		firstEle = SharedListBase_ToElement(base, head->first);
-		firstDoubleLinks = SharedDoubleLinks_FromElement(base, firstEle);
-		Assert(firstDoubleLinks->index == head->first);
-
-		return firstEle;
-	}
-	else
-		return NULL;
-}
-
-SharedDoubleLinks*
-SharedListBase_ToDoubleLinks(	
-	SharedListBase		*base,
-	int					index)
-{
-	SharedDoubleLinks *sharedDoubleLinks;
-	
-	Assert(base != NULL);
-	Assert(index >= 0);
-	
-	sharedDoubleLinks =
-		(SharedDoubleLinks*)
-				(base->data + (index * base->size) + base->offsetToDoubleLinks);
-	Assert(sharedDoubleLinks->index == index);
-
-	return sharedDoubleLinks;
-}
-
-void*
-SharedDoubleLinks_Next(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*currentEle)
-{
-	SharedDoubleLinks	*currentDoubleLinks;
-	
-	Assert(base != NULL);
-	Assert(head != NULL);
-	Assert(currentEle != NULL);
-
-	currentDoubleLinks = SharedDoubleLinks_FromElement(base, currentEle);
-
-	if (currentDoubleLinks->next == -1)
-	{
-		Assert(head->last == currentDoubleLinks->index);
-		return NULL;
-	}
-	else
-	{
-		void *nextEle;
-		SharedDoubleLinks	*nextDoubleLinks;
-		
-		Assert(currentDoubleLinks->next >= 0);
-		nextEle = SharedListBase_ToElement(base, currentDoubleLinks->next);
-		nextDoubleLinks = SharedDoubleLinks_FromElement(base, nextEle);
-		Assert(nextDoubleLinks->index == currentDoubleLinks->next);
-
-		return nextEle;
-	}
-
-}
-
-void
-SharedDoubleLinks_Remove(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*removeEle)
-{
-	SharedDoubleLinks	*removeDoubleLinks;
-	int					index;
-	SharedDoubleLinks	*prevDoubleLinks = NULL;
-	SharedDoubleLinks	*nextDoubleLinks = NULL;
-
-	
-	Assert(base != NULL);
-	Assert(head != NULL);
-	Assert(removeEle != NULL);
-	
-	removeDoubleLinks = SharedDoubleLinks_FromElement(base, removeEle);
-	index = removeDoubleLinks->index;
-
-	if (removeDoubleLinks->prev == -1 &&
-		removeDoubleLinks->next == -1)
-	{
-		/*
-		 * Removing the only one.
-		 */
-		Assert(head->first == index);
-		Assert(head->last == index);
-		Assert(head->count == 1);
-		head->first = -1;
-		head->last = -1;
-	}
-	else if (removeDoubleLinks->prev == -1)
-	{
-		/*
-		 * Removing the first element.
-		 */
-		Assert(head->first == index);
-		
-		nextDoubleLinks = 
-			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->next);
-		Assert(nextDoubleLinks->prev == index);
-		nextDoubleLinks->prev = -1;
-		
-		head->first = nextDoubleLinks->index;
-	}
-	else if (removeDoubleLinks->next == -1)
-	{
-		Assert(head->last == index);
-		
-		/*
-		 * Removing the last element.
-		 */
-		prevDoubleLinks = 
-			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->prev);
-		Assert(prevDoubleLinks->next == index);
-		prevDoubleLinks->next = -1;
-		
-		head->last = prevDoubleLinks->index;
-	}
-	else
-	{
-		/*
-		 * Removing a middle element.
-		 */
-		nextDoubleLinks = 
-			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->next);
-		Assert(nextDoubleLinks->prev == index);
-		nextDoubleLinks->prev = removeDoubleLinks->prev;
-
-		prevDoubleLinks = 
-			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->prev);
-		Assert(prevDoubleLinks->next == index);
-		prevDoubleLinks->next = removeDoubleLinks->next;
-	}
-
-	Assert(head->count >= 1);
-	head->count--;
-	
-	removeDoubleLinks->prev = -1;
-	removeDoubleLinks->next = -1;
-}
-
-void
-SharedDoublyLinkedHead_AddFirst(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*ele)
-{
-	SharedDoubleLinks	*eleDoubleLinks;
-	
-	Assert(base != NULL);
-	Assert(head != NULL);
-	Assert(ele != NULL);
-	eleDoubleLinks = SharedDoubleLinks_FromElement(base, ele);
-	Assert(eleDoubleLinks->prev == -1);
-	Assert(eleDoubleLinks->next == -1);
-
-	if (head->first == -1 && head->last == -1)
-	{
-		Assert(head->count == 0);
-		head->first = eleDoubleLinks->index;
-		head->last = eleDoubleLinks->index;
-	}
-	else
-	{
-		SharedDoubleLinks	*firstDoubleLinks;
-		
-		Assert(head->count > 0);
-		firstDoubleLinks = 
-			SharedListBase_ToDoubleLinks(base, head->first);
-		Assert(firstDoubleLinks->prev == -1);
-
-		eleDoubleLinks->next = head->first;
-		head->first = eleDoubleLinks->index;
-		firstDoubleLinks->prev = eleDoubleLinks->index;
-	}
-	
-	head->count++;
-}
-
-void
-SharedDoublyLinkedHead_AddLast(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*ele)
-{
-	SharedDoubleLinks	*eleDoubleLinks;
-	
-	Assert(base != NULL);
-	Assert(head != NULL);
-	Assert(ele != NULL);
-	eleDoubleLinks = SharedDoubleLinks_FromElement(base, ele);
-	Assert(eleDoubleLinks->prev == -1);
-	Assert(eleDoubleLinks->next == -1);
-
-	if (head->first == -1 && head->last == -1)
-	{
-		Assert(head->count == 0);
-		head->first = eleDoubleLinks->index;
-		head->last = eleDoubleLinks->index;
-	}
-	else
-	{
-		SharedDoubleLinks	*lastDoubleLinks;
-		
-		Assert(head->count > 0);
-		Assert(head->first >= 0);
-		Assert(head->last >= 0);
-		
-		lastDoubleLinks = 
-			SharedListBase_ToDoubleLinks(base, head->last);
-		Assert(lastDoubleLinks->next == -1);
-
-		eleDoubleLinks->prev = lastDoubleLinks->index;
-		head->last = eleDoubleLinks->index;
-		lastDoubleLinks->next = eleDoubleLinks->index;
-	}
-	
-	head->count++;
-}
-
-void*
-SharedDoublyLinkedHead_RemoveFirst(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head)
-{
-	void* firstEle;
-	SharedDoubleLinks	*firstDoubleLinks;
-	
-	Assert(base != NULL);
-	Assert(head != NULL);
-	
-	if (head->first == -1)
-	{
-		Assert(head->count == 0);
-		return NULL;
-	}
-	
-	Assert(head->first >= 0);
-	firstEle = SharedListBase_ToElement(base, head->first);
-	firstDoubleLinks = SharedDoubleLinks_FromElement(base, firstEle);
-	Assert(firstDoubleLinks->index == head->first);
-
-	SharedDoubleLinks_Remove(
-						base,
-						head,
-						firstEle);
-
-	return firstEle;
-}
-
-void
-SharedDoubleLinks_AddBefore(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*atEle,
-	void						*newEle)
-{
-	SharedDoubleLinks	*newDoubleLinks;
-	SharedDoubleLinks	*atDoubleLinks;
-	SharedDoubleLinks	*prevDoubleLinks;
-	
-	Assert(base != NULL);
-	Assert(head != NULL);
-	Assert(head->count > 0);
-	Assert(atEle != NULL);
-	Assert(newEle != NULL);
-	newDoubleLinks = SharedDoubleLinks_FromElement(base, newEle);
-	Assert(newDoubleLinks->prev == -1);
-	Assert(newDoubleLinks->next == -1);
-
-	atDoubleLinks = SharedDoubleLinks_FromElement(base, atEle);
-	if (head->first == atDoubleLinks->index)
-	{
-		SharedDoublyLinkedHead_AddFirst(
-									base,
-									head,
-									newEle);
-		return;
-	}
-
-	prevDoubleLinks = 
-		SharedListBase_ToDoubleLinks(base, atDoubleLinks->prev);
-	
-	prevDoubleLinks->next = atDoubleLinks->prev = newDoubleLinks->index;
-	newDoubleLinks->next = atDoubleLinks->index;
-	newDoubleLinks->prev = prevDoubleLinks->index;
-	head->count++;
-	
-}
-
-//******************************************************************************
-
+#include "miscadmin.h"
+#include "cdb/cdbshareddoublylinked.h"
+
+void
+SharedListBase_Init(
+	SharedListBase		*base,
+	void				*data,
+	int					size,
+	int					offsetToDoubleLinks)
+{
+	base->data = data;
+	base->size = size;
+	base->offsetToDoubleLinks = offsetToDoubleLinks;
+}
+
+void
+SharedDoublyLinkedHead_Init(
+	SharedDoublyLinkedHead	*head)
+{
+	head->count = 0;
+	head->first = -1;
+	head->last = -1;
+}
+
+void
+SharedDoubleLinks_Init(
+	SharedDoubleLinks	*doubleLinks,
+	int					index)
+{
+	doubleLinks->index = index;
+	doubleLinks->prev = -1;
+	doubleLinks->next = -1;
+}
+
+SharedDoubleLinks*
+SharedDoubleLinks_FromElement(	
+	SharedListBase				*base,
+	void						*current)
+{
+	uint8 *uint8Current = (uint8*)current;
+
+	return (SharedDoubleLinks*)(uint8Current + base->offsetToDoubleLinks);
+}
+
+void*
+SharedListBase_ToElement(	
+	SharedListBase		*base,
+	int					index)
+{
+	Assert(base != NULL);
+	Assert(index >= 0);
+	
+	return base->data + (index * base->size);
+}
+
+void*
+SharedDoublyLinkedHead_First(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head)
+{
+	Assert(base != NULL);
+	Assert(head != NULL);
+
+	if (head->first != -1)
+	{
+		void *firstEle;
+		SharedDoubleLinks	*firstDoubleLinks;
+
+		Assert(head->first >= 0);
+		firstEle = SharedListBase_ToElement(base, head->first);
+		firstDoubleLinks = SharedDoubleLinks_FromElement(base, firstEle);
+		Assert(firstDoubleLinks->index == head->first);
+
+		return firstEle;
+	}
+	else
+		return NULL;
+}
+
+SharedDoubleLinks*
+SharedListBase_ToDoubleLinks(	
+	SharedListBase		*base,
+	int					index)
+{
+	SharedDoubleLinks *sharedDoubleLinks;
+	
+	Assert(base != NULL);
+	Assert(index >= 0);
+	
+	sharedDoubleLinks =
+		(SharedDoubleLinks*)
+				(base->data + (index * base->size) + base->offsetToDoubleLinks);
+	Assert(sharedDoubleLinks->index == index);
+
+	return sharedDoubleLinks;
+}
+
+void*
+SharedDoubleLinks_Next(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*currentEle)
+{
+	SharedDoubleLinks	*currentDoubleLinks;
+	
+	Assert(base != NULL);
+	Assert(head != NULL);
+	Assert(currentEle != NULL);
+
+	currentDoubleLinks = SharedDoubleLinks_FromElement(base, currentEle);
+
+	if (currentDoubleLinks->next == -1)
+	{
+		Assert(head->last == currentDoubleLinks->index);
+		return NULL;
+	}
+	else
+	{
+		void *nextEle;
+		SharedDoubleLinks	*nextDoubleLinks;
+		
+		Assert(currentDoubleLinks->next >= 0);
+		nextEle = SharedListBase_ToElement(base, currentDoubleLinks->next);
+		nextDoubleLinks = SharedDoubleLinks_FromElement(base, nextEle);
+		Assert(nextDoubleLinks->index == currentDoubleLinks->next);
+
+		return nextEle;
+	}
+
+}
+
+void
+SharedDoubleLinks_Remove(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*removeEle)
+{
+	SharedDoubleLinks	*removeDoubleLinks;
+	int					index;
+	SharedDoubleLinks	*prevDoubleLinks = NULL;
+	SharedDoubleLinks	*nextDoubleLinks = NULL;
+
+	
+	Assert(base != NULL);
+	Assert(head != NULL);
+	Assert(removeEle != NULL);
+	
+	removeDoubleLinks = SharedDoubleLinks_FromElement(base, removeEle);
+	index = removeDoubleLinks->index;
+
+	if (removeDoubleLinks->prev == -1 &&
+		removeDoubleLinks->next == -1)
+	{
+		/*
+		 * Removing the only one.
+		 */
+		Assert(head->first == index);
+		Assert(head->last == index);
+		Assert(head->count == 1);
+		head->first = -1;
+		head->last = -1;
+	}
+	else if (removeDoubleLinks->prev == -1)
+	{
+		/*
+		 * Removing the first element.
+		 */
+		Assert(head->first == index);
+		
+		nextDoubleLinks = 
+			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->next);
+		Assert(nextDoubleLinks->prev == index);
+		nextDoubleLinks->prev = -1;
+		
+		head->first = nextDoubleLinks->index;
+	}
+	else if (removeDoubleLinks->next == -1)
+	{
+		Assert(head->last == index);
+		
+		/*
+		 * Removing the last element.
+		 */
+		prevDoubleLinks = 
+			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->prev);
+		Assert(prevDoubleLinks->next == index);
+		prevDoubleLinks->next = -1;
+		
+		head->last = prevDoubleLinks->index;
+	}
+	else
+	{
+		/*
+		 * Removing a middle element.
+		 */
+		nextDoubleLinks = 
+			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->next);
+		Assert(nextDoubleLinks->prev == index);
+		nextDoubleLinks->prev = removeDoubleLinks->prev;
+
+		prevDoubleLinks = 
+			SharedListBase_ToDoubleLinks(base, removeDoubleLinks->prev);
+		Assert(prevDoubleLinks->next == index);
+		prevDoubleLinks->next = removeDoubleLinks->next;
+	}
+
+	Assert(head->count >= 1);
+	head->count--;
+	
+	removeDoubleLinks->prev = -1;
+	removeDoubleLinks->next = -1;
+}
+
+void
+SharedDoublyLinkedHead_AddFirst(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*ele)
+{
+	SharedDoubleLinks	*eleDoubleLinks;
+	
+	Assert(base != NULL);
+	Assert(head != NULL);
+	Assert(ele != NULL);
+	eleDoubleLinks = SharedDoubleLinks_FromElement(base, ele);
+	Assert(eleDoubleLinks->prev == -1);
+	Assert(eleDoubleLinks->next == -1);
+
+	if (head->first == -1 && head->last == -1)
+	{
+		Assert(head->count == 0);
+		head->first = eleDoubleLinks->index;
+		head->last = eleDoubleLinks->index;
+	}
+	else
+	{
+		SharedDoubleLinks	*firstDoubleLinks;
+		
+		Assert(head->count > 0);
+		firstDoubleLinks = 
+			SharedListBase_ToDoubleLinks(base, head->first);
+		Assert(firstDoubleLinks->prev == -1);
+
+		eleDoubleLinks->next = head->first;
+		head->first = eleDoubleLinks->index;
+		firstDoubleLinks->prev = eleDoubleLinks->index;
+	}
+	
+	head->count++;
+}
+
+void
+SharedDoublyLinkedHead_AddLast(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*ele)
+{
+	SharedDoubleLinks	*eleDoubleLinks;
+	
+	Assert(base != NULL);
+	Assert(head != NULL);
+	Assert(ele != NULL);
+	eleDoubleLinks = SharedDoubleLinks_FromElement(base, ele);
+	Assert(eleDoubleLinks->prev == -1);
+	Assert(eleDoubleLinks->next == -1);
+
+	if (head->first == -1 && head->last == -1)
+	{
+		Assert(head->count == 0);
+		head->first = eleDoubleLinks->index;
+		head->last = eleDoubleLinks->index;
+	}
+	else
+	{
+		SharedDoubleLinks	*lastDoubleLinks;
+		
+		Assert(head->count > 0);
+		Assert(head->first >= 0);
+		Assert(head->last >= 0);
+		
+		lastDoubleLinks = 
+			SharedListBase_ToDoubleLinks(base, head->last);
+		Assert(lastDoubleLinks->next == -1);
+
+		eleDoubleLinks->prev = lastDoubleLinks->index;
+		head->last = eleDoubleLinks->index;
+		lastDoubleLinks->next = eleDoubleLinks->index;
+	}
+	
+	head->count++;
+}
+
+void*
+SharedDoublyLinkedHead_RemoveFirst(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head)
+{
+	void* firstEle;
+	SharedDoubleLinks	*firstDoubleLinks;
+	
+	Assert(base != NULL);
+	Assert(head != NULL);
+	
+	if (head->first == -1)
+	{
+		Assert(head->count == 0);
+		return NULL;
+	}
+	
+	Assert(head->first >= 0);
+	firstEle = SharedListBase_ToElement(base, head->first);
+	firstDoubleLinks = SharedDoubleLinks_FromElement(base, firstEle);
+	Assert(firstDoubleLinks->index == head->first);
+
+	SharedDoubleLinks_Remove(
+						base,
+						head,
+						firstEle);
+
+	return firstEle;
+}
+
+void
+SharedDoubleLinks_AddBefore(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*atEle,
+	void						*newEle)
+{
+	SharedDoubleLinks	*newDoubleLinks;
+	SharedDoubleLinks	*atDoubleLinks;
+	SharedDoubleLinks	*prevDoubleLinks;
+	
+	Assert(base != NULL);
+	Assert(head != NULL);
+	Assert(head->count > 0);
+	Assert(atEle != NULL);
+	Assert(newEle != NULL);
+	newDoubleLinks = SharedDoubleLinks_FromElement(base, newEle);
+	Assert(newDoubleLinks->prev == -1);
+	Assert(newDoubleLinks->next == -1);
+
+	atDoubleLinks = SharedDoubleLinks_FromElement(base, atEle);
+	if (head->first == atDoubleLinks->index)
+	{
+		SharedDoublyLinkedHead_AddFirst(
+									base,
+									head,
+									newEle);
+		return;
+	}
+
+	prevDoubleLinks = 
+		SharedListBase_ToDoubleLinks(base, atDoubleLinks->prev);
+	
+	prevDoubleLinks->next = atDoubleLinks->prev = newDoubleLinks->index;
+	newDoubleLinks->next = atDoubleLinks->index;
+	newDoubleLinks->prev = prevDoubleLinks->index;
+	head->count++;
+	
+}
+
+//******************************************************************************
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbsharedoidsearch.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbsharedoidsearch.c b/src/backend/cdb/cdbsharedoidsearch.c
old mode 100755
new mode 100644
index e642177..ad5cb44
--- a/src/backend/cdb/cdbsharedoidsearch.c
+++ b/src/backend/cdb/cdbsharedoidsearch.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsharedoidsearch.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbsharedstorageop.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbsharedstorageop.c b/src/backend/cdb/cdbsharedstorageop.c
index 0f4c0f0..347b772 100644
--- a/src/backend/cdb/cdbsharedstorageop.c
+++ b/src/backend/cdb/cdbsharedstorageop.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsharedstorageop.c
  *
- * Copyright (c) 2009-2013, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbsreh.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbsreh.c b/src/backend/cdb/cdbsreh.c
index 818f934..4e08967 100644
--- a/src/backend/cdb/cdbsreh.c
+++ b/src/backend/cdb/cdbsreh.c
@@ -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.
+ */
+
 /*--------------------------------------------------------------------------
 *
 * cdbsreh.c
 *	  Provides routines for single row error handling for COPY and external
 *	  tables.
 *
-* Copyright (c) 2007-2008, Greenplum inc
-*
 *--------------------------------------------------------------------------
 */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbsrlz.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbsrlz.c b/src/backend/cdb/cdbsrlz.c
index bb72e6d..c6f2da0 100644
--- a/src/backend/cdb/cdbsrlz.c
+++ b/src/backend/cdb/cdbsrlz.c
@@ -1,12 +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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsrlz.c
  *	  Serialize a PostgreSQL sequential plan tree.
  *
- * Copyright (c) 2004-2008, Greenplum inc
- *
- * NOTES
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbsubplan.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbsubplan.c b/src/backend/cdb/cdbsubplan.c
index d1cd722..66a4d55 100644
--- a/src/backend/cdb/cdbsubplan.c
+++ b/src/backend/cdb/cdbsubplan.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsubplan.c
  *	  Provides routines for preprocessing initPlan subplans
  *		and executing queries with initPlans
  *
- * Copyright (c) 2003-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbsubselect.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbsubselect.c b/src/backend/cdb/cdbsubselect.c
index 5eb4426..88ccd17 100644
--- a/src/backend/cdb/cdbsubselect.c
+++ b/src/backend/cdb/cdbsubselect.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsubselect.c
  *	  Flattens subqueries, transforms them to joins.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbtargeteddispatch.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbtargeteddispatch.c b/src/backend/cdb/cdbtargeteddispatch.c
index 728e3fc..720008d 100644
--- a/src/backend/cdb/cdbtargeteddispatch.c
+++ b/src/backend/cdb/cdbtargeteddispatch.c
@@ -1,7 +1,20 @@
-/*-------------------------------------------------------------------------
- *
- * Copyright (c) 2009, Greenplum inc
- *-------------------------------------------------------------------------
+/*
+ * 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.
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbthreadwork.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbthreadwork.c b/src/backend/cdb/cdbthreadwork.c
index 4adfce0..8bb0f01 100644
--- a/src/backend/cdb/cdbthreadwork.c
+++ b/src/backend/cdb/cdbthreadwork.c
@@ -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.c
@@ -5,8 +24,6 @@
  *
  * (See .h file for usage comments)
  *
- * Copyright (c) 2007, greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbtimer.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbtimer.c b/src/backend/cdb/cdbtimer.c
index b92d846..96c7182 100644
--- a/src/backend/cdb/cdbtimer.c
+++ b/src/backend/cdb/cdbtimer.c
@@ -1,12 +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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbtimer.c
  *	  Functions to manipulate timers used in a backend.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
- * $Id$
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbtm.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbtm.c b/src/backend/cdb/cdbtm.c
old mode 100755
new mode 100644
index 9120560..a9985a6
--- a/src/backend/cdb/cdbtm.c
+++ b/src/backend/cdb/cdbtm.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbtm.c
  *	  Provides routines for performing distributed transaction
  *
- * Copyright (c) 2005-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbtmpdir.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbtmpdir.c b/src/backend/cdb/cdbtmpdir.c
index c73f8d5..34924db 100644
--- a/src/backend/cdb/cdbtmpdir.c
+++ b/src/backend/cdb/cdbtmpdir.c
@@ -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.
+ */
+
 #include "cdb/cdbtmpdir.h"
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbutil.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbutil.c b/src/backend/cdb/cdbutil.c
index 4aaad63..0391881 100644
--- a/src/backend/cdb/cdbutil.c
+++ b/src/backend/cdb/cdbutil.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbutil.c
  *	  Internal utility support functions for Greenplum Database/PostgreSQL.
  *
- * Copyright (c) 2005-2011, Greenplum inc
- *
  * NOTES
  *
  *	- According to src/backend/executor/execHeapScan.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbvarblock.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbvarblock.c b/src/backend/cdb/cdbvarblock.c
index 6df8653..aabaac1 100644
--- a/src/backend/cdb/cdbvarblock.c
+++ b/src/backend/cdb/cdbvarblock.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbvarblock.c
@@ -5,9 +24,6 @@
  *    efficiently indexed once complete.
  *
  * (See .h file for usage comments)
- *
- * Copyright (c) 2007-2009, greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbvars.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbvars.c b/src/backend/cdb/cdbvars.c
index 15b6254..d93bf32 100644
--- a/src/backend/cdb/cdbvars.c
+++ b/src/backend/cdb/cdbvars.c
@@ -1,12 +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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbvars.c
  *	  Provides storage areas and processing routines for Greenplum Database variables
  *	  managed by GUC.
  *
- * Copyright (c) 2003-2010, Greenplum inc
- *
- *
  * NOTES
  *	  See src/backend/utils/misc/guc.c for variable external specification.
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/dispatcher.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/dispatcher.c b/src/backend/cdb/dispatcher.c
index e219e21..dedd0a8 100644
--- a/src/backend/cdb/dispatcher.c
+++ b/src/backend/cdb/dispatcher.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * dispatcher.c



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpath.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpath.h b/src/include/cdb/cdbpath.h
index eeeb63a..e164f18 100644
--- a/src/include/cdb/cdbpath.h
+++ b/src/include/cdb/cdbpath.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpath.h
  *
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBPATH_H

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpathtoplan.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpathtoplan.h b/src/include/cdb/cdbpathtoplan.h
index 5d68897..4b1c3e5 100644
--- a/src/include/cdb/cdbpathtoplan.h
+++ b/src/include/cdb/cdbpathtoplan.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpathtoplan.h
  *
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpersistentrecovery.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpersistentrecovery.h b/src/include/cdb/cdbpersistentrecovery.h
old mode 100755
new mode 100644
index 804d6dd..088d30c
--- a/src/include/cdb/cdbpersistentrecovery.h
+++ b/src/include/cdb/cdbpersistentrecovery.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * persistentrecovery.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpersistentrelation.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpersistentrelation.h b/src/include/cdb/cdbpersistentrelation.h
index d79d814..292aaba 100644
--- a/src/include/cdb/cdbpersistentrelation.h
+++ b/src/include/cdb/cdbpersistentrelation.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistentrelation.h
  *
- * Copyright (c) 2013-2014, Pivotal Software Inc.
  *
  *-------------------------------------------------------------------------
  */

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpersistentstore.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpersistentstore.h b/src/include/cdb/cdbpersistentstore.h
old mode 100755
new mode 100644
index 6980e70..649bd4f
--- a/src/include/cdb/cdbpersistentstore.h
+++ b/src/include/cdb/cdbpersistentstore.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpersistentstore.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CDBPERSISTENTSTORE_H

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbplan.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbplan.h b/src/include/cdb/cdbplan.h
index 40a9aef..5aa34e9 100644
--- a/src/include/cdb/cdbplan.h
+++ b/src/include/cdb/cdbplan.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbplan.h
  *	  definitions for cdbplan.c utilities
  *
- * Copyright (c) 2004-2008, Greenplum inc
  *
  *
  * NOTES

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbptrbuf.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbptrbuf.h b/src/include/cdb/cdbptrbuf.h
index 68ef020..3a3f2fb 100644
--- a/src/include/cdb/cdbptrbuf.h
+++ b/src/include/cdb/cdbptrbuf.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbptrbuf.h
  *    a container for pointers, layered on CdbPtrBuf
  *
- * Copyright (c) 2007-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpublic.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpublic.h b/src/include/cdb/cdbpublic.h
index f33cb7d..dabcc2a 100644
--- a/src/include/cdb/cdbpublic.h
+++ b/src/include/cdb/cdbpublic.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpublic.c
@@ -8,7 +27,6 @@
  *      This is a non-ideal solution, consider alternatives before
  *      adding to this file.
  *
- * Copyright (c) 2008-2008, Greenplum inc.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbpullup.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbpullup.h b/src/include/cdb/cdbpullup.h
index 591bfe3..decad5b 100644
--- a/src/include/cdb/cdbpullup.h
+++ b/src/include/cdb/cdbpullup.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbpullup.h
  *    definitions for cdbpullup.c utilities
  *
- * Copyright (c)2006-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbquerycontextdispatching.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbquerycontextdispatching.h b/src/include/cdb/cdbquerycontextdispatching.h
index f89a675..0760925 100644
--- a/src/include/cdb/cdbquerycontextdispatching.h
+++ b/src/include/cdb/cdbquerycontextdispatching.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbquerycontextdispatching.h
@@ -15,7 +34,6 @@
  *     and current dispatcher cannot do broadcast work effectively.
  *     Writing into shared storage is a kind of broadcasting.
  *
- * Copyright (c) 2007-2013, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbrelsize.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbrelsize.h b/src/include/cdb/cdbrelsize.h
index 032415a..85807b8 100644
--- a/src/include/cdb/cdbrelsize.h
+++ b/src/include/cdb/cdbrelsize.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbrelsize.h
  *
  * Get the max size of the relation across the segDBs
  *
- * Copyright (c) 2006-2008, Greenplum inc
  *
  *
  *-------------------------------------------------------------------------

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbselect.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbselect.h b/src/include/cdb/cdbselect.h
index 705273b..a7facc2 100644
--- a/src/include/cdb/cdbselect.h
+++ b/src/include/cdb/cdbselect.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbselect.h
@@ -6,7 +25,6 @@
  *  1024 file descriptors (as far as I can tell all of our platforms
  *  support 65536).
  *
- * Copyright (c) 2006-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbsetop.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbsetop.h b/src/include/cdb/cdbsetop.h
index 4ce79dd..515081f 100644
--- a/src/include/cdb/cdbsetop.h
+++ b/src/include/cdb/cdbsetop.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  *  cdbsetop.h
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbshareddoublylinked.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbshareddoublylinked.h b/src/include/cdb/cdbshareddoublylinked.h
index 751b25e..d432657 100644
--- a/src/include/cdb/cdbshareddoublylinked.h
+++ b/src/include/cdb/cdbshareddoublylinked.h
@@ -1,98 +1,116 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
- *
- * cdbshareddoublylinked.h
- *
- * Copyright (c) 2007-2008, Greenplum inc
  *
- *-------------------------------------------------------------------------
- */
- 
-#ifndef CDBSHAREDDOUBLYLINKED_H
-#define CDBSHAREDDOUBLYLINKED_H
-
-typedef struct SharedDoublyLinkedHead
-{
-	int		count;
-	int		first;
-	int		last;
-	
-} SharedDoublyLinkedHead;
-
-typedef struct SharedDoubleLinks
-{
-	int		index;
-	int		next;
-	int		prev;
-	
-} SharedDoubleLinks;
-
-typedef struct SharedListBase
-{
-	uint8		*data;
-	int			size;
-	int			offsetToDoubleLinks;
-	
-} SharedListBase;
-
-extern void SharedListBase_Init(
-	SharedListBase		*base,
-	void				*data,
-	int					size,
-	int					offsetToDoubleLinks);
-
-extern void SharedDoublyLinkedHead_Init(
-	SharedDoublyLinkedHead	*head);
-
-extern void SharedDoubleLinks_Init(
-	SharedDoubleLinks	*doubleLinks,
-	int					index);
-
-extern SharedDoubleLinks* SharedDoubleLinks_FromElement(	
-	SharedListBase				*base,
-	void						*current);
-
-extern void* SharedListBase_ToElement(	
-	SharedListBase		*base,
-	int					index);
-
-extern void* SharedDoublyLinkedHead_First(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head);
-
-extern SharedDoubleLinks* SharedListBase_ToDoubleLinks(	
-	SharedListBase		*base,
-	int					index);
-
-extern void* SharedDoubleLinks_Next(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*currentEle);
-
-extern void SharedDoubleLinks_Remove(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*removeEle);
-
-extern void SharedDoublyLinkedHead_AddFirst(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*ele);
-
-extern void SharedDoublyLinkedHead_AddLast(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*ele);
-
-extern void* SharedDoublyLinkedHead_RemoveFirst(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head);
-
-extern void SharedDoubleLinks_AddBefore(
-	SharedListBase				*base,
-	SharedDoublyLinkedHead		*head,
-	void						*atEle,
-	void						*newEle);
-
-
-#endif   /* CDBSHAREDDOUBLYLINKED_H */
-
+ * cdbshareddoublylinked.h
+ *
+ *
+ *-------------------------------------------------------------------------
+ */
+ 
+#ifndef CDBSHAREDDOUBLYLINKED_H
+#define CDBSHAREDDOUBLYLINKED_H
+
+typedef struct SharedDoublyLinkedHead
+{
+	int		count;
+	int		first;
+	int		last;
+	
+} SharedDoublyLinkedHead;
+
+typedef struct SharedDoubleLinks
+{
+	int		index;
+	int		next;
+	int		prev;
+	
+} SharedDoubleLinks;
+
+typedef struct SharedListBase
+{
+	uint8		*data;
+	int			size;
+	int			offsetToDoubleLinks;
+	
+} SharedListBase;
+
+extern void SharedListBase_Init(
+	SharedListBase		*base,
+	void				*data,
+	int					size,
+	int					offsetToDoubleLinks);
+
+extern void SharedDoublyLinkedHead_Init(
+	SharedDoublyLinkedHead	*head);
+
+extern void SharedDoubleLinks_Init(
+	SharedDoubleLinks	*doubleLinks,
+	int					index);
+
+extern SharedDoubleLinks* SharedDoubleLinks_FromElement(	
+	SharedListBase				*base,
+	void						*current);
+
+extern void* SharedListBase_ToElement(	
+	SharedListBase		*base,
+	int					index);
+
+extern void* SharedDoublyLinkedHead_First(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head);
+
+extern SharedDoubleLinks* SharedListBase_ToDoubleLinks(	
+	SharedListBase		*base,
+	int					index);
+
+extern void* SharedDoubleLinks_Next(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*currentEle);
+
+extern void SharedDoubleLinks_Remove(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*removeEle);
+
+extern void SharedDoublyLinkedHead_AddFirst(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*ele);
+
+extern void SharedDoublyLinkedHead_AddLast(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*ele);
+
+extern void* SharedDoublyLinkedHead_RemoveFirst(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head);
+
+extern void SharedDoubleLinks_AddBefore(
+	SharedListBase				*base,
+	SharedDoublyLinkedHead		*head,
+	void						*atEle,
+	void						*newEle);
+
+
+#endif   /* CDBSHAREDDOUBLYLINKED_H */
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbsharedoidsearch.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbsharedoidsearch.h b/src/include/cdb/cdbsharedoidsearch.h
old mode 100755
new mode 100644
index 69bfd8a..099ada3
--- a/src/include/cdb/cdbsharedoidsearch.h
+++ b/src/include/cdb/cdbsharedoidsearch.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsharedoidsearch.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbsharedstorageop.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbsharedstorageop.h b/src/include/cdb/cdbsharedstorageop.h
index bd37810..7a3d12b 100644
--- a/src/include/cdb/cdbsharedstorageop.h
+++ b/src/include/cdb/cdbsharedstorageop.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsharedstorageop.h
  *
- * Copyright (c) 2009-2013, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbsreh.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbsreh.h b/src/include/cdb/cdbsreh.h
index 9689fef..dfe5e2d 100644
--- a/src/include/cdb/cdbsreh.h
+++ b/src/include/cdb/cdbsreh.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.
+ */
+
 /*-------------------------------------------------------------------------
 *
 * cdbsreh.h
 *	  routines for single row error handling
 *
-* Copyright (c) 2007-2008, Greenplum inc
 *
 *-------------------------------------------------------------------------
 */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbsrlz.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbsrlz.h b/src/include/cdb/cdbsrlz.h
index 37dbeb0..e51dd14 100644
--- a/src/include/cdb/cdbsrlz.h
+++ b/src/include/cdb/cdbsrlz.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsrlz.h
  *	  definitions for paln serialization utilities
  *
- * Copyright (c) 2004-2008, Greenplum inc
  *
  * NOTES
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbsubplan.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbsubplan.h b/src/include/cdb/cdbsubplan.h
index 03c1f20..8e73b82 100644
--- a/src/include/cdb/cdbsubplan.h
+++ b/src/include/cdb/cdbsubplan.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsubplan.h
  * routines for preprocessing initPlan subplans
  *		and executing queries with initPlans *
- * Copyright (c) 2003-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbsubselect.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbsubselect.h b/src/include/cdb/cdbsubselect.h
index 82adf17..022c2c9 100644
--- a/src/include/cdb/cdbsubselect.h
+++ b/src/include/cdb/cdbsubselect.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbsubselect.c
  *	  Flattens subqueries, transforms them to joins.
  *
- * Copyright (c) 2007-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbtargeteddispatch.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbtargeteddispatch.h b/src/include/cdb/cdbtargeteddispatch.h
index 56222f2..f76384a 100644
--- a/src/include/cdb/cdbtargeteddispatch.h
+++ b/src/include/cdb/cdbtargeteddispatch.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * The targeted dispatch code will use query information to assign content ids
@@ -10,7 +29,6 @@
  *
  * See MPP-6939 for more information.
  *
- * Copyright (c) 2009, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbthreadwork.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbthreadwork.h b/src/include/cdb/cdbthreadwork.h
index cce9b43..a7a8ff0 100644
--- a/src/include/cdb/cdbthreadwork.h
+++ b/src/include/cdb/cdbthreadwork.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbthreadwork.h
  *	  Manages a work thread.
  *
- * Copyright (c) 2007, greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbtimer.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbtimer.h b/src/include/cdb/cdbtimer.h
index 48fee0d..9e72d34 100644
--- a/src/include/cdb/cdbtimer.h
+++ b/src/include/cdb/cdbtimer.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbtimer.h
  *	  Functions to manipulate timers used in a backend.
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  * $Id$
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbtmpdir.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbtmpdir.h b/src/include/cdb/cdbtmpdir.h
index b5dc026..62d3046 100644
--- a/src/include/cdb/cdbtmpdir.h
+++ b/src/include/cdb/cdbtmpdir.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 CDBTMPDIR_H
 #define CDBTMPDIR_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbutil.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbutil.h b/src/include/cdb/cdbutil.h
index 9aea6bc..23b4acc 100644
--- a/src/include/cdb/cdbutil.h
+++ b/src/include/cdb/cdbutil.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbutil.h
  *	  Header file for routines in cdbutil.c and results returned by
  *	  those routines.
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbvarblock.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbvarblock.h b/src/include/cdb/cdbvarblock.h
index 1ee10de..bfd64bb 100644
--- a/src/include/cdb/cdbvarblock.h
+++ b/src/include/cdb/cdbvarblock.h
@@ -1,3 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * cdbvarblock.h
@@ -8,7 +26,7 @@
  *
  *  Alignment:
  *      The first item will be aligned on an eight-byte (64 bit) boundary.
- *      If all items are a multiple or 8, 4, 2 in length � then they will
+ *      If all items are a multiple or 8, 4, 2 in length n then they will
  *      be aligned on those multiples.  If the items are any length, then
  *      the alignment is 1 byte.
  *
@@ -78,7 +96,6 @@
  *		    }
  *       }
  *        
- * Copyright (c) 2007, greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/cdbvars.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbvars.h b/src/include/cdb/cdbvars.h
index e7c0a87..ed941d7 100644
--- a/src/include/cdb/cdbvars.h
+++ b/src/include/cdb/cdbvars.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbvars.h
  *	  definitions for Greenplum-specific global variables
  *
- * Copyright (c) 2003-2010, Greenplum inc
  *
  * NOTES
  *	  See src/backend/utils/misc/guc.c for variable external specification.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/dispatcher.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/dispatcher.h b/src/include/cdb/dispatcher.h
index 6fbbc49..099f592 100644
--- a/src/include/cdb/dispatcher.h
+++ b/src/include/cdb/dispatcher.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 DISPATCHER_H
 #define DISPATCHER_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/dispatcher_mgt.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/dispatcher_mgt.h b/src/include/cdb/dispatcher_mgt.h
index d579bc9..a67db13 100644
--- a/src/include/cdb/dispatcher_mgt.h
+++ b/src/include/cdb/dispatcher_mgt.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 DISPATCHER_MGT_H
 #define DISPATCHER_MGT_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/executormgr.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/executormgr.h b/src/include/cdb/executormgr.h
index 0805c05..e7fe9a0 100644
--- a/src/include/cdb/executormgr.h
+++ b/src/include/cdb/executormgr.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * executormgr.h
  *
- * Copyright (c) 2014-2014, Pivotal inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/htupfifo.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/htupfifo.h b/src/include/cdb/htupfifo.h
index d4f7fdd..6a768f9 100644
--- a/src/include/cdb/htupfifo.h
+++ b/src/include/cdb/htupfifo.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * htupfifo.h
@@ -9,7 +28,6 @@
  *	   would mean we would possibly need to make copies of tuples when they
  *	   are added and/or when they are retrieved.
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/memquota.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/memquota.h b/src/include/cdb/memquota.h
index 1fdc3e8..4ccca95 100644
--- a/src/include/cdb/memquota.h
+++ b/src/include/cdb/memquota.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * memquota.h
  * Routines related to memory quota for queries.
  *
- * Copyright (c) 2005-2010, Greenplum inc
  *-------------------------------------------------------------------------*/
 #ifndef MEMQUOTA_H_
 #define MEMQUOTA_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/ml_ipc.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/ml_ipc.h b/src/include/cdb/ml_ipc.h
index 6a41691..2b37c4f 100644
--- a/src/include/cdb/ml_ipc.h
+++ b/src/include/cdb/ml_ipc.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.
+ */
+
 /*-------------------------------------------------------------------------
 * ml_ipc.h
 *	Motion Layer IPC Layer.
 *
-* Copyright (c) 2005-2008, Greenplum inc
 *-------------------------------------------------------------------------
 */
 #ifndef ML_IPC_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/partitionselection.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/partitionselection.h b/src/include/cdb/partitionselection.h
index 3dd69f0..de505b2 100644
--- a/src/include/cdb/partitionselection.h
+++ b/src/include/cdb/partitionselection.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.
+ */
+
 /*--------------------------------------------------------------------------
  *
  * partitionselection.h
  *	 Definitions and API functions for partitionselection.c
  *
- * Copyright (c) Pivotal Inc.
  *
  *--------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/poolmgr.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/poolmgr.h b/src/include/cdb/poolmgr.h
index 0a0f967..2821dd9 100644
--- a/src/include/cdb/poolmgr.h
+++ b/src/include/cdb/poolmgr.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 POOLMGR_H
 #define POOLMGR_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/tupchunk.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/tupchunk.h b/src/include/cdb/tupchunk.h
index c067183..9bff25f 100644
--- a/src/include/cdb/tupchunk.h
+++ b/src/include/cdb/tupchunk.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.
+ */
+
 /*-------------------------------------------------------------------------
  * tupchunk.h
  *	   The data-structures and functions for dealing with tuple chunks.
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *-------------------------------------------------------------------------
  */
 #ifndef TUPCHUNK_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/tupchunklist.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/tupchunklist.h b/src/include/cdb/tupchunklist.h
index 9833551..2c55b66 100644
--- a/src/include/cdb/tupchunklist.h
+++ b/src/include/cdb/tupchunklist.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.
+ */
+
 /*-------------------------------------------------------------------------
  * tupchunklist.h
  *	   The data-structures and functions for dealing with tuple chunk lists.
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *-------------------------------------------------------------------------
  */
 #ifndef TUPCHUNKLIST_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/tupser.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/tupser.h b/src/include/cdb/tupser.h
index da3cf49..ca73342 100644
--- a/src/include/cdb/tupser.h
+++ b/src/include/cdb/tupser.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.
+ */
+
 /*-------------------------------------------------------------------------
  * tupser.h
  *	   Functions for serializing and deserializing heap tuples.
  *
- * Copyright (c) 2005-2008, Greenplum inc
  *-------------------------------------------------------------------------
  */
 #ifndef TUPSER_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/cdb/workermgr.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/workermgr.h b/src/include/cdb/workermgr.h
index 6805bd5..e26266d 100644
--- a/src/include/cdb/workermgr.h
+++ b/src/include/cdb/workermgr.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * workermgr.h
  *
- * Copyright (c) 2014-2014, Pivotal inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/execDML.h
----------------------------------------------------------------------
diff --git a/src/include/executor/execDML.h b/src/include/executor/execDML.h
index fb4f82e..f1f45c8 100644
--- a/src/include/executor/execDML.h
+++ b/src/include/executor/execDML.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * execDML.h
  *	  Prototypes for execDML.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/execDynamicScan.h
----------------------------------------------------------------------
diff --git a/src/include/executor/execDynamicScan.h b/src/include/executor/execDynamicScan.h
index 3d21199..7190e1a 100644
--- a/src/include/executor/execDynamicScan.h
+++ b/src/include/executor/execDynamicScan.h
@@ -1,10 +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.
+ */
 /*--------------------------------------------------------------------------
  *
  * execDynamicScan.h
  *	 Definitions and API functions for execDynamicScan.c
  *
- * Copyright (c) 2014, Pivotal, Inc.
- *
  *--------------------------------------------------------------------------
  */
 #ifndef EXECDYNAMICSCAN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/execIndexscan.h
----------------------------------------------------------------------
diff --git a/src/include/executor/execIndexscan.h b/src/include/executor/execIndexscan.h
index 24ddf55..fdc098a 100644
--- a/src/include/executor/execIndexscan.h
+++ b/src/include/executor/execIndexscan.h
@@ -1,7 +1,23 @@
 /*
- * execIndexScan.h
+ * 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
  *
- * Copyright (c) 2013 - present, EMC/Greenplum
+ * 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.
+ */
+/*
+ * execIndexScan.h
  */
 #ifndef EXECINDEXSCAN_H
 #define EXECINDEXSCAN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/execWorkfile.h
----------------------------------------------------------------------
diff --git a/src/include/executor/execWorkfile.h b/src/include/executor/execWorkfile.h
index e9d8e1f..9677b58 100644
--- a/src/include/executor/execWorkfile.h
+++ b/src/include/executor/execWorkfile.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * execworkfile.h
  *    prototypes for execworkfiles.c
  *
- * Copyright (c) 2010, Greenplum Inc.
- *
  *-------------------------------------------------------------------------
  */
 #ifndef EXECWORKFILE_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeAssertOp.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeAssertOp.h b/src/include/executor/nodeAssertOp.h
index afdeb91..6cbcb3d 100644
--- a/src/include/executor/nodeAssertOp.h
+++ b/src/include/executor/nodeAssertOp.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeAssertOp.h
  *	  Prototypes for nodeAssertOp.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeDML.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeDML.h b/src/include/executor/nodeDML.h
index 4454e78..e6811a2 100644
--- a/src/include/executor/nodeDML.h
+++ b/src/include/executor/nodeDML.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeDML.h
  *	  Prototypes for nodeDML.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeDynamicIndexscan.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeDynamicIndexscan.h b/src/include/executor/nodeDynamicIndexscan.h
index 5ff63c6..2188c53 100644
--- a/src/include/executor/nodeDynamicIndexscan.h
+++ b/src/include/executor/nodeDynamicIndexscan.h
@@ -1,7 +1,23 @@
 /*
- * nodeDynamicIndexScan.h
+ * 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
  *
- * Copyright (c) 2013 - present, EMC/Greenplum
+ * 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.
+ */
+/*
+ * nodeDynamicIndexScan.h
  */
 #ifndef NODEDYNAMICINDEXSCAN_H
 #define NODEDYNAMICINDEXSCAN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeDynamicTableScan.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeDynamicTableScan.h b/src/include/executor/nodeDynamicTableScan.h
index e2f6d2d..e5569f4 100644
--- a/src/include/executor/nodeDynamicTableScan.h
+++ b/src/include/executor/nodeDynamicTableScan.h
@@ -1,7 +1,24 @@
 /*
+ * 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.
+ */
+/*
  * nodeDynamicTableScan.h
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
  */
 #ifndef NODEDYNAMICTABLESCAN_H
 #define NODEDYNAMICTABLESCAN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeExternalscan.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeExternalscan.h b/src/include/executor/nodeExternalscan.h
index 82d2ddc..16e1035 100644
--- a/src/include/executor/nodeExternalscan.h
+++ b/src/include/executor/nodeExternalscan.h
@@ -1,9 +1,25 @@
+/*
+ * 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.
+ */
 /*-------------------------------------------------------------------------
 *
 * nodeExternalscan.h
 *
-* Copyright (c) 2007-2008, Greenplum inc
-*
 *-------------------------------------------------------------------------
 */
 #ifndef NODEEXTERNALSCAN_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeParquetScan.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeParquetScan.h b/src/include/executor/nodeParquetScan.h
index 186c18c..a6ae6c7 100644
--- a/src/include/executor/nodeParquetScan.h
+++ b/src/include/executor/nodeParquetScan.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.
+ */
+/*
  * nodeParquetScan.h
  *
  *  Created on: Jul 4, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodePartitionSelector.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodePartitionSelector.h b/src/include/executor/nodePartitionSelector.h
index e6626e2..b30b0de 100644
--- a/src/include/executor/nodePartitionSelector.h
+++ b/src/include/executor/nodePartitionSelector.h
@@ -1,3 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodePartitionSelector.h
@@ -5,8 +23,6 @@
  *	  Oids based on a given set of predicates. It works for both constant
  *	  partition elimination and join partition elimination
  *
- * Copyright (c) 2014, Pivotal Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/executor/nodeRepeat.h
----------------------------------------------------------------------
diff --git a/src/include/executor/nodeRepeat.h b/src/include/executor/nodeRepeat.h
index d6fd137..113b3b6 100644
--- a/src/include/executor/nodeRepeat.h
+++ b/src/include/executor/nodeRepeat.h
@@ -1,16 +1,24 @@
-/*-------------------------------------------------------------------------
- *
- * nodeRepeat.h
+/*
+ * 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
  *
- * Copyright (c) 2008 - present, Greenplum Inc.
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * IDENTIFICATION:
- *     $Id$
+ * 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.
+ */
+/*-------------------------------------------------------------------------
  *
- * $File$
- * $Change$
- * $Author$
- * $DateTime$
+ * nodeRepeat.h
  *-------------------------------------------------------------------------
  */
 



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_QE2RM.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_QE2RM.h b/src/backend/resourcemanager/include/communication/rmcomm_QE2RM.h
index e69de29..a0fcb3c 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_QE2RM.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_QE2RM.h
@@ -0,0 +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.
+ */
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_QE2RMSEG.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_QE2RMSEG.h b/src/backend/resourcemanager/include/communication/rmcomm_QE2RMSEG.h
index e4cda3c..71b60a7 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_QE2RMSEG.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_QE2RMSEG.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.
+ */
+
 #include "postgres.h"
 #include "resourcemanager/communication/rmcomm_SyncComm.h"
 #include "resourcemanager/communication/rmcomm_MessageHandler.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_QE_RMSEG_Protocol.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_QE_RMSEG_Protocol.h b/src/backend/resourcemanager/include/communication/rmcomm_QE_RMSEG_Protocol.h
index 9856a4e..85333ea 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_QE_RMSEG_Protocol.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_QE_RMSEG_Protocol.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_QE_RMSEG_PROTOCOL_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_QE_RMSEG_PROTOCOL_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM.h b/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM.h
index 8913fd6..2df145b 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM.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 HAWQ_RESOURCE_MANAGER_COMMUNICATION_TO_GLOBAL_RESOURCE_MANAGER_H
 #define HAWQ_RESOURCE_MANAGER_COMMUNICATION_TO_GLOBAL_RESOURCE_MANAGER_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_libyarn.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_libyarn.h b/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_libyarn.h
index 4a110b2..8a456dc 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_libyarn.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_libyarn.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 HAWQ_RESOURCE_MANAGER_COMMUNICATION_TO_GLOBAL_RESOURCE_MANAGER_LIBYARN_H
 #define HAWQ_RESOURCE_MANAGER_COMMUNICATION_TO_GLOBAL_RESOURCE_MANAGER_LIBYARN_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_none.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_none.h b/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_none.h
index 21349c0..bd5cfc2 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_none.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_RM2GRM_none.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 HAWQ_RESOURCE_MANAGER_COMMUNICATION_TO_GLOBAL_RESOURCE_MANAGER_NONE_H
 #define HAWQ_RESOURCE_MANAGER_COMMUNICATION_TO_GLOBAL_RESOURCE_MANAGER_NONE_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_RM2RMSEG.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_RM2RMSEG.h b/src/backend/resourcemanager/include/communication/rmcomm_RM2RMSEG.h
index 9c8f093..ecb2dc0 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_RM2RMSEG.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_RM2RMSEG.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RM2RMSEG_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RM2RMSEG_H
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_RMSEG2RM.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_RMSEG2RM.h b/src/backend/resourcemanager/include/communication/rmcomm_RMSEG2RM.h
index f4808d2..a8c31ce 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_RMSEG2RM.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_RMSEG2RM.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RMSEG2RM_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RMSEG2RM_H
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_RMSEG_RM_Protocol.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_RMSEG_RM_Protocol.h b/src/backend/resourcemanager/include/communication/rmcomm_RMSEG_RM_Protocol.h
index c25fe70..f866c9c 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_RMSEG_RM_Protocol.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_RMSEG_RM_Protocol.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RMSEG_RM_PROTOCOL_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RMSEG_RM_PROTOCOL_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_RM_RMSEG_Protocol.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_RM_RMSEG_Protocol.h b/src/backend/resourcemanager/include/communication/rmcomm_RM_RMSEG_Protocol.h
index 3cb3179..dd34377 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_RM_RMSEG_Protocol.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_RM_RMSEG_Protocol.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RM_RMSEG_PROTOCOL_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RM_RMSEG_PROTOCOL_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_SyncComm.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_SyncComm.h b/src/backend/resourcemanager/include/communication/rmcomm_SyncComm.h
index d39293f..f5acc3c 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_SyncComm.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_SyncComm.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_SYNCCOMM_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_SYNCCOMM_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/conntrack.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/conntrack.h b/src/backend/resourcemanager/include/conntrack.h
index 76e8c7c..365272d 100644
--- a/src/backend/resourcemanager/include/conntrack.h
+++ b/src/backend/resourcemanager/include/conntrack.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 DYNAMIC_RESOURCE_MANAGEMENT_CONNECTION_TRACK_H
 #define DYNAMIC_RESOURCE_MANAGEMENT_CONNECTION_TRACK_H
 #include "resourcemanager/envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/dynrm.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/dynrm.h b/src/backend/resourcemanager/include/dynrm.h
index baea73d..7de5573 100644
--- a/src/backend/resourcemanager/include/dynrm.h
+++ b/src/backend/resourcemanager/include/dynrm.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 DYNAMIC_RESOURCE_MANAGEMENT_H
 #define DYNAMIC_RESOURCE_MANAGEMENT_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/envswitch.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/envswitch.h b/src/backend/resourcemanager/include/envswitch.h
index 95f1a27..7c1e376 100644
--- a/src/backend/resourcemanager/include/envswitch.h
+++ b/src/backend/resourcemanager/include/envswitch.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 ENVIRONMENT_SWITCH_H
 #define ENVIRONMENT_SWITCH_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/errorcode.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/errorcode.h b/src/backend/resourcemanager/include/errorcode.h
index 1e82073..5dda82f 100644
--- a/src/backend/resourcemanager/include/errorcode.h
+++ b/src/backend/resourcemanager/include/errorcode.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 RESOURCE_MANAGER_ERROR_CODE_H
 #define RESOURCE_MANAGER_ERROR_CODE_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h
index 31733d8..0f35086 100644
--- a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h
+++ b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.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 HAWQ_RESOURCE_MANAGER_RESOURCE_BROKER_API_H
 #define HAWQ_RESOURCE_MANAGER_RESOURCE_BROKER_API_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourcebroker/resourcebroker_LIBYARN.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_LIBYARN.h b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_LIBYARN.h
index 17facb6..050bbf4 100644
--- a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_LIBYARN.h
+++ b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_LIBYARN.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 HAWQ_RESOURCE_MANAGER_RESOURCE_BROKER_LIBYARN_H
 #define HAWQ_RESOURCE_MANAGER_RESOURCE_BROKER_LIBYARN_H
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourcebroker/resourcebroker_NONE.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_NONE.h b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_NONE.h
index 1ccc6a6..ad182c8 100644
--- a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_NONE.h
+++ b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_NONE.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 HAWQ_RESOURCE_MANAGER_RESOURCE_BROKER_NONE_H
 #define HAWQ_RESOURCE_MANAGER_RESOURCE_BROKER_NONE_H
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourcebroker/resourcebroker_RM_RB_Protocol.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_RM_RB_Protocol.h b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_RM_RB_Protocol.h
index 026251b..d4c9533 100644
--- a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_RM_RB_Protocol.h
+++ b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_RM_RB_Protocol.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RM_RB_PROTOCOL_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_RM_RB_PROTOCOL_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer.h b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer.h
index 0a9303b..348c668 100644
--- a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer.h
+++ b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer.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 _HAWQ_RESOURCE_ENFORCER_H
 #define _HAWQ_RESOURCE_ENFORCER_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_hash.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_hash.h b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_hash.h
index a661dfb..0598d92 100644
--- a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_hash.h
+++ b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_hash.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 _HAWQ_RESOURCEENFORCER_HASH_H
 #define _HAWQ_RESOURCEENFORCER_HASH_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_list.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_list.h b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_list.h
index 3146461..0309bd1 100644
--- a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_list.h
+++ b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_list.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 _HAWQ_RESOURCEENFORCER_LIST_H
 #define _HAWQ_RESOURCEENFORCER_LIST_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_message.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_message.h b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_message.h
index a8363c9..6f7d775 100644
--- a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_message.h
+++ b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_message.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 _HAWQ_RESOURCEENFORCER_MESSAGE_H
 #define _HAWQ_RESOURCEENFORCER_MESSAGE_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_pair.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_pair.h b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_pair.h
index c607058..13bfef7 100644
--- a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_pair.h
+++ b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_pair.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 _HAWQ_RESOURCEENFORCER_PAIR_H
 #define _HAWQ_RESOURCEENFORCER_PAIR_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_queue.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_queue.h b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_queue.h
index a52ecb3..98dc336 100644
--- a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_queue.h
+++ b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_queue.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 _HAWQ_RESOURCEENFORCER_QUEUE_H
 #define _HAWQ_RESOURCEENFORCER_QUEUE_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_simpstring.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_simpstring.h b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_simpstring.h
index 40013e9..61e88f2 100644
--- a/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_simpstring.h
+++ b/src/backend/resourcemanager/include/resourceenforcer/resourceenforcer_simpstring.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 _HAWQ_RESOURCEENFORCER_SIMPSTRING_H
 #define _HAWQ_RESOURCEENFORCER_SIMPSTRING_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourcemanager.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourcemanager.h b/src/backend/resourcemanager/include/resourcemanager.h
index 0c2bf54..d52c754 100644
--- a/src/backend/resourcemanager/include/resourcemanager.h
+++ b/src/backend/resourcemanager/include/resourcemanager.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 _HAWQ_RESOURCE_MANAGER_H
 #define _HAWQ_RESOURCE_MANAGER_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resourcepool.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourcepool.h b/src/backend/resourcemanager/include/resourcepool.h
index 66c334d..7e93773 100644
--- a/src/backend/resourcemanager/include/resourcepool.h
+++ b/src/backend/resourcemanager/include/resourcepool.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 DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_POOL_H
 #define DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_POOL_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resqueuecommand.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resqueuecommand.h b/src/backend/resourcemanager/include/resqueuecommand.h
index 6ded486..295210e 100644
--- a/src/backend/resourcemanager/include/resqueuecommand.h
+++ b/src/backend/resourcemanager/include/resqueuecommand.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 DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_QUEUE_COMMAND_H
 #define DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_QUEUE_COMMAND_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resqueuedeadlock.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resqueuedeadlock.h b/src/backend/resourcemanager/include/resqueuedeadlock.h
index 3e60f01..c59a4c0 100644
--- a/src/backend/resourcemanager/include/resqueuedeadlock.h
+++ b/src/backend/resourcemanager/include/resqueuedeadlock.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 DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_QUEUE_DEADLOCK_DETECTOR_H
 #define DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_QUEUE_DEADLOCK_DETECTOR_H
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/resqueuemanager.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resqueuemanager.h b/src/backend/resourcemanager/include/resqueuemanager.h
index 5a238a1..a13ebb5 100644
--- a/src/backend/resourcemanager/include/resqueuemanager.h
+++ b/src/backend/resourcemanager/include/resqueuemanager.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 DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_QUEUE_H
 #define DYNAMIC_RESOURCE_MANAGEMENT_RESOURCE_QUEUE_H
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/rmcommon.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/rmcommon.h b/src/backend/resourcemanager/include/rmcommon.h
index 6150e89..e388126 100644
--- a/src/backend/resourcemanager/include/rmcommon.h
+++ b/src/backend/resourcemanager/include/rmcommon.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 HAWQ_RESOURCEMANAGER_COMMON_DEFINITIONS
 #define HAWQ_RESOURCEMANAGER_COMMON_DEFINITIONS
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/balancedbst.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/balancedbst.h b/src/backend/resourcemanager/include/utils/balancedbst.h
index b68a219..3fe5300 100644
--- a/src/backend/resourcemanager/include/utils/balancedbst.h
+++ b/src/backend/resourcemanager/include/utils/balancedbst.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 BALANCED_BINARY_SEARCH_TREE_H
 #define BALANCED_BINARY_SEARCH_TREE_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/filesystem_utils.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/filesystem_utils.h b/src/backend/resourcemanager/include/utils/filesystem_utils.h
index 95e7d9b..3bb474f 100644
--- a/src/backend/resourcemanager/include/utils/filesystem_utils.h
+++ b/src/backend/resourcemanager/include/utils/filesystem_utils.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 RESOURCE_MANAGER_FILE_UTILITIES_H
 #define RESOURCE_MANAGER_FILE_UTILITIES_H
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/hashtable.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/hashtable.h b/src/backend/resourcemanager/include/utils/hashtable.h
index c0c5184..269e4b8 100644
--- a/src/backend/resourcemanager/include/utils/hashtable.h
+++ b/src/backend/resourcemanager/include/utils/hashtable.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 _HASH_TABLE_H
 #define _HASH_TABLE_H
 #include "resourcemanager/envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/kvproperties.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/kvproperties.h b/src/backend/resourcemanager/include/utils/kvproperties.h
index e7486ed..470cd30 100644
--- a/src/backend/resourcemanager/include/utils/kvproperties.h
+++ b/src/backend/resourcemanager/include/utils/kvproperties.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 _KEY_VALUE_PROPERTIES_PROCESSOR_H
 #define _KEY_VALUE_PROPERTIES_PROCESSOR_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/linkedlist.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/linkedlist.h b/src/backend/resourcemanager/include/utils/linkedlist.h
index 1da3e70..b55e0f3 100644
--- a/src/backend/resourcemanager/include/utils/linkedlist.h
+++ b/src/backend/resourcemanager/include/utils/linkedlist.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 SINGLE_DIRECTION_LINKED_LIST_H
 #define SINGLE_DIRECTION_LINKED_LIST_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/memutilities.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/memutilities.h b/src/backend/resourcemanager/include/utils/memutilities.h
index 502f574..a1e2977 100644
--- a/src/backend/resourcemanager/include/utils/memutilities.h
+++ b/src/backend/resourcemanager/include/utils/memutilities.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 RESOURCE_MANAGER_UTIL_MEMORY_UTILITIES_H
 #define RESOURCE_MANAGER_UTIL_MEMORY_UTILITIES_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/network_utils.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/network_utils.h b/src/backend/resourcemanager/include/utils/network_utils.h
index 281038d..eabab18 100644
--- a/src/backend/resourcemanager/include/utils/network_utils.h
+++ b/src/backend/resourcemanager/include/utils/network_utils.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 RESOURCE_MANANGER_NETWORK_UTILITIES_H
 #define RESOURCE_MANANGER_NETWORK_UTILITIES_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/nullablebool.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/nullablebool.h b/src/backend/resourcemanager/include/utils/nullablebool.h
index c23058f..fec8d0a 100644
--- a/src/backend/resourcemanager/include/utils/nullablebool.h
+++ b/src/backend/resourcemanager/include/utils/nullablebool.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 RESOURCE_MANANGER_NULLABLE_BOOL_UTILITIES_H
 #define RESOURCE_MANANGER_NULLABLE_BOOL_UTILITIES_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/pair.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/pair.h b/src/backend/resourcemanager/include/utils/pair.h
index 74456c8..666c65b 100644
--- a/src/backend/resourcemanager/include/utils/pair.h
+++ b/src/backend/resourcemanager/include/utils/pair.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 _PAIR_VALUES_H
 #define _PAIR_VALUES_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/utils/simplestring.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/utils/simplestring.h b/src/backend/resourcemanager/include/utils/simplestring.h
index 540d69e..871070f 100644
--- a/src/backend/resourcemanager/include/utils/simplestring.h
+++ b/src/backend/resourcemanager/include/utils/simplestring.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 _SIMPLE_STRING_INCLUDED
 #define _SIMPLE_STRING_INCLUDED
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/requesthandler.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/requesthandler.c b/src/backend/resourcemanager/requesthandler.c
index 5fbaf2e..bca0a38 100644
--- a/src/backend/resourcemanager/requesthandler.c
+++ b/src/backend/resourcemanager/requesthandler.c
@@ -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.
+ */
+
 #include "dynrm.h"
 #include "envswitch.h"
 #include "utils/linkedlist.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/requesthandler_RMSEG.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/requesthandler_RMSEG.c b/src/backend/resourcemanager/requesthandler_RMSEG.c
index 9ec69af..f9b1261 100644
--- a/src/backend/resourcemanager/requesthandler_RMSEG.c
+++ b/src/backend/resourcemanager/requesthandler_RMSEG.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "dynrm.h"
 #include "time.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/requesthandler_ddl.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/requesthandler_ddl.c b/src/backend/resourcemanager/requesthandler_ddl.c
index 839bc83..ab141b9 100644
--- a/src/backend/resourcemanager/requesthandler_ddl.c
+++ b/src/backend/resourcemanager/requesthandler_ddl.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "utils/linkedlist.h"
 #include "utils/memutilities.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c b/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
index 942602c..8f1acbd 100644
--- a/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
+++ b/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "resourcebroker/resourcebroker_API.h"
 #include "resourcebroker/resourcebroker_NONE.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c b/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
index 98ae6a6..80b04a4 100644
--- a/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
+++ b/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
@@ -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.
+ */
+
 #include "envswitch.h"
 
 #include "postmaster/fork_process.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN_proc.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN_proc.c b/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN_proc.c
index dce4c83..91b456b 100644
--- a/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN_proc.c
+++ b/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN_proc.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "dynrm.h"
 #include "miscadmin.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourcebroker/resourcebroker_NONE.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcebroker/resourcebroker_NONE.c b/src/backend/resourcemanager/resourcebroker/resourcebroker_NONE.c
index be0c124..97e8d37 100644
--- a/src/backend/resourcemanager/resourcebroker/resourcebroker_NONE.c
+++ b/src/backend/resourcemanager/resourcebroker/resourcebroker_NONE.c
@@ -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.
+ */
+
 #include "envswitch.h"
 
 #include "resourcebroker/resourcebroker_NONE.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourceenforcer/resourceenforcer.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourceenforcer/resourceenforcer.c b/src/backend/resourcemanager/resourceenforcer/resourceenforcer.c
index 9eb3378..dfc2f26 100644
--- a/src/backend/resourcemanager/resourceenforcer/resourceenforcer.c
+++ b/src/backend/resourcemanager/resourceenforcer/resourceenforcer.c
@@ -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.
+ */
+
+/*
  * resourceenforcer.c
  *     CPU usage enforcement for HAWQ.
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourceenforcer/resourceenforcer_hash.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_hash.c b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_hash.c
index 1de52f7..f3b5673 100644
--- a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_hash.c
+++ b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_hash.c
@@ -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.
+ */
+
+/*
  * resourceenforcer_hash.c
  *
  * Copyright(c) 2015, Pivotal Inc.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourceenforcer/resourceenforcer_list.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_list.c b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_list.c
index 2e60a67..e1f9711 100644
--- a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_list.c
+++ b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_list.c
@@ -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.
+ */
+
 #include "resourceenforcer/resourceenforcer_list.h"
 #include "postgres.h"
 #include "cdb/cdbvars.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourceenforcer/resourceenforcer_pair.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_pair.c b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_pair.c
index fa6f457..77d60c2 100644
--- a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_pair.c
+++ b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_pair.c
@@ -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.
+ */
+
 #include <stdlib.h>
 #include "postgres.h"
 #include "cdb/cdbvars.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourceenforcer/resourceenforcer_queue.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_queue.c b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_queue.c
index 7a99677..d434b75 100644
--- a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_queue.c
+++ b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_queue.c
@@ -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.
+ */
+
+/*
  * resourceenforcer_queue.c
  *		Thread safe queue implementation for resource enforcement.
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourceenforcer/resourceenforcer_simpstring.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_simpstring.c b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_simpstring.c
index 7ff386d..1fb10dc 100644
--- a/src/backend/resourcemanager/resourceenforcer/resourceenforcer_simpstring.c
+++ b/src/backend/resourcemanager/resourceenforcer/resourceenforcer_simpstring.c
@@ -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.
+ */
+
 #include <stdlib.h>
 #include "postgres.h"
 #include "fmgr.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourcemanager.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcemanager.c b/src/backend/resourcemanager/resourcemanager.c
index f9a12c4..815ba92 100644
--- a/src/backend/resourcemanager/resourcemanager.c
+++ b/src/backend/resourcemanager/resourcemanager.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "dynrm.h"
 #include "utils/hashtable.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourcemanager_RMSEG.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcemanager_RMSEG.c b/src/backend/resourcemanager/resourcemanager_RMSEG.c
index df589bb..893dd67 100644
--- a/src/backend/resourcemanager/resourcemanager_RMSEG.c
+++ b/src/backend/resourcemanager/resourcemanager_RMSEG.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "dynrm.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resourcepool.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcepool.c b/src/backend/resourcemanager/resourcepool.c
index f88ddc7..47ba2ee 100644
--- a/src/backend/resourcemanager/resourcepool.c
+++ b/src/backend/resourcemanager/resourcepool.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "dynrm.h"
 #include "include/communication/rmcomm_RM2GRM.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resqueuecommand.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resqueuecommand.c b/src/backend/resourcemanager/resqueuecommand.c
index 19b255a..22705e1 100644
--- a/src/backend/resourcemanager/resqueuecommand.c
+++ b/src/backend/resourcemanager/resqueuecommand.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "dynrm.h"
 #include "resqueuecommand.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resqueuedeadlock.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resqueuedeadlock.c b/src/backend/resourcemanager/resqueuedeadlock.c
index eb100ad..9564983 100644
--- a/src/backend/resourcemanager/resqueuedeadlock.c
+++ b/src/backend/resourcemanager/resqueuedeadlock.c
@@ -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.
+ */
+
 #include "resqueuedeadlock.h"
 #include "dynrm.h"
 #include "utils/simplestring.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/resqueuemanager.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resqueuemanager.c b/src/backend/resourcemanager/resqueuemanager.c
index 7758234..fc51a9a 100644
--- a/src/backend/resourcemanager/resqueuemanager.c
+++ b/src/backend/resourcemanager/resqueuemanager.c
@@ -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.
+ */
+
 #include "dynrm.h"
 #include "utils/simplestring.h"
 #include "utils/network_utils.h"



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/dispatcher_mgt.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/dispatcher_mgt.c b/src/backend/cdb/dispatcher_mgt.c
index 4768c2b..173ea35 100644
--- a/src/backend/cdb/dispatcher_mgt.c
+++ b/src/backend/cdb/dispatcher_mgt.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * dispatcher_mgt.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/executormgr.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/executormgr.c b/src/backend/cdb/executormgr.c
index 871bef3..6216d23 100644
--- a/src/backend/cdb/executormgr.c
+++ b/src/backend/cdb/executormgr.c
@@ -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.
+ */
+
+/*
  * executormgr.c
  *
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/motion/cdbmotion.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/motion/cdbmotion.c b/src/backend/cdb/motion/cdbmotion.c
index 46517e6..03a9633 100644
--- a/src/backend/cdb/motion/cdbmotion.c
+++ b/src/backend/cdb/motion/cdbmotion.c
@@ -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.c
  *		Access into the motion-layer in order to send and receive tuples
  *		within a motion node ID within a particular process group id.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  * Reviewers: jzhang, tkordas
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/motion/htupfifo.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/motion/htupfifo.c b/src/backend/cdb/motion/htupfifo.c
index 676f04c..ca9bb42 100644
--- a/src/backend/cdb/motion/htupfifo.c
+++ b/src/backend/cdb/motion/htupfifo.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * htupfifo.c
  *	   A FIFO queue for HeapTuples.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  * Reviewers: tkordas
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/motion/ic_common.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/motion/ic_common.c b/src/backend/cdb/motion/ic_common.c
index 677c23a..7eba340 100644
--- a/src/backend/cdb/motion/ic_common.c
+++ b/src/backend/cdb/motion/ic_common.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  * ic_common.c
  *	   Interconnect code shared between UDP, and TCP IPC Layers.
  *
- * Copyright (c) 2005-2008, Greenplum
- *
  * Reviewers: jzhang, tkordas
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/motion/ic_tcp.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/motion/ic_tcp.c b/src/backend/cdb/motion/ic_tcp.c
index ab371c7..5d3b16b 100644
--- a/src/backend/cdb/motion/ic_tcp.c
+++ b/src/backend/cdb/motion/ic_tcp.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  * ic_tcp.c
  *	   Interconnect code specific to TCP transport.
  *
- * Copyright (c) 2005-2008, Greenplum
- *
  * Reviewers: jzhang, tkordas
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/motion/ic_udp.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/motion/ic_udp.c b/src/backend/cdb/motion/ic_udp.c
index cf47d55..56201bb 100644
--- a/src/backend/cdb/motion/ic_udp.c
+++ b/src/backend/cdb/motion/ic_udp.c
@@ -1,10 +1,25 @@
+/*
+ * 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.
+ */
+
 /*-------------------------------------------------------------------------
  * ic_udp.c
  *	   Interconnect code specific to UDP transport.
- *
- * Copyright (c) 2005-2011, Greenplum Inc.
- * Copyright (c) 2011-2012, EMC Corporation
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/motion/tupchunklist.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/motion/tupchunklist.c b/src/backend/cdb/motion/tupchunklist.c
index d826efc..7d34bf2 100644
--- a/src/backend/cdb/motion/tupchunklist.c
+++ b/src/backend/cdb/motion/tupchunklist.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  * tupchunklist.c
  *	  The data-structures and functions for dealing with tuple chunk lists.
  *
- * Copyright (c) 2005-2008, Greenplum
- *
  * Reviewers: jzhang, ftian, tkordas
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/motion/tupser.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/motion/tupser.c b/src/backend/cdb/motion/tupser.c
index 7078760..0e7909c 100644
--- a/src/backend/cdb/motion/tupser.c
+++ b/src/backend/cdb/motion/tupser.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  * tupser.c
  *	   Functions for serializing and deserializing a heap tuple.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *      Reviewers: jzhang, ftian, tkordas
  *
  *-------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/partitionselection.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/partitionselection.c b/src/backend/cdb/partitionselection.c
index d919208..3cd4dbb 100644
--- a/src/backend/cdb/partitionselection.c
+++ b/src/backend/cdb/partitionselection.c
@@ -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.
+ */
+
 /*--------------------------------------------------------------------------
  *
  * partitionselection.c
  *	  Provides utility routines to support partition selection.
  *
- * Copyright (c) Pivotal Inc.
- *
  *--------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/poolmgr.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/poolmgr.c b/src/backend/cdb/poolmgr.c
index 26990b3..eae0f04 100644
--- a/src/backend/cdb/poolmgr.c
+++ b/src/backend/cdb/poolmgr.c
@@ -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.
+ */
+
+/*
  * poolmgr.c
  *	Have to be accessed in main thread!!!!
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/test/cdbbufferedread_test.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/test/cdbbufferedread_test.c b/src/backend/cdb/test/cdbbufferedread_test.c
index fac19eb..a8e60cb 100644
--- a/src/backend/cdb/test/cdbbufferedread_test.c
+++ b/src/backend/cdb/test/cdbbufferedread_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/test/cdbdisp_test.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/test/cdbdisp_test.c b/src/backend/cdb/test/cdbdisp_test.c
index c4cc08f..305764f 100644
--- a/src/backend/cdb/test/cdbdisp_test.c
+++ b/src/backend/cdb/test/cdbdisp_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/test/cdbinmemheapam_test.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/test/cdbinmemheapam_test.c b/src/backend/cdb/test/cdbinmemheapam_test.c
index 157101e..9712fbb 100644
--- a/src/backend/cdb/test/cdbinmemheapam_test.c
+++ b/src/backend/cdb/test/cdbinmemheapam_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/test_discard/cdbbufferedread_test.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/test_discard/cdbbufferedread_test.c b/src/backend/cdb/test_discard/cdbbufferedread_test.c
index fac19eb..a8e60cb 100644
--- a/src/backend/cdb/test_discard/cdbbufferedread_test.c
+++ b/src/backend/cdb/test_discard/cdbbufferedread_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/test_discard/cdbdisp_test.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/test_discard/cdbdisp_test.c b/src/backend/cdb/test_discard/cdbdisp_test.c
index 44d090b..9de6ad4 100644
--- a/src/backend/cdb/test_discard/cdbdisp_test.c
+++ b/src/backend/cdb/test_discard/cdbdisp_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/workermgr.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/workermgr.c b/src/backend/cdb/workermgr.c
index b21ba0a..137d08f 100644
--- a/src/backend/cdb/workermgr.c
+++ b/src/backend/cdb/workermgr.c
@@ -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.
+ */
+
+/*
  * workermgr.c
  *	Worker manager is designed to delivery a general thread-based task framework.
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execAOScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execAOScan.c b/src/backend/executor/execAOScan.c
index abc61ac..053494f 100644
--- a/src/backend/executor/execAOScan.c
+++ b/src/backend/executor/execAOScan.c
@@ -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.
+ */
+
+/*
  * execAppendOnlyScan.c
  *   Support routines for scanning AppendOnly tables.
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execBitmapParquetScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execBitmapParquetScan.c b/src/backend/executor/execBitmapParquetScan.c
index 7e9a493..ec960b6 100644
--- a/src/backend/executor/execBitmapParquetScan.c
+++ b/src/backend/executor/execBitmapParquetScan.c
@@ -1,8 +1,25 @@
 /*
+ * 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.
+ */
+/*
  * execBitmapParquetScan.c
  *   Support routines for scanning parquet tables using bitmaps.
  *
- * Copyright (c) 2014 Pivotal, Inc.
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execDML.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execDML.c b/src/backend/executor/execDML.c
index 381eea8..d36e9ed 100644
--- a/src/backend/executor/execDML.c
+++ b/src/backend/executor/execDML.c
@@ -1,11 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * execDML.c
  *        Implementation of execDML.
  *        This file performs INSERT, DELETE and UPDATE DML operations.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execDynamicScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execDynamicScan.c b/src/backend/executor/execDynamicScan.c
index 45913d2..2ae8bda 100644
--- a/src/backend/executor/execDynamicScan.c
+++ b/src/backend/executor/execDynamicScan.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * execDynamicScan.c
  *	  Support routines for iterating through dynamically chosen partitions of a relation
  *
- * Portions Copyright (c) 2014, Pivotal, Inc.
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execGpmon.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execGpmon.c b/src/backend/executor/execGpmon.c
index 9eb84ae..4b3799b 100644
--- a/src/backend/executor/execGpmon.c
+++ b/src/backend/executor/execGpmon.c
@@ -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.
+ */
+
+/*
  * execGpmon.c
  *   Gpmon related functions inside executor.
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execIndexscan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execIndexscan.c b/src/backend/executor/execIndexscan.c
index 97a5414..0e41c95 100644
--- a/src/backend/executor/execIndexscan.c
+++ b/src/backend/executor/execIndexscan.c
@@ -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.
+ */
+
+/*
  * execIndexscan.c
  * 	Define common routines that are used by IndexScan, BitmapIndexScan, and DynamicIndexScan nodes.
  *
- * Copyright (c) 2013 - present, EMC/Greenplum
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execParquetScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execParquetScan.c b/src/backend/executor/execParquetScan.c
index 7999e83..f56ff36 100644
--- a/src/backend/executor/execParquetScan.c
+++ b/src/backend/executor/execParquetScan.c
@@ -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.
+ */
+/*
  * execParquetScan.c
  *
  *  Created on: Oct 11, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/execWorkfile.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execWorkfile.c b/src/backend/executor/execWorkfile.c
index 28619d2..05adea8 100644
--- a/src/backend/executor/execWorkfile.c
+++ b/src/backend/executor/execWorkfile.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * execworkfile.c
  *    Management of temporary work files used by the executor nodes.
  *
- * Copyright (c) 2010. Greenplum Inc.
- *
  * WorkFiles provide a general interface to different implementations of
  * temporary files used by the executor nodes.
  *-------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeAssertOp.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeAssertOp.c b/src/backend/executor/nodeAssertOp.c
index 65cc161..5f906ff 100644
--- a/src/backend/executor/nodeAssertOp.c
+++ b/src/backend/executor/nodeAssertOp.c
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeAssertOp.c
  *	  Implementation of nodeAssertOp.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeDML.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeDML.c b/src/backend/executor/nodeDML.c
index f3efde9..db103ce 100644
--- a/src/backend/executor/nodeDML.c
+++ b/src/backend/executor/nodeDML.c
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeDML.c
  *	  Implementation of nodeDML.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeDynamicIndexscan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeDynamicIndexscan.c b/src/backend/executor/nodeDynamicIndexscan.c
index 74d8b5f..8156987 100644
--- a/src/backend/executor/nodeDynamicIndexscan.c
+++ b/src/backend/executor/nodeDynamicIndexscan.c
@@ -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.
+ */
+/*
  * nodeDynamicIndexscan.c 
  *	Support routines for scanning one or more indexes that
  *	are determined at runtime.
@@ -7,7 +25,6 @@
  *	For each index, it opens the index, scans the index, and returns
  *	relevant tuples.
  *
- * Copyright (c) 2013 - present, EMC/Greenplum
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeDynamicTableScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeDynamicTableScan.c b/src/backend/executor/nodeDynamicTableScan.c
index d31a34a..94da2ad 100644
--- a/src/backend/executor/nodeDynamicTableScan.c
+++ b/src/backend/executor/nodeDynamicTableScan.c
@@ -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.
+ */
+
+/*
  * nodeDynamicTableScan.c
  *    Support routines for scanning one or more relations that are determined
  * at run time. The relations could be Heap, AppendOnly Row, AppendOnly Columnar.
@@ -6,7 +25,6 @@
  * DynamicTableScan node scans each relation one after the other. For each relation,
  * it opens the table, scans the tuple, and returns relevant tuples.
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeExternalscan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeExternalscan.c b/src/backend/executor/nodeExternalscan.c
index 78c7498..b19b25e 100644
--- a/src/backend/executor/nodeExternalscan.c
+++ b/src/backend/executor/nodeExternalscan.c
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeExternalscan.c
  *	  Support routines for scans of external relations (on flat files for example)
  *
- * Copyright (c) 2007-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeMotion.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeMotion.c b/src/backend/executor/nodeMotion.c
index 0a129bc..e85a3c9 100644
--- a/src/backend/executor/nodeMotion.c
+++ b/src/backend/executor/nodeMotion.c
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeMotion.c
  *	  Routines to handle moving tuples around in Greenplum Database.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeParquetScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeParquetScan.c b/src/backend/executor/nodeParquetScan.c
index 4b506e4..90c1c1d 100644
--- a/src/backend/executor/nodeParquetScan.c
+++ b/src/backend/executor/nodeParquetScan.c
@@ -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.
+ */
+
+/*
  * nodeParquetScan.c
  *
  *  Created on: Jul 4, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodePartitionSelector.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodePartitionSelector.c b/src/backend/executor/nodePartitionSelector.c
index 28a7619..c7de1f5 100644
--- a/src/backend/executor/nodePartitionSelector.c
+++ b/src/backend/executor/nodePartitionSelector.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * nodePartitionSelector.c
@@ -5,8 +24,6 @@
  *	  Oids based on a given set of predicates. It works for both constant
  *	  partition elimination and join partition elimination
  *
- * Copyright (c) 2014, Pivotal Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeRepeat.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeRepeat.c b/src/backend/executor/nodeRepeat.c
index a60b006..b33f547 100644
--- a/src/backend/executor/nodeRepeat.c
+++ b/src/backend/executor/nodeRepeat.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * nodeRepeat.c
@@ -12,8 +31,6 @@
  *    For example, it is useful in grouping extension queries where the query
  *    contain duplicate grouping sets.
  *
- * Copyright (c) 2008 - present, Greenplum Inc.
- *
  * IDENTIFICATION:
  *     $Id$
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeRowTrigger.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeRowTrigger.c b/src/backend/executor/nodeRowTrigger.c
index 5d44345..0b84eee 100644
--- a/src/backend/executor/nodeRowTrigger.c
+++ b/src/backend/executor/nodeRowTrigger.c
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeRowTriggerOp.c
  *	  Implementation of nodeRowTriggerOp.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  * The semantics of triggers is the following:
  * After triggers are executed after each tuple is processed, which
  * is not the case for DML statements going through the planner.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeSequence.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeSequence.c b/src/backend/executor/nodeSequence.c
index a61b858..4ccb739 100644
--- a/src/backend/executor/nodeSequence.c
+++ b/src/backend/executor/nodeSequence.c
@@ -1,9 +1,25 @@
 /*
+ * 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.
+ */
+/*
  * nodeSequence.c
  *   Routines to handle Sequence node.
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
- *
  * Sequence node contains a list of subplans, which will be processed in the 
  * order of left-to-right. Result tuples from the last subplan will be outputted
  * as the results of the Sequence node.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeSplitUpdate.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeSplitUpdate.c b/src/backend/executor/nodeSplitUpdate.c
index 40746f4..3094a62 100644
--- a/src/backend/executor/nodeSplitUpdate.c
+++ b/src/backend/executor/nodeSplitUpdate.c
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeSplitUpdate.c
  *	  Implementation of nodeSplitUpdate.
  *
- * Copyright (c) 2012, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeTableScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeTableScan.c b/src/backend/executor/nodeTableScan.c
index 2e2de77..cbbe8cd 100644
--- a/src/backend/executor/nodeTableScan.c
+++ b/src/backend/executor/nodeTableScan.c
@@ -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.
+ */
+/*
  * nodeTableScan.c
  *    Support routines for scanning a relation. This relation can be Heap,
  * AppendOnly Row, or AppendOnly Columnar.
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/executor/nodeWindow.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeWindow.c b/src/backend/executor/nodeWindow.c
index cd4fba8..3551410 100644
--- a/src/backend/executor/nodeWindow.c
+++ b/src/backend/executor/nodeWindow.c
@@ -1,11 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * nodeWindowNew.c
  *	  Routines to handle window nodes.
  *
- *
- * Copyright (c) 2007-2012, Greenplum inc *
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/postmaster/identity.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/identity.c b/src/backend/postmaster/identity.c
index 7d1bcf0..889c252 100644
--- a/src/backend/postmaster/identity.c
+++ b/src/backend/postmaster/identity.c
@@ -1,3 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * identity.c
@@ -6,8 +24,6 @@
  *	  static one used to locate server(phasical segment). The other one is used
  *	  to run the work(query).
  *
- * Copyright (c) 2014-2014, Pivotal inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_AsyncComm.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_AsyncComm.c b/src/backend/resourcemanager/communication/rmcomm_AsyncComm.c
index f8bb555..039a1cb 100644
--- a/src/backend/resourcemanager/communication/rmcomm_AsyncComm.c
+++ b/src/backend/resourcemanager/communication/rmcomm_AsyncComm.c
@@ -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.
+ */
+
 #include "communication/rmcomm_AsyncComm.h"
 #include "communication/rmcomm_Connect.h"
 #include "utils/network_utils.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_Connect.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_Connect.c b/src/backend/resourcemanager/communication/rmcomm_Connect.c
index 1349d18..db1640e 100644
--- a/src/backend/resourcemanager/communication/rmcomm_Connect.c
+++ b/src/backend/resourcemanager/communication/rmcomm_Connect.c
@@ -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.
+ */
+
 #include "communication/rmcomm_Connect.h"
 #include "utils/network_utils.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_Message.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_Message.c b/src/backend/resourcemanager/communication/rmcomm_Message.c
index d1627ef..663a88d 100644
--- a/src/backend/resourcemanager/communication/rmcomm_Message.c
+++ b/src/backend/resourcemanager/communication/rmcomm_Message.c
@@ -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.
+ */
+
 #include "communication/rmcomm_Message.h"
 #include "communication/rmcomm_MessageHandler.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_MessageHandler.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_MessageHandler.c b/src/backend/resourcemanager/communication/rmcomm_MessageHandler.c
index 3163795..2dc6aa8 100644
--- a/src/backend/resourcemanager/communication/rmcomm_MessageHandler.c
+++ b/src/backend/resourcemanager/communication/rmcomm_MessageHandler.c
@@ -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.
+ */
+
 #include "communication/rmcomm_MessageHandler.h"
 #include "dynrm.h"
 #include "communication/rmcomm_MessageProtocol.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_MessageServer.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_MessageServer.c b/src/backend/resourcemanager/communication/rmcomm_MessageServer.c
index d511085..1f472fe 100644
--- a/src/backend/resourcemanager/communication/rmcomm_MessageServer.c
+++ b/src/backend/resourcemanager/communication/rmcomm_MessageServer.c
@@ -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.
+ */
+
 #include "communication/rmcomm_MessageServer.h"
 #include "communication/rmcomm_Message.h"
 #include "conntrack.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_QD2RM.c b/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
index c009b08..8e81c89 100644
--- a/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
+++ b/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
@@ -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.
+ */
+
 #include "communication/rmcomm_QD2RM.h"
 #include "dynrm.h"
 #include "utils/memutilities.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_QE2RMSEG.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_QE2RMSEG.c b/src/backend/resourcemanager/communication/rmcomm_QE2RMSEG.c
index 874b53d..ece493e 100644
--- a/src/backend/resourcemanager/communication/rmcomm_QE2RMSEG.c
+++ b/src/backend/resourcemanager/communication/rmcomm_QE2RMSEG.c
@@ -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.
+ */
+
 #include "resourcemanager/communication/rmcomm_QE2RMSEG.h"
 
 bool QE2RMSEG_Initialized = false;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_RM2RMSEG.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_RM2RMSEG.c b/src/backend/resourcemanager/communication/rmcomm_RM2RMSEG.c
index d3b1d61..a1b242e 100644
--- a/src/backend/resourcemanager/communication/rmcomm_RM2RMSEG.c
+++ b/src/backend/resourcemanager/communication/rmcomm_RM2RMSEG.c
@@ -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.
+ */
+
 #include "communication/rmcomm_RM2RMSEG.h"
 #include "communication/rmcomm_Message.h"
 #include "communication/rmcomm_MessageHandler.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_RMSEG2RM.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_RMSEG2RM.c b/src/backend/resourcemanager/communication/rmcomm_RMSEG2RM.c
index 4adeb44..976c896 100644
--- a/src/backend/resourcemanager/communication/rmcomm_RMSEG2RM.c
+++ b/src/backend/resourcemanager/communication/rmcomm_RMSEG2RM.c
@@ -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.
+ */
+
 #include "communication/rmcomm_RMSEG2RM.h"
 #include "communication/rmcomm_Message.h"
 #include "communication/rmcomm_MessageHandler.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/communication/rmcomm_SyncComm.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_SyncComm.c b/src/backend/resourcemanager/communication/rmcomm_SyncComm.c
index 1d0645c..316bedd 100644
--- a/src/backend/resourcemanager/communication/rmcomm_SyncComm.c
+++ b/src/backend/resourcemanager/communication/rmcomm_SyncComm.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "communication/rmcomm_SyncComm.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/conntrack.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/conntrack.c b/src/backend/resourcemanager/conntrack.c
index 62dea4c..75756f4 100644
--- a/src/backend/resourcemanager/conntrack.c
+++ b/src/backend/resourcemanager/conntrack.c
@@ -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.
+ */
+
 #include "dynrm.h"
 #include "communication/rmcomm_MessageServer.h"
 #include "communication/rmcomm_MessageHandler.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/errorcode.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/errorcode.c b/src/backend/resourcemanager/errorcode.c
index 1943940..68a4a07 100644
--- a/src/backend/resourcemanager/errorcode.c
+++ b/src/backend/resourcemanager/errorcode.c
@@ -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.
+ */
+
 #include "errorcode.h"
 #include "envswitch.h"
 #include <string.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/hawqsite.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/hawqsite.c b/src/backend/resourcemanager/hawqsite.c
index a125c4c..c9d79ef 100644
--- a/src/backend/resourcemanager/hawqsite.c
+++ b/src/backend/resourcemanager/hawqsite.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "dynrm.h"
 #include "resourcemanager/resourcemanager.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_AsyncComm.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_AsyncComm.h b/src/backend/resourcemanager/include/communication/rmcomm_AsyncComm.h
index 0f8ae9f..21736bc 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_AsyncComm.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_AsyncComm.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_ASYNCCOMM_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_ASYNCCOMM_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_Connect.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_Connect.h b/src/backend/resourcemanager/include/communication/rmcomm_Connect.h
index 584906f..fe6d830 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_Connect.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_Connect.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_CONNECT_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_CONNECT_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_Message.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_Message.h b/src/backend/resourcemanager/include/communication/rmcomm_Message.h
index e6d1d0a..3d3b37a 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_Message.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_Message.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MESSAGE_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MESSAGE_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_MessageHandler.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_MessageHandler.h b/src/backend/resourcemanager/include/communication/rmcomm_MessageHandler.h
index 2529bc0..b95a4f7 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_MessageHandler.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_MessageHandler.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MSGHANDLER_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MSGHANDLER_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_MessageProtocol.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_MessageProtocol.h b/src/backend/resourcemanager/include/communication/rmcomm_MessageProtocol.h
index f44b11a..dc2fb6e 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_MessageProtocol.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_MessageProtocol.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MESSAGEPROTO_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MESSAGEPROTO_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_MessageServer.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_MessageServer.h b/src/backend/resourcemanager/include/communication/rmcomm_MessageServer.h
index ee0147f..2e09d19 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_MessageServer.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_MessageServer.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MESSAGESERVER_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_MESSAGESERVER_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_QD2RM.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_QD2RM.h b/src/backend/resourcemanager/include/communication/rmcomm_QD2RM.h
index bdb9400..493f340 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_QD2RM.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_QD2RM.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_QD2RM_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_QD2RM_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/include/communication/rmcomm_QD_RM_Protocol.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/communication/rmcomm_QD_RM_Protocol.h b/src/backend/resourcemanager/include/communication/rmcomm_QD_RM_Protocol.h
index a275d0e..db65527 100644
--- a/src/backend/resourcemanager/include/communication/rmcomm_QD_RM_Protocol.h
+++ b/src/backend/resourcemanager/include/communication/rmcomm_QD_RM_Protocol.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 RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_QD_RM_PROTOCOL_H
 #define RESOURCE_MAMANGER_INTER_PROCESS_COMMUNICATION_QD_RM_PROTOCOL_H
 



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

Posted by wl...@apache.org.
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



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionResourceRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionResourceRequest.h b/depends/libyarn/src/records/PreemptionResourceRequest.h
index fb4b99c..7324157 100644
--- a/depends/libyarn/src/records/PreemptionResourceRequest.h
+++ b/depends/libyarn/src/records/PreemptionResourceRequest.h
@@ -1,8 +1,20 @@
 /*
- * PreemptionResourceRequest.h
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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 PREEMPTIONRESOURCEREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Priority.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Priority.cpp b/depends/libyarn/src/records/Priority.cpp
index 06f0d1f..f75b38e 100644
--- a/depends/libyarn/src/records/Priority.cpp
+++ b/depends/libyarn/src/records/Priority.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "Priority.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Priority.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Priority.h b/depends/libyarn/src/records/Priority.h
index 073976e..7fe6c5b 100644
--- a/depends/libyarn/src/records/Priority.h
+++ b/depends/libyarn/src/records/Priority.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 PRIORITY_H_
 #define PRIORITY_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/QueueACL.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueACL.h b/depends/libyarn/src/records/QueueACL.h
index f014b10..66a839c 100644
--- a/depends/libyarn/src/records/QueueACL.h
+++ b/depends/libyarn/src/records/QueueACL.h
@@ -1,8 +1,20 @@
 /*
- * QueueACL.h
- *
- *  Created on: Jul 29, 2014
- *      Author: bwang
+ * 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 QUEUEACL_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/QueueInfo.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueInfo.cpp b/depends/libyarn/src/records/QueueInfo.cpp
index 1d439ec..d82f7b7 100644
--- a/depends/libyarn/src/records/QueueInfo.cpp
+++ b/depends/libyarn/src/records/QueueInfo.cpp
@@ -1,8 +1,20 @@
 /*
- * QueueInfo.cpp
- *
- *  Created on: Jul 22, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "QueueInfo.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/QueueInfo.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueInfo.h b/depends/libyarn/src/records/QueueInfo.h
index 159cf98..f14fc20 100644
--- a/depends/libyarn/src/records/QueueInfo.h
+++ b/depends/libyarn/src/records/QueueInfo.h
@@ -1,8 +1,20 @@
 /*
- * QueueInfo.h
- *
- *  Created on: Jul 22, 2014
- *      Author: bwang
+ * 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 QUEUEINFO_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/QueueState.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueState.h b/depends/libyarn/src/records/QueueState.h
index f52e13c..3e28bc6 100644
--- a/depends/libyarn/src/records/QueueState.h
+++ b/depends/libyarn/src/records/QueueState.h
@@ -1,10 +1,23 @@
 /*
- * QueueState.h
- *
- *  Created on: Jul 22, 2014
- *      Author: bwang
+ * 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 QUEUESTATE_H_
 #define QUEUESTATE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/QueueUserACLInfo.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueUserACLInfo.cpp b/depends/libyarn/src/records/QueueUserACLInfo.cpp
index c8e6687..ec44597 100644
--- a/depends/libyarn/src/records/QueueUserACLInfo.cpp
+++ b/depends/libyarn/src/records/QueueUserACLInfo.cpp
@@ -1,8 +1,20 @@
 /*
- * QueueUserACLInfo.cpp
- *
- *  Created on: Jul 29, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "QueueUserACLInfo.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/QueueUserACLInfo.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueUserACLInfo.h b/depends/libyarn/src/records/QueueUserACLInfo.h
index 640604a..9d26cfa 100644
--- a/depends/libyarn/src/records/QueueUserACLInfo.h
+++ b/depends/libyarn/src/records/QueueUserACLInfo.h
@@ -1,8 +1,20 @@
 /*
- * QueueUserACLInfo.h
- *
- *  Created on: Jul 29, 2014
- *      Author: bwang
+ * 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 QUEUEUSERACLINFO_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Resource.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Resource.cpp b/depends/libyarn/src/records/Resource.cpp
index 5e8df39..c60fb40 100644
--- a/depends/libyarn/src/records/Resource.cpp
+++ b/depends/libyarn/src/records/Resource.cpp
@@ -1,8 +1,20 @@
 /*
- * Resource.cpp
- *
- *  Created on: Jul 10, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "Resource.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Resource.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Resource.h b/depends/libyarn/src/records/Resource.h
index 17ce222..86b4e1c 100644
--- a/depends/libyarn/src/records/Resource.h
+++ b/depends/libyarn/src/records/Resource.h
@@ -1,8 +1,20 @@
 /*
- * Resource.h
- *
- *  Created on: Jul 10, 2014
- *      Author: bwang
+ * 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 RESOURCE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ResourceBlacklistRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ResourceBlacklistRequest.cpp b/depends/libyarn/src/records/ResourceBlacklistRequest.cpp
index d1e2933..a32cd7c 100644
--- a/depends/libyarn/src/records/ResourceBlacklistRequest.cpp
+++ b/depends/libyarn/src/records/ResourceBlacklistRequest.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "ResourceBlacklistRequest.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ResourceBlacklistRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ResourceBlacklistRequest.h b/depends/libyarn/src/records/ResourceBlacklistRequest.h
index 4e673cd..04beff6 100644
--- a/depends/libyarn/src/records/ResourceBlacklistRequest.h
+++ b/depends/libyarn/src/records/ResourceBlacklistRequest.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 RESOURCEBLACKLISTREQUEST_H_
 #define RESOURCEBLACKLISTREQUEST_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ResourceRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ResourceRequest.cpp b/depends/libyarn/src/records/ResourceRequest.cpp
index 0862830..858c313 100644
--- a/depends/libyarn/src/records/ResourceRequest.cpp
+++ b/depends/libyarn/src/records/ResourceRequest.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "ResourceRequest.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ResourceRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ResourceRequest.h b/depends/libyarn/src/records/ResourceRequest.h
index df96187..1a24c5f 100644
--- a/depends/libyarn/src/records/ResourceRequest.h
+++ b/depends/libyarn/src/records/ResourceRequest.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 RESOURCEREQUEST_H_
 #define RESOURCEREQUEST_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/SerializedException.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/SerializedException.cpp b/depends/libyarn/src/records/SerializedException.cpp
index 3a77489..8cb5023 100644
--- a/depends/libyarn/src/records/SerializedException.cpp
+++ b/depends/libyarn/src/records/SerializedException.cpp
@@ -1,8 +1,20 @@
 /*
- * SerializedException.cpp
- *
- *  Created on: Jul 31, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "SerializedException.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/SerializedException.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/SerializedException.h b/depends/libyarn/src/records/SerializedException.h
index b8ae64e..87b0948 100644
--- a/depends/libyarn/src/records/SerializedException.h
+++ b/depends/libyarn/src/records/SerializedException.h
@@ -1,8 +1,20 @@
 /*
- * SerializedException.h
- *
- *  Created on: Jul 31, 2014
- *      Author: bwang
+ * 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 SERIALIZEDEXCEPTION_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StrictPreemptionContract.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StrictPreemptionContract.cpp b/depends/libyarn/src/records/StrictPreemptionContract.cpp
index 5808e6e..49366cb 100644
--- a/depends/libyarn/src/records/StrictPreemptionContract.cpp
+++ b/depends/libyarn/src/records/StrictPreemptionContract.cpp
@@ -1,10 +1,23 @@
 /*
- * StrictPreemptionContract.cpp
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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.
  */
 
+
 #include "StrictPreemptionContract.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StrictPreemptionContract.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StrictPreemptionContract.h b/depends/libyarn/src/records/StrictPreemptionContract.h
index ce9364a..7251e82 100644
--- a/depends/libyarn/src/records/StrictPreemptionContract.h
+++ b/depends/libyarn/src/records/StrictPreemptionContract.h
@@ -1,8 +1,20 @@
 /*
- * StrictPreemptionContract.h
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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 STRICTPREEMPTIONCONTRACT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StringBytesMap.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringBytesMap.cpp b/depends/libyarn/src/records/StringBytesMap.cpp
index e2a3d14..e65f1e7 100644
--- a/depends/libyarn/src/records/StringBytesMap.cpp
+++ b/depends/libyarn/src/records/StringBytesMap.cpp
@@ -1,10 +1,23 @@
 /*
- * StringBytesMap.cpp
- *
- *  Created on: Jul 22, 2014
- *      Author: jcao
+ * 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.
  */
 
+
 #include "StringBytesMap.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StringBytesMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringBytesMap.h b/depends/libyarn/src/records/StringBytesMap.h
index 656e8ca..2b4e30a 100644
--- a/depends/libyarn/src/records/StringBytesMap.h
+++ b/depends/libyarn/src/records/StringBytesMap.h
@@ -1,8 +1,20 @@
 /*
- * StringBytesMap.h
- *
- *  Created on: Jul 22, 2014
- *      Author: jcao
+ * 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 STRINGBYTESMAP_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StringLocalResourceMap.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringLocalResourceMap.cpp b/depends/libyarn/src/records/StringLocalResourceMap.cpp
index 1d0d4bf..91b3840 100644
--- a/depends/libyarn/src/records/StringLocalResourceMap.cpp
+++ b/depends/libyarn/src/records/StringLocalResourceMap.cpp
@@ -1,10 +1,23 @@
 /*
- * StringLocalResourceMap.cpp
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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.
  */
 
+
 #include "StringLocalResourceMap.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StringLocalResourceMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringLocalResourceMap.h b/depends/libyarn/src/records/StringLocalResourceMap.h
index c20d326..913c28a 100644
--- a/depends/libyarn/src/records/StringLocalResourceMap.h
+++ b/depends/libyarn/src/records/StringLocalResourceMap.h
@@ -1,8 +1,20 @@
 /*
- * StringLocalResourceMap.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 STRINGLOCALRESOURCEMAP_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StringStringMap.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringStringMap.cpp b/depends/libyarn/src/records/StringStringMap.cpp
index 618b423..98191ae 100644
--- a/depends/libyarn/src/records/StringStringMap.cpp
+++ b/depends/libyarn/src/records/StringStringMap.cpp
@@ -1,8 +1,20 @@
 /*
- * StringStringMap.cpp
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "StringStringMap.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/StringStringMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringStringMap.h b/depends/libyarn/src/records/StringStringMap.h
index 1fbdb08..bdbfe9d 100644
--- a/depends/libyarn/src/records/StringStringMap.h
+++ b/depends/libyarn/src/records/StringStringMap.h
@@ -1,8 +1,20 @@
 /*
- * StringStringMap.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 STRINGSTRINGMAP_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Token.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Token.cpp b/depends/libyarn/src/records/Token.cpp
index 951d935..f4dc01b 100644
--- a/depends/libyarn/src/records/Token.cpp
+++ b/depends/libyarn/src/records/Token.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "Token.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Token.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Token.h b/depends/libyarn/src/records/Token.h
index 72a75fc..0d5486b 100644
--- a/depends/libyarn/src/records/Token.h
+++ b/depends/libyarn/src/records/Token.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 TOKEN_H_
 #define TOKEN_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/URL.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/URL.cpp b/depends/libyarn/src/records/URL.cpp
index 927fa74..acbfc5e 100644
--- a/depends/libyarn/src/records/URL.cpp
+++ b/depends/libyarn/src/records/URL.cpp
@@ -1,8 +1,20 @@
 /*
- * URL.cpp
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "URL.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/URL.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/URL.h b/depends/libyarn/src/records/URL.h
index e46f56b..5a90958 100644
--- a/depends/libyarn/src/records/URL.h
+++ b/depends/libyarn/src/records/URL.h
@@ -1,8 +1,20 @@
 /*
- * URL.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 URL_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/YarnApplicationState.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/YarnApplicationState.h b/depends/libyarn/src/records/YarnApplicationState.h
index 8856107..1ef9541 100644
--- a/depends/libyarn/src/records/YarnApplicationState.h
+++ b/depends/libyarn/src/records/YarnApplicationState.h
@@ -1,8 +1,20 @@
 /*
- * YarnApplicationState.h
- *
- *  Created on: Jul 9, 2014
- *      Author: bwang
+ * 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 YARNAPPLICATIONSTATE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/YarnClusterMetrics.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/YarnClusterMetrics.cpp b/depends/libyarn/src/records/YarnClusterMetrics.cpp
index 0dfc1d8..b867e0c 100644
--- a/depends/libyarn/src/records/YarnClusterMetrics.cpp
+++ b/depends/libyarn/src/records/YarnClusterMetrics.cpp
@@ -1,10 +1,23 @@
 /*
- * YarnClusterMetrics.cpp
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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.
  */
 
+
 #include "YarnClusterMetrics.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/YarnClusterMetrics.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/YarnClusterMetrics.h b/depends/libyarn/src/records/YarnClusterMetrics.h
index 63d21f1..25256d0 100644
--- a/depends/libyarn/src/records/YarnClusterMetrics.h
+++ b/depends/libyarn/src/records/YarnClusterMetrics.h
@@ -1,10 +1,23 @@
 /*
- * YarnClusterMetrics.h
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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 YARNCLUSTERMETRICS_H_
 #define YARNCLUSTERMETRICS_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcAuth.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcAuth.cpp b/depends/libyarn/src/rpc/RpcAuth.cpp
index 2ad6ce1..0c21239 100644
--- a/depends/libyarn/src/rpc/RpcAuth.cpp
+++ b/depends/libyarn/src/rpc/RpcAuth.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "RpcAuth.h"
 
 #include "Exception.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcAuth.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcAuth.h b/depends/libyarn/src/rpc/RpcAuth.h
index 5fdc5b8..c4c3868 100644
--- a/depends/libyarn/src/rpc/RpcAuth.h
+++ b/depends/libyarn/src/rpc/RpcAuth.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCAUTH_H_
 #define _HDFS_LIBHDFS3_RPC_RPCAUTH_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcCall.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcCall.h b/depends/libyarn/src/rpc/RpcCall.h
index 864eefc..fb001c5 100644
--- a/depends/libyarn/src/rpc/RpcCall.h
+++ b/depends/libyarn/src/rpc/RpcCall.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCCALL_H_
 #define _HDFS_LIBHDFS3_RPC_RPCCALL_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcChannel.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcChannel.cpp b/depends/libyarn/src/rpc/RpcChannel.cpp
index a688d7b..81d11d1 100644
--- a/depends/libyarn/src/rpc/RpcChannel.cpp
+++ b/depends/libyarn/src/rpc/RpcChannel.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Exception.h"
 #include "ExceptionInternal.h"
 #include "YARNIpcConnectionContext.pb.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcChannel.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcChannel.h b/depends/libyarn/src/rpc/RpcChannel.h
index 4c91c4e..5a63f57 100644
--- a/depends/libyarn/src/rpc/RpcChannel.h
+++ b/depends/libyarn/src/rpc/RpcChannel.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCCHANNEL_H_
 #define _HDFS_LIBHDFS3_RPC_RPCCHANNEL_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcChannelKey.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcChannelKey.cpp b/depends/libyarn/src/rpc/RpcChannelKey.cpp
index 3e354d7..fc1005f 100644
--- a/depends/libyarn/src/rpc/RpcChannelKey.cpp
+++ b/depends/libyarn/src/rpc/RpcChannelKey.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "RpcChannelKey.h"
 
 #include <vector>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcChannelKey.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcChannelKey.h b/depends/libyarn/src/rpc/RpcChannelKey.h
index a0a9038..53aae56 100644
--- a/depends/libyarn/src/rpc/RpcChannelKey.h
+++ b/depends/libyarn/src/rpc/RpcChannelKey.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCCHANNELKEY_H_
 #define _HDFS_LIBHDFS3_RPC_RPCCHANNELKEY_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcClient.cpp b/depends/libyarn/src/rpc/RpcClient.cpp
index cbf9ab3..ae93edc 100644
--- a/depends/libyarn/src/rpc/RpcClient.cpp
+++ b/depends/libyarn/src/rpc/RpcClient.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Exception.h"
 #include "ExceptionInternal.h"
 #include "Logger.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcClient.h b/depends/libyarn/src/rpc/RpcClient.h
index bac6141..4eb6ffa 100644
--- a/depends/libyarn/src/rpc/RpcClient.h
+++ b/depends/libyarn/src/rpc/RpcClient.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCCLIENT_H_
 #define _HDFS_LIBHDFS3_RPC_RPCCLIENT_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcConfig.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcConfig.cpp b/depends/libyarn/src/rpc/RpcConfig.cpp
index 97fbfd6..4f28743 100644
--- a/depends/libyarn/src/rpc/RpcConfig.cpp
+++ b/depends/libyarn/src/rpc/RpcConfig.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "RpcConfig.h"
 
 #include <vector>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcConfig.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcConfig.h b/depends/libyarn/src/rpc/RpcConfig.h
index e95dc3b..70bd985 100644
--- a/depends/libyarn/src/rpc/RpcConfig.h
+++ b/depends/libyarn/src/rpc/RpcConfig.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCCONFIG_H_
 #define _HDFS_LIBHDFS3_RPC_RPCCONFIG_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcContentWrapper.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcContentWrapper.cpp b/depends/libyarn/src/rpc/RpcContentWrapper.cpp
index a6f5ee3..f0f478b 100644
--- a/depends/libyarn/src/rpc/RpcContentWrapper.cpp
+++ b/depends/libyarn/src/rpc/RpcContentWrapper.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include <google/protobuf/io/coded_stream.h>
 
 #include "RpcContentWrapper.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcContentWrapper.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcContentWrapper.h b/depends/libyarn/src/rpc/RpcContentWrapper.h
index 3d045a0..f4185c8 100644
--- a/depends/libyarn/src/rpc/RpcContentWrapper.h
+++ b/depends/libyarn/src/rpc/RpcContentWrapper.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCCONTENTWRAPPER_H_
 #define _HDFS_LIBHDFS3_RPC_RPCCONTENTWRAPPER_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcProtocolInfo.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcProtocolInfo.cpp b/depends/libyarn/src/rpc/RpcProtocolInfo.cpp
index 6fd7116..a34f698 100644
--- a/depends/libyarn/src/rpc/RpcProtocolInfo.cpp
+++ b/depends/libyarn/src/rpc/RpcProtocolInfo.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "RpcProtocolInfo.h"
 
 namespace Yarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcProtocolInfo.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcProtocolInfo.h b/depends/libyarn/src/rpc/RpcProtocolInfo.h
index a495066..b12ca0c 100644
--- a/depends/libyarn/src/rpc/RpcProtocolInfo.h
+++ b/depends/libyarn/src/rpc/RpcProtocolInfo.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCPROTOCOLINFO_H_
 #define _HDFS_LIBHDFS3_RPC_RPCPROTOCOLINFO_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcRemoteCall.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcRemoteCall.cpp b/depends/libyarn/src/rpc/RpcRemoteCall.cpp
index a5e0a17..693c1c8 100644
--- a/depends/libyarn/src/rpc/RpcRemoteCall.cpp
+++ b/depends/libyarn/src/rpc/RpcRemoteCall.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Memory.h"
 #include "YARNProtobufRpcEngine.pb.h"
 #include "RpcCall.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcRemoteCall.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcRemoteCall.h b/depends/libyarn/src/rpc/RpcRemoteCall.h
index b5c5789..1d067f8 100644
--- a/depends/libyarn/src/rpc/RpcRemoteCall.h
+++ b/depends/libyarn/src/rpc/RpcRemoteCall.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCREMOTECALL_
 #define _HDFS_LIBHDFS3_RPC_RPCREMOTECALL_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcServerInfo.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcServerInfo.cpp b/depends/libyarn/src/rpc/RpcServerInfo.cpp
index bcf9d14..40db2d1 100644
--- a/depends/libyarn/src/rpc/RpcServerInfo.cpp
+++ b/depends/libyarn/src/rpc/RpcServerInfo.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "RpcServerInfo.h"
 
 #include <string>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/RpcServerInfo.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/RpcServerInfo.h b/depends/libyarn/src/rpc/RpcServerInfo.h
index 42da9e2..5812750 100644
--- a/depends/libyarn/src/rpc/RpcServerInfo.h
+++ b/depends/libyarn/src/rpc/RpcServerInfo.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_RPCSERVERINFO_H_
 #define _HDFS_LIBHDFS3_RPC_RPCSERVERINFO_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/SaslClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/SaslClient.cpp b/depends/libyarn/src/rpc/SaslClient.cpp
index 14d5276..7773824 100644
--- a/depends/libyarn/src/rpc/SaslClient.cpp
+++ b/depends/libyarn/src/rpc/SaslClient.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include <algorithm>
 #include <cctype>
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/rpc/SaslClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/rpc/SaslClient.h b/depends/libyarn/src/rpc/SaslClient.h
index 0424b43..8956044 100644
--- a/depends/libyarn/src/rpc/SaslClient.h
+++ b/depends/libyarn/src/rpc/SaslClient.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_RPC_SASLCLIENT_H_
 #define _HDFS_LIBHDFS3_RPC_SASLCLIENT_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/sync.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/sync.sh b/depends/libyarn/sync.sh
old mode 100755
new mode 100644
index 39240ef..73e06f2
--- a/depends/libyarn/sync.sh
+++ b/depends/libyarn/sync.sh
@@ -1 +1,17 @@
+# 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.
 git status|grep modified|awk '{print $2}'|xargs -I{} scp {}  root@vm1:/root/libyarn/{}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/data/function-secure.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/data/function-secure.xml b/depends/libyarn/test/data/function-secure.xml
index 10a1548..587e590 100644
--- a/depends/libyarn/test/data/function-secure.xml
+++ b/depends/libyarn/test/data/function-secure.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <configuration>
 
 	<property>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/data/function-test.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/data/function-test.xml b/depends/libyarn/test/data/function-test.xml
index 69bfe3e..73ccc2d 100644
--- a/depends/libyarn/test/data/function-test.xml
+++ b/depends/libyarn/test/data/function-test.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <configuration>
 
 	<property>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/data/invalid.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/data/invalid.xml b/depends/libyarn/test/data/invalid.xml
index 22749b7..79ceaba 100644
--- a/depends/libyarn/test/data/invalid.xml
+++ b/depends/libyarn/test/data/invalid.xml
@@ -1,6 +1,26 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <configuration>
 
 	<property>
 		<name>hadoop.hdfs.configuration.version</name>
 		<value>1</value>
-		<description>version of this configuration file</description>
\ No newline at end of file
+		<description>version of this configuration file</description>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/data/invalidha.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/data/invalidha.xml b/depends/libyarn/test/data/invalidha.xml
index 99014a5..952448c 100644
--- a/depends/libyarn/test/data/invalidha.xml
+++ b/depends/libyarn/test/data/invalidha.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <configuration>
         <property>
                 <name>hadoop.security.authentication</name>
@@ -26,4 +46,4 @@
                 <name>dfs.client.failover.proxy.provider.phdcluster</name>
                 <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
         </property>
-</configuration>
\ No newline at end of file
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/data/unit-config.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/data/unit-config.xml b/depends/libyarn/test/data/unit-config.xml
index dbf0ed9..5cf3f37 100644
--- a/depends/libyarn/test/data/unit-config.xml
+++ b/depends/libyarn/test/data/unit-config.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <configuration>
 
 	<property>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/data/validha.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/data/validha.xml b/depends/libyarn/test/data/validha.xml
index 0e5eb58..4618d2e 100644
--- a/depends/libyarn/test/data/validha.xml
+++ b/depends/libyarn/test/data/validha.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <configuration>
         <property>
                 <name>hadoop.security.authentication</name>
@@ -32,4 +52,4 @@
                 <name>dfs.client.failover.proxy.provider.phdcluster</name>
                 <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
         </property>
-</configuration>
\ No newline at end of file
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/function/FunctionTestMain.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/function/FunctionTestMain.cpp b/depends/libyarn/test/function/FunctionTestMain.cpp
index a7de71a..713a16f 100644
--- a/depends/libyarn/test/function/FunctionTestMain.cpp
+++ b/depends/libyarn/test/function/FunctionTestMain.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "gtest/gtest.h"
 
 int main(int argc, char ** argv) {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/function/TestLibYarnClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/function/TestLibYarnClient.cpp b/depends/libyarn/test/function/TestLibYarnClient.cpp
index c19486d..a39377d 100644
--- a/depends/libyarn/test/function/TestLibYarnClient.cpp
+++ b/depends/libyarn/test/function/TestLibYarnClient.cpp
@@ -1,9 +1,22 @@
 /*
- * TestLibYarnClient.cpp
- *
- *  Created on: Mar 2, 2015
- *      Author: weikui
+ * 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.
  */
+
 #include "gtest/gtest.h"
 #include "libyarnclient/LibYarnClient.h"
 #include "records/FinalApplicationStatus.h"



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test/caqlaccess_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test/caqlaccess_test.c b/src/backend/catalog/caql/test/caqlaccess_test.c
index defb16d..add1fa1 100644
--- a/src/backend/catalog/caql/test/caqlaccess_test.c
+++ b/src/backend/catalog/caql/test/caqlaccess_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test/caqlanalyze_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test/caqlanalyze_test.c b/src/backend/catalog/caql/test/caqlanalyze_test.c
index 254db0a..cbf686e 100644
--- a/src/backend/catalog/caql/test/caqlanalyze_test.c
+++ b/src/backend/catalog/caql/test/caqlanalyze_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test/catquery_mock.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test/catquery_mock.c b/src/backend/catalog/caql/test/catquery_mock.c
index 09f7e4d..d59789a 100644
--- a/src/backend/catalog/caql/test/catquery_mock.c
+++ b/src/backend/catalog/caql/test/catquery_mock.c
@@ -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.
+ */
+
 #include <stdio.h>
 #include <stdarg.h>
 #include <stddef.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test/catquery_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test/catquery_test.c b/src/backend/catalog/caql/test/catquery_test.c
index f7576f2..0362d70 100644
--- a/src/backend/catalog/caql/test/catquery_test.c
+++ b/src/backend/catalog/caql/test/catquery_test.c
@@ -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.
+ */
+
 #include <stdio.h>
 #include <stdarg.h>
 #include <stddef.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test/gram_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test/gram_test.c b/src/backend/catalog/caql/test/gram_test.c
index 6fefb1c..78bc5a0 100644
--- a/src/backend/catalog/caql/test/gram_test.c
+++ b/src/backend/catalog/caql/test/gram_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test_discard/caqlanalyze_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test_discard/caqlanalyze_test.c b/src/backend/catalog/caql/test_discard/caqlanalyze_test.c
index 254db0a..cbf686e 100644
--- a/src/backend/catalog/caql/test_discard/caqlanalyze_test.c
+++ b/src/backend/catalog/caql/test_discard/caqlanalyze_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test_discard/catquery_mock.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test_discard/catquery_mock.c b/src/backend/catalog/caql/test_discard/catquery_mock.c
index 9249c1e..e7da8c2 100644
--- a/src/backend/catalog/caql/test_discard/catquery_mock.c
+++ b/src/backend/catalog/caql/test_discard/catquery_mock.c
@@ -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.
+ */
+
 #include <stdio.h>
 #include <stdarg.h>
 #include <stddef.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test_discard/catquery_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test_discard/catquery_test.c b/src/backend/catalog/caql/test_discard/catquery_test.c
index d76ef74..28d9338 100644
--- a/src/backend/catalog/caql/test_discard/catquery_test.c
+++ b/src/backend/catalog/caql/test_discard/catquery_test.c
@@ -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.
+ */
+
 #include <stdio.h>
 #include <stdarg.h>
 #include <stddef.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/test_discard/gram_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/test_discard/gram_test.c b/src/backend/catalog/caql/test_discard/gram_test.c
index 6fefb1c..78bc5a0 100644
--- a/src/backend/catalog/caql/test_discard/gram_test.c
+++ b/src/backend/catalog/caql/test_discard/gram_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/core/catcore.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/core/catcore.c b/src/backend/catalog/core/catcore.c
index dabff06..07502dc 100644
--- a/src/backend/catalog/core/catcore.c
+++ b/src/backend/catalog/core/catcore.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * catcore.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/core/catcoregen.py
----------------------------------------------------------------------
diff --git a/src/backend/catalog/core/catcoregen.py b/src/backend/catalog/core/catcoregen.py
old mode 100755
new mode 100644
index 2c07df4..1c725fe
--- a/src/backend/catalog/core/catcoregen.py
+++ b/src/backend/catalog/core/catcoregen.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.
 
 # -----------------------------------------------------------------
 # catcoregen.py

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/core/catheader.py
----------------------------------------------------------------------
diff --git a/src/backend/catalog/core/catheader.py b/src/backend/catalog/core/catheader.py
index 8d10bab..0d23fc5 100644
--- a/src/backend/catalog/core/catheader.py
+++ b/src/backend/catalog/core/catheader.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 re
 import os

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/core/test/catcore_test.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/core/test/catcore_test.c b/src/backend/catalog/core/test/catcore_test.c
index 3e679fc..fc0b593 100644
--- a/src/backend/catalog/core/test/catcore_test.c
+++ b/src/backend/catalog/core/test/catcore_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/gp_fastsequence.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/gp_fastsequence.c b/src/backend/catalog/gp_fastsequence.c
index bb2dc81..2284aa7 100644
--- a/src/backend/catalog/gp_fastsequence.c
+++ b/src/backend/catalog/gp_fastsequence.c
@@ -1,14 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * gp_fastsequence.c
  *    routines to maintain a light-weight sequence table.
  *
- * Copyright (c) 2009, Greenplum Inc.
- *
- * $Id: $
- * $Change: $
- * $DateTime: $
- * $Author: $
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/gp_global_sequence.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/gp_global_sequence.c b/src/backend/catalog/gp_global_sequence.c
index b27fffb..4620ce7 100755
--- a/src/backend/catalog/gp_global_sequence.c
+++ b/src/backend/catalog/gp_global_sequence.c
@@ -1,9 +1,25 @@
+/*
+ * 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_global_sequence.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/gp_persistent.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/gp_persistent.c b/src/backend/catalog/gp_persistent.c
index b48298e..cb5120b 100755
--- a/src/backend/catalog/gp_persistent.c
+++ b/src/backend/catalog/gp_persistent.c
@@ -1,9 +1,25 @@
+/*
+ * 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_persistent.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/hcatalog/externalmd.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/hcatalog/externalmd.c b/src/backend/catalog/hcatalog/externalmd.c
index e878f2d..a8b723f 100644
--- a/src/backend/catalog/hcatalog/externalmd.c
+++ b/src/backend/catalog/hcatalog/externalmd.c
@@ -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.c
  *
  *  Created on: Mar 6, 2015
@@ -7,8 +25,6 @@
  *
  *		Utilities for loading external hcatalog metadata
  *
- *      Copyright (c), 2015, Pivotal Inc.
- *      
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbanalyze.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbanalyze.c b/src/backend/cdb/cdbanalyze.c
index e14379b..d94d4b6 100644
--- a/src/backend/cdb/cdbanalyze.c
+++ b/src/backend/cdb/cdbanalyze.c
@@ -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.c
  *	  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/backend/cdb/cdbappendonlystorage.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbappendonlystorage.c b/src/backend/cdb/cdbappendonlystorage.c
index 0df5dd3..e81d8f7 100644
--- a/src/backend/cdb/cdbappendonlystorage.c
+++ b/src/backend/cdb/cdbappendonlystorage.c
@@ -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.c
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbappendonlystorageformat.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbappendonlystorageformat.c b/src/backend/cdb/cdbappendonlystorageformat.c
old mode 100755
new mode 100644
index c460cd8..1aa5af8
--- a/src/backend/cdb/cdbappendonlystorageformat.c
+++ b/src/backend/cdb/cdbappendonlystorageformat.c
@@ -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.c
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbappendonlystorageread.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbappendonlystorageread.c b/src/backend/cdb/cdbappendonlystorageread.c
old mode 100755
new mode 100644
index 2865f52..edd7696
--- a/src/backend/cdb/cdbappendonlystorageread.c
+++ b/src/backend/cdb/cdbappendonlystorageread.c
@@ -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.c
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbappendonlystoragewrite.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbappendonlystoragewrite.c b/src/backend/cdb/cdbappendonlystoragewrite.c
old mode 100755
new mode 100644
index d175d77..12019e1
--- a/src/backend/cdb/cdbappendonlystoragewrite.c
+++ b/src/backend/cdb/cdbappendonlystoragewrite.c
@@ -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.c
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbbackup.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbbackup.c b/src/backend/cdb/cdbbackup.c
index 3f572e3..9c410de 100644
--- a/src/backend/cdb/cdbbackup.c
+++ b/src/backend/cdb/cdbbackup.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbbackup.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbbufferedappend.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbbufferedappend.c b/src/backend/cdb/cdbbufferedappend.c
index 429a07e..1a575ed 100644
--- a/src/backend/cdb/cdbbufferedappend.c
+++ b/src/backend/cdb/cdbbufferedappend.c
@@ -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.c
@@ -5,8 +24,6 @@
  *
  * (See .h file for usage comments)
  *
- * Copyright (c) 2007, greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "cdb/cdbbufferedappend.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbbufferedread.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbbufferedread.c b/src/backend/cdb/cdbbufferedread.c
index 30dde37..f1915d8 100644
--- a/src/backend/cdb/cdbbufferedread.c
+++ b/src/backend/cdb/cdbbufferedread.c
@@ -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.c
@@ -5,8 +24,6 @@
  *
  * (See .h file for usage comments)
  *
- * Copyright (c) 2007, greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "cdb/cdbbufferedread.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbcat.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbcat.c b/src/backend/cdb/cdbcat.c
index 56fe665..138c530 100644
--- a/src/backend/cdb/cdbcat.c
+++ b/src/backend/cdb/cdbcat.c
@@ -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.c
  *	  Provides routines for reading info from mpp schema tables
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbchunkpool.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbchunkpool.c b/src/backend/cdb/cdbchunkpool.c
index 6203d87..0bb304c 100644
--- a/src/backend/cdb/cdbchunkpool.c
+++ b/src/backend/cdb/cdbchunkpool.c
@@ -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.c
@@ -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
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbconn.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbconn.c b/src/backend/cdb/cdbconn.c
index fe7034c..81b671b 100644
--- a/src/backend/cdb/cdbconn.c
+++ b/src/backend/cdb/cdbconn.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbconn.c
  *
  * SegmentDatabaseDescriptor methods
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbcopy.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbcopy.c b/src/backend/cdb/cdbcopy.c
index 8692e7b..a870d91 100644
--- a/src/backend/cdb/cdbcopy.c
+++ b/src/backend/cdb/cdbcopy.c
@@ -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.c
@@ -5,8 +24,6 @@
 *	 routines are called from the backend COPY command whenever MPP is in the
 *	 default dispatch mode.
 *
-* Copyright (c) 2005-2008, Greenplum inc
-*
 *--------------------------------------------------------------------------
 */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdatabaseinfo.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdatabaseinfo.c b/src/backend/cdb/cdbdatabaseinfo.c
old mode 100755
new mode 100644
index 45ecab0..31d892d
--- a/src/backend/cdb/cdbdatabaseinfo.c
+++ b/src/backend/cdb/cdbdatabaseinfo.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdatabaseinfo.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "c.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdatalocality.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdatalocality.c b/src/backend/cdb/cdbdatalocality.c
index c9b6fd2..ae21324 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -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.c
  *	  Manages data locality.
  *
- * Copyright (c) 2014, Pivotal Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdirectopen.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdirectopen.c b/src/backend/cdb/cdbdirectopen.c
old mode 100755
new mode 100644
index 6670a10..3af143a
--- a/src/backend/cdb/cdbdirectopen.c
+++ b/src/backend/cdb/cdbdirectopen.c
@@ -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.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdisp.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdisp.c b/src/backend/cdb/cdbdisp.c
index 3248d55..e7e0607 100644
--- a/src/backend/cdb/cdbdisp.c
+++ b/src/backend/cdb/cdbdisp.c
@@ -1,11 +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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdisp.c
  *	  Functions to dispatch commands to QExecutors.
  *
- *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdispatchedtablespaceinfo.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdispatchedtablespaceinfo.c b/src/backend/cdb/cdbdispatchedtablespaceinfo.c
index 029ea61..b3ffef0 100644
--- a/src/backend/cdb/cdbdispatchedtablespaceinfo.c
+++ b/src/backend/cdb/cdbdispatchedtablespaceinfo.c
@@ -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.c
  *
- * Copyright (c) 2009-2012, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdispatchresult.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdispatchresult.c b/src/backend/cdb/cdbdispatchresult.c
index 88d65b0..b036b26 100644
--- a/src/backend/cdb/cdbdispatchresult.c
+++ b/src/backend/cdb/cdbdispatchresult.c
@@ -1,11 +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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdispatchresult.c
  *    Functions to dispatch commands to QExecutors
  *
- *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdistributedxacts.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdistributedxacts.c b/src/backend/cdb/cdbdistributedxacts.c
index f1b08c9..3d3ed35 100644
--- a/src/backend/cdb/cdbdistributedxacts.c
+++ b/src/backend/cdb/cdbdistributedxacts.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdistributedxacts.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdistributedxid.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdistributedxid.c b/src/backend/cdb/cdbdistributedxid.c
index 01787c8..85e8638 100644
--- a/src/backend/cdb/cdbdistributedxid.c
+++ b/src/backend/cdb/cdbdistributedxid.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdistributedxid.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbdistributedxidmap.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdistributedxidmap.c b/src/backend/cdb/cdbdistributedxidmap.c
index c9ee15e..10a43c6 100644
--- a/src/backend/cdb/cdbdistributedxidmap.c
+++ b/src/backend/cdb/cdbdistributedxidmap.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbdistributedxidmap.c
@@ -15,8 +34,6 @@
  * currently-active pages of DistributedXidMap and create an initial first page
  * of zeroes.
  *
- * Copyright (c) 2007-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbexplain.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbexplain.c b/src/backend/cdb/cdbexplain.c
index 441a286..43d2b32 100644
--- a/src/backend/cdb/cdbexplain.c
+++ b/src/backend/cdb/cdbexplain.c
@@ -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.c
  *    Functions supporting the Greenplum EXPLAIN ANALYZE command
  *
- * Copyright (c) 2006-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbfilerep.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbfilerep.c b/src/backend/cdb/cdbfilerep.c
index 6fefce2..68258a8 100644
--- a/src/backend/cdb/cdbfilerep.c
+++ b/src/backend/cdb/cdbfilerep.c
@@ -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.
+ */
+
 
 #include "cdb/cdbfilerep.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbfilesplit.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbfilesplit.c b/src/backend/cdb/cdbfilesplit.c
index 16a8308..78beaaa 100644
--- a/src/backend/cdb/cdbfilesplit.c
+++ b/src/backend/cdb/cdbfilesplit.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
 *
 * filesplit.c
 *	  routines for file split.
 *
-* Portions Copyright (c) 2014, Pivotal Inc.
 *-------------------------------------------------------------------------
 */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbfilesystemcredential.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbfilesystemcredential.c b/src/backend/cdb/cdbfilesystemcredential.c
index 9d3035f..4e516d0 100644
--- a/src/backend/cdb/cdbfilesystemcredential.c
+++ b/src/backend/cdb/cdbfilesystemcredential.c
@@ -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.c
  *	  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/backend/cdb/cdbfts.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbfts.c b/src/backend/cdb/cdbfts.c
index 6c441fd..53d6509 100644
--- a/src/backend/cdb/cdbfts.c
+++ b/src/backend/cdb/cdbfts.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbfts.c
  *	  Provides fault tolerance service routines for mpp.
  *
- * Copyright (c) 2003-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbgang.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbgang.c b/src/backend/cdb/cdbgang.c
index 98c5aec..4a9d7ab 100644
--- a/src/backend/cdb/cdbgang.c
+++ b/src/backend/cdb/cdbgang.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbgang.c
  *	  Query Executor Factory for gangs of QEs
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbgroup.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbgroup.c b/src/backend/cdb/cdbgroup.c
index de6e807..09b3da8 100644
--- a/src/backend/cdb/cdbgroup.c
+++ b/src/backend/cdb/cdbgroup.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbgroup.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbhash.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbhash.c b/src/backend/cdb/cdbhash.c
index cd581e9..f2bd6a7 100644
--- a/src/backend/cdb/cdbhash.c
+++ b/src/backend/cdb/cdbhash.c
@@ -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.
+ */
+
 /*--------------------------------------------------------------------------
  *
  * cdbhash.c
  *	  Provides hashing routines to support consistant data distribution/location within Greenplum Database.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *--------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbheap.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbheap.c b/src/backend/cdb/cdbheap.c
index 56fdc6c..f112dbd 100644
--- a/src/backend/cdb/cdbheap.c
+++ b/src/backend/cdb/cdbheap.c
@@ -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.c
@@ -5,8 +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/backend/cdb/cdbinmemheapam.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbinmemheapam.c b/src/backend/cdb/cdbinmemheapam.c
index 096bad8..7f15790 100644
--- a/src/backend/cdb/cdbinmemheapam.c
+++ b/src/backend/cdb/cdbinmemheapam.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbinmemheapam.c
  * 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/backend/cdb/cdblink.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdblink.c b/src/backend/cdb/cdblink.c
index 227db2b..fb7d2f0 100644
--- a/src/backend/cdb/cdblink.c
+++ b/src/backend/cdb/cdblink.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdblink.c
  *
  *	  Setting up libpq connections to qRxecs from Dispatcher
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #define PROVIDE_64BIT_CRC

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbllize.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbllize.c b/src/backend/cdb/cdbllize.c
index 3a3e1f2..393e6bb 100644
--- a/src/backend/cdb/cdbllize.c
+++ b/src/backend/cdb/cdbllize.c
@@ -1,12 +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.c
  *	  Parallelize a PostgreSQL sequential plan tree.
  *
- * Copyright (c) 2005-2008, Greenplum inc
- *
- * NOTES
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdblogsync.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdblogsync.c b/src/backend/cdb/cdblogsync.c
index ecb10e7..c2c6a0a 100644
--- a/src/backend/cdb/cdblogsync.c
+++ b/src/backend/cdb/cdblogsync.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *	cdbtmtest.c
  *-------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbmaxdistributedxid.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmaxdistributedxid.c b/src/backend/cdb/cdbmaxdistributedxid.c
index f008b14..49b450b 100644
--- a/src/backend/cdb/cdbmaxdistributedxid.c
+++ b/src/backend/cdb/cdbmaxdistributedxid.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmaxdistributedxid.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbmetadatacache.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmetadatacache.c b/src/backend/cdb/cdbmetadatacache.c
index e40b56b..72be266 100644
--- a/src/backend/cdb/cdbmetadatacache.c
+++ b/src/backend/cdb/cdbmetadatacache.c
@@ -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.
+ */
+
 #include <unistd.h>
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbmetadatacache_process.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmetadatacache_process.c b/src/backend/cdb/cdbmetadatacache_process.c
index 40b654e..df4bbac 100644
--- a/src/backend/cdb/cdbmetadatacache_process.c
+++ b/src/backend/cdb/cdbmetadatacache_process.c
@@ -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.
+ */
+
 #include <unistd.h>
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbmetadatacache_test.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmetadatacache_test.c b/src/backend/cdb/cdbmetadatacache_test.c
index 4563149..20527cd 100644
--- a/src/backend/cdb/cdbmetadatacache_test.c
+++ b/src/backend/cdb/cdbmetadatacache_test.c
@@ -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.
+ */
+
 #include <unistd.h>
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbmirroredappendonly.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmirroredappendonly.c b/src/backend/cdb/cdbmirroredappendonly.c
old mode 100755
new mode 100644
index fae5624..b0c3c76
--- a/src/backend/cdb/cdbmirroredappendonly.c
+++ b/src/backend/cdb/cdbmirroredappendonly.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmirroredappendonly.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/cdb/cdbmirroredfilesysobj.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmirroredfilesysobj.c b/src/backend/cdb/cdbmirroredfilesysobj.c
old mode 100755
new mode 100644
index ca389bc..218e7c0
--- a/src/backend/cdb/cdbmirroredfilesysobj.c
+++ b/src/backend/cdb/cdbmirroredfilesysobj.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * cdbmirroredfilesysobj.c
  *	  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/backend/cdb/cdbmirroredflatfile.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmirroredflatfile.c b/src/backend/cdb/cdbmirroredflatfile.c
old mode 100755
new mode 100644
index 44185da..ade15ca
--- a/src/backend/cdb/cdbmirroredflatfile.c
+++ b/src/backend/cdb/cdbmirroredflatfile.c
@@ -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.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp b/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
index 4c48bab..5a5c879 100644
--- a/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
+++ b/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
@@ -1,8 +1,20 @@
 /*
- * TestMockApplicationClientProtocol.cpp
- *
- *  Created on: Mar 5, 2015
- *      Author: weikui
+ * 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.
  */
 
 #include "gtest/gtest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp b/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
index 1000085..a3606f6 100644
--- a/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
+++ b/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
@@ -1,8 +1,20 @@
 /*
- * TestMockApplicationMasterProtocol.cpp
- *
- *  Created on: Mar 9, 2015
- *      Author: weikui
+ * 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.
  */
 
 #include "gtest/gtest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/secure/FunctionTestSecureMain.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/secure/FunctionTestSecureMain.cpp b/depends/libyarn/test/secure/FunctionTestSecureMain.cpp
index a7de71a..713a16f 100644
--- a/depends/libyarn/test/secure/FunctionTestSecureMain.cpp
+++ b/depends/libyarn/test/secure/FunctionTestSecureMain.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "gtest/gtest.h"
 
 int main(int argc, char ** argv) {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/secure/SecureFunctionTest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/secure/SecureFunctionTest.cpp b/depends/libyarn/test/secure/SecureFunctionTest.cpp
index fe5f084..fcbbcc7 100644
--- a/depends/libyarn/test/secure/SecureFunctionTest.cpp
+++ b/depends/libyarn/test/secure/SecureFunctionTest.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "client/FileSystem.h"
 #include "client/FileSystemInter.h"
 #include "client/InputStream.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/unit/TestApplicationClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestApplicationClient.cpp b/depends/libyarn/test/unit/TestApplicationClient.cpp
index 0bb35a4..5cb752c 100644
--- a/depends/libyarn/test/unit/TestApplicationClient.cpp
+++ b/depends/libyarn/test/unit/TestApplicationClient.cpp
@@ -1,9 +1,22 @@
 /*
- * TestApplicationClient.cpp
- *
- *  Created on: Mar 6, 2015
- *      Author: weikui
+ * 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.
  */
+
 #include "gtest/gtest.h"
 #include "gmock/gmock.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/unit/TestApplicationMaster.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestApplicationMaster.cpp b/depends/libyarn/test/unit/TestApplicationMaster.cpp
index ccfa8f9..f9ebf2e 100644
--- a/depends/libyarn/test/unit/TestApplicationMaster.cpp
+++ b/depends/libyarn/test/unit/TestApplicationMaster.cpp
@@ -1,9 +1,22 @@
 /*
- * TestApplicationMaster.cpp
- *
- *  Created on: Mar 9, 2015
- *      Author: weikui
+ * 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.
  */
+
 #include "gtest/gtest.h"
 #include "gmock/gmock.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/unit/TestContainerManagement.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestContainerManagement.cpp b/depends/libyarn/test/unit/TestContainerManagement.cpp
index 7767429..64fc534 100644
--- a/depends/libyarn/test/unit/TestContainerManagement.cpp
+++ b/depends/libyarn/test/unit/TestContainerManagement.cpp
@@ -1,8 +1,20 @@
 /*
- * TestContainerManagement.cpp
- *
- *  Created on: Mar 9, 2015
- *      Author: weikui
+ * 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.
  */
 
 #include "gtest/gtest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/unit/TestLibYarnClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestLibYarnClient.cpp b/depends/libyarn/test/unit/TestLibYarnClient.cpp
index 0212241..c670491 100644
--- a/depends/libyarn/test/unit/TestLibYarnClient.cpp
+++ b/depends/libyarn/test/unit/TestLibYarnClient.cpp
@@ -1,8 +1,20 @@
 /*
- * TestLibYarnClient.cpp
- *
- *  Created on: Mar 11, 2015
- *      Author: weikui
+ * 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.
  */
 
 #include "gtest/gtest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/unit/TestLibYarnClientC.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestLibYarnClientC.cpp b/depends/libyarn/test/unit/TestLibYarnClientC.cpp
index 5b2ba9c..c854903 100644
--- a/depends/libyarn/test/unit/TestLibYarnClientC.cpp
+++ b/depends/libyarn/test/unit/TestLibYarnClientC.cpp
@@ -1,8 +1,20 @@
 /*
- * TestLibYarnClientC.cpp
- *
- *  Created on: Mar 17, 2015
- *      Author: weikui
+ * 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.
  */
 
 #include "gtest/gtest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/test/unit/UnitTestMain.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/UnitTestMain.cpp b/depends/libyarn/test/unit/UnitTestMain.cpp
index a7de71a..713a16f 100644
--- a/depends/libyarn/test/unit/UnitTestMain.cpp
+++ b/depends/libyarn/test/unit/UnitTestMain.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "gtest/gtest.h"
 
 int main(int argc, char ** argv) {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/c_client_main.c
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/c_client_main.c b/depends/libyarn/ztest/c_client_main.c
index 6fb292e..6ba35a6 100644
--- a/depends/libyarn/ztest/c_client_main.c
+++ b/depends/libyarn/ztest/c_client_main.c
@@ -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.
+ */
+
 #include <unistd.h>
 #include "libyarn/LibYarnClientC.h"
 #include "libyarn/LibYarnConstants.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/client_main.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/client_main.cpp b/depends/libyarn/ztest/client_main.cpp
index e35e47e..24601b7 100644
--- a/depends/libyarn/ztest/client_main.cpp
+++ b/depends/libyarn/ztest/client_main.cpp
@@ -1,9 +1,22 @@
 /*
- * mytest.cpp
- *
- *  Created on: Jun 12, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include <iostream>
 #include <list>
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/wangbo/Makefile
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/wangbo/Makefile b/depends/libyarn/ztest/wangbo/Makefile
deleted file mode 100644
index 5282151..0000000
--- a/depends/libyarn/ztest/wangbo/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-CC=g++ -g -Wall
-CPPFLAGS=-std=c++0x -I/usr/local/libyarn/include 
-LDFLAGS=-L/usr/local/libyarn/lib -lyarn
-
-
-
-bin = client_main  
-
-all: $(bin)
-	
-client_main: client_main.cpp
-	$(CC) $(CPPFLAGS) $(LDFLAGS) $^ -o $@	
-	
-	
-clean:
-	rm -rf $(bin) *.dSYM

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/wangbo/am_main.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/wangbo/am_main.cpp b/depends/libyarn/ztest/wangbo/am_main.cpp
deleted file mode 100644
index d30b9b6..0000000
--- a/depends/libyarn/ztest/wangbo/am_main.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * mytest.cpp
- *
- *  Created on: Jun 12, 2014
- *      Author: bwang
- */
-#include <iostream>
-#include <hdfs/ApplicationMaster.h>
-
-#include <iostream>
-#include "../build/src/YARN_yarn_service_protos.pb.h"
-using namespace libyarn;
-int main(void) {
-
-	std::string host("localhost");
-	std::string port("8099");
-	ApplicationMaster *amTest = new ApplicationMaster(
-			host, port);
-	amTest->registerApplicationMaster("localhost", 8098, "");
-
-	delete amTest;
-	return 0;
-}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/wangbo/client_main.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/wangbo/client_main.cpp b/depends/libyarn/ztest/wangbo/client_main.cpp
deleted file mode 100644
index 1c89d33..0000000
--- a/depends/libyarn/ztest/wangbo/client_main.cpp
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * mytest.cpp
- *
- *  Created on: Jun 12, 2014
- *      Author: bwang
- */
-#include <iostream>
-#include <list>
-
-#include <unistd.h>
-
-#include "libyarn/LibYarnClient.h"
-#include "libyarn/records/FinalApplicationStatus.h"
-
-using namespace std;
-using namespace libyarn;
-
-int main(void)
-{
-	string rmHost("localhost");
-	string rmPort("8032");
-	string schedHost("localhost");
-	string schedPort("8099");
-	string amHost("localhost");
-	int32_t amPort = 0;
-	string am_tracking_url("url");
-	LibYarnClient client(rmHost, rmPort, schedHost, schedPort, amHost, amPort, am_tracking_url);
-
-	//1. createJob
-	string jobName("libyarn");
-	string queue("default");
-	string jobId = client.createJob(jobName, queue);
-	cout<<"jobId:"<<jobId<<endl;
-
-	//2. allocate
-	ResourceRequest resRequest;
-	string host("*");
-	resRequest.setResourceName(host);
-
-	Resource capability;
-	capability.setVirtualCores(1);
-	capability.setMemory(1024);
-	resRequest.setCapability(capability);
-
-	resRequest.setNumContainers(3);
-
-	resRequest.setRelaxLocality(true);
-
-	Priority priority;
-	priority.setPriority(1);
-	resRequest.setPriority(priority);
-
-
-	string resGroupId("group_1");
-	list<string> blackListAdditions;
-	list<string> blackListRemovals;
-
-	list<Container> allocatedResources = client.allocateResources(jobId,
-				resGroupId, resRequest, blackListAdditions, blackListRemovals);
-
-	for (list<Container>::iterator it = allocatedResources.begin();
-			it != allocatedResources.end(); it++) {
-		cout << "allocate: host:" << (*it).getNodeId().getHost() << ", port:"
-				<< (*it).getNodeId().getPort() << ", cid:" << (*it).getId().getId()
-				<< ", vcores:" << (*it).getResource().getVirtualCores() << ", mem:"
-				<< (*it).getResource().getMemory() << endl;
-	}
-
-	//3. active
-	client.activeResources(jobId, resGroupId);
-
-	sleep(1);
-
-	//4. release
-	client.releaseResources(jobId, resGroupId);
-
-	sleep(2);
-
-	//5. getQueueInfo
-	QueueInfo queueInfo = client.getQueueInfo(queue, true, true, true);
-	cout << "queueName:" << queueInfo.getQueueName() << ", capacity:"
-			<< queueInfo.getCapacity() << ", maximumCapacity:"
-			<< queueInfo.getMaximumCapacity() << ", currentCapacity:"
-			<< queueInfo.getCurrentCapacity() << ", state:"
-			<< queueInfo.getQueueState() << endl;
-
-	//6. getCluster
-	list<NodeState> nodeStates;
-	nodeStates.push_back(NodeState::NS_RUNNING);
-	list<NodeReport> nodeReports = client.getClusterNodes(nodeStates);
-	for (list<NodeReport>::iterator it = nodeReports.begin(); it != nodeReports.end(); it++) {
-		cout << "host:" << it->getNodeId().getHost() << ", port:"
-				<< it->getNodeId().getPort() << ", httpAddress:" << it->getHttpAddress()
-				<< ", rackName:" << it->getRackName() << ", used:[vcore:"
-				<< it->getUsedResource().getVirtualCores() << ", mem:"
-				<< it->getUsedResource().getMemory() << "], capability:[vcore:"
-				<< it->getResourceCapability().getVirtualCores() << ", mem:"
-				<< it->getResourceCapability().getMemory() << "], numContainers:"
-				<< it->getNumContainers() << ", node_state:" << it->getNodeState()
-				<< ", health_report:" << it->getHealthReport()
-				<< ", last_health_report_time:" << it->getLastHealthReportTime()
-				<< endl;
-	}
-
-	//7. finish
-	cout << "to finish: jobId:" << jobId << endl;
-	client.finishJob(jobId, FinalApplicationStatus::APP_SUCCEEDED);
-
-	sleep(1);
-
-
-	return 0;
-}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/wangbo/newTest_main.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/wangbo/newTest_main.cpp b/depends/libyarn/ztest/wangbo/newTest_main.cpp
deleted file mode 100644
index 5811386..0000000
--- a/depends/libyarn/ztest/wangbo/newTest_main.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * newTest.cpp
- *
- *  Created on: Jul 10, 2014
- *      Author: bwang
- */
-
-#include "libyarn/Tess.h"
-#include <iostream>
-using namespace libyarn;
-int main(void) {
-	std::string host("localhost");
-	std::string port("8032");
-	Tess* t = new Tess();
-	t->run(host, port);
-	return 0;
-}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/wangbo/new_application_wang.c
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/wangbo/new_application_wang.c b/depends/libyarn/ztest/wangbo/new_application_wang.c
deleted file mode 100644
index 405041d..0000000
--- a/depends/libyarn/ztest/wangbo/new_application_wang.c
+++ /dev/null
@@ -1,181 +0,0 @@
-#include "hadoop_rpc_utils.h"
-#include "YARN_yarn_service_protos.pb-c.h"
-#include "net_utils.h"
-#include "str_utils.h"
-#include "log_utils.h"
-#include "hadoop_rpc_constants.h"
-#include "application_client_protocol.h"
-#include "application_master_protocol.h"
-#include "YARN_yarn_protos.pb-c.h"
-#include "libyarn_protocol.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stddef.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <stdbool.h>
-#include <string.h>
-#include <unistd.h>
-
-
-void printResource(Resource* resource) {
-	printf("id:%s\tcpu:%d\tmemory:%d\tstatus:%d\n", resource->id, resource->cpu,
-			resource->memory, resource->status);
-}
-
-void printResourceList(ResourceGroup resourceGroup) {
-
-	printf("Total Resource:%d\n (%s)\n", resourceGroup.resource_num, resourceGroup.groupId);
-	for (int i = 0; i < resourceGroup.resource_num; ++i) {
-		printResource(resourceGroup.resources[i]);
-	}
-}
-
-int main(int argc, char** argv) {
-    int rc;
-    char* s="date";
-    Hadoop__Yarn__StringLocalResourceMapProto* s1;
-    Hadoop__Yarn__StringBytesMapProto* s2;
-    Hadoop__Yarn__StringStringMapProto* s3;
-    Hadoop__Yarn__ApplicationACLMapProto* s4;
-    Hadoop__Yarn__NodeStateProto nodestateproto = HADOOP__YARN__NODE_STATE_PROTO__NS_RUNNING ;
-    Hadoop__Yarn__NodeReportProto** nodereportproto;
-    char* application_types;
-    Hadoop__Yarn__YarnApplicationStateProto application_states = HADOOP__YARN__YARN_APPLICATION_STATE_PROTO__KILLED;
-    Hadoop__Yarn__ApplicationReportProto **applications;
-
-    // setup proxy
-    hadoop_rpc_proxy_t* proxy = create_new_yarn_rpc_proxy(APPLICATION_CLIENT_PROTOCOL);
-    if (!proxy) {
-        printf("failed to create a new hadoop rpc proxy.\n");
-        return -1;
-    }
-
-    if (0 != (rc = setup_connection(proxy, argv[1], atoi(argv[2])))) {
-        printf("failed to connect to server.\n");
-        return -1;
-    }
-
-    // send get new application request
-    Hadoop__Yarn__GetNewApplicationResponseProto* response = getNewApplication(proxy);
-    if (!response) {
-        printf("failed to get new application from server.\n");
-        return -1;
-    }
-    printf("got new application, app-id=%d\n", response->application_id->id);
-
-
-/*  Hadoop__Yarn__ResourceProto resource = HADOOP__YARN__RESOURCE_PROTO__INIT;
-    resource.memory = 350;
-    resource.virtual_cores = 1;
-*/
-    Hadoop__Yarn__PriorityProto priority = HADOOP__YARN__PRIORITY_PROTO__INIT;
-    priority.priority=1;
-
-    Hadoop__Yarn__ContainerLaunchContextProto container = HADOOP__YARN__CONTAINER_LAUNCH_CONTEXT_PROTO__INIT;
-/*
-    Hadoop__Yarn__StringLocalResourceMapProto resourcemap = HADOOP__YARN__STRING_LOCAL_RESOURCE_MAP_PROTO__INIT;
-    Hadoop__Yarn__StringBytesMapProto tytesmap = HADOOP__YARN__STRING_BYTES_MAP_PROTO__INIT;
-    Hadoop__Yarn__StringStringMapProto stringmap = HADOOP__YARN__STRING_STRING_MAP_PROTO__INIT;
-    Hadoop__Yarn__ApplicationACLMapProto aclmap = HADOOP__YARN__APPLICATION_ACLMAP_PROTO__INIT;
-    container.command = &s;
-    s1 = &resourcemap;
-    s2 = &tytesmap;
-    s3 = &stringmap;
-    s4 = &aclmap;
-    //container.n_localresources= 250;
-    container.localresources = &s1;
-    container.application_acls = &s4;
-    container.service_data = &s2;
-    container.environment = &s3;
-*/
-    Hadoop__Yarn__ApplicationSubmissionContextProto context = HADOOP__YARN__APPLICATION_SUBMISSION_CONTEXT_PROTO__INIT;
-    context.application_id = response->application_id;
-    context.priority= &priority;
-    context.application_name="pivotal-bo";
-    context.am_container_spec= &container;
-    context.unmanaged_am = 1;
-    context.has_unmanaged_am = 1;
-    context.maxappattempts = 3;
-    context.applicationtype = "YARN";
-    context.queue = "default";
-    context.cancel_tokens_when_complete = 1;
-
-
-    Hadoop__Yarn__SubmitApplicationResponseProto* response3 = submitApplication(proxy,&context);
-    if(!response3){
-    	printf("failed to get new application from server.\n");
-    	return -1;
-    }
-    printf("submission success!\n");
-
-    Hadoop__Yarn__GetApplicationReportResponseProto* response4 = getApplicationReport(proxy, response->application_id);
-    if(!response4){
-    	printf("failed to get application report.\n");
-    	return -1;
-    }
-    printf("name is %s\n",response4->application_report->name);
-    printf("type is %s\n",response4->application_report->applicationtype);
-    printf("queue is %s\n",response4->application_report->queue);
-    printf("attempt id is %d\n",response4->application_report->currentapplicationattemptid->attemptid);
-
-/*    sleep(6);
-    Hadoop__Yarn__KillApplicationResponseProto* response5 = forceKillApplication(proxy, response->application_id);
-    if(!response5){
-    	printf("failed to get application report.\n");
-    	return -1;
-    }
-    printf("kill application success!\n");
-*/
-    Hadoop__Yarn__GetClusterMetricsResponseProto* response6 = getClusterMetrics(proxy);
-    if(!response6){
-        printf("failed to get cluster metrics.\n");
-        return -1;
-    }
-    printf("the number of node managers is %d\n",response6->cluster_metrics->num_node_managers);
-
-    Hadoop__Yarn__GetClusterNodesResponseProto* response7 = getClusterNodes(proxy, &nodestateproto);
-    if(!response7){
-        printf("failed to get cluster nodes.\n");
-        return -1;
-    }
-    printf("getclusternodes success!!!!\n");
-    nodereportproto = response7->nodereports;
-    printf("the address is %s\n", (* nodereportproto)->httpaddress);
-    printf("the nodeid is:%s\n",(* nodereportproto)->nodeid->host);
-    printf("the state is %d\n",(* nodereportproto)->node_state);
-
-    application_types="YARN";
-    Hadoop__Yarn__GetApplicationsResponseProto* response8 = getApplications(proxy, application_types, &application_states);
-    applications = response8->applications;
-    printf("final status is %d\n",(*applications)->final_application_status);
-    printf("application state is %d\n",(*applications)->yarn_application_state);
-    printf("user is %s, queue is %s, name is %s, host is %s, trackingurl is %s, diagnostics is %s, finish time is %lld\n",
-    		(*applications)->user, (*applications)->name, (*applications)->queue, (*applications)->host, (*applications)->trackingurl,
-    		(*applications)->diagnostics, (*applications)->finishtime);
-
-    // setup proxy
-    hadoop_rpc_proxy_t* proxy1 = create_new_yarn_rpc_proxy(APPLICATION_MASTER_PROTOCOL);
-    if (!proxy) {
-    	printf("failed to create a new hadoop rpc proxy.\n");
-    	return -1;
-    }
-
-    if (0 != (rc = setup_connection(proxy1, argv[1], atoi(argv[3])))) {
-    	printf("failed to connect to server.\n");
-        return -1;
-    }
-
-    char* dummy="localhost";
-    int dummy_i=8099;
-    printf("11111\n");
-    Hadoop__Yarn__RegisterApplicationMasterResponseProto* response9 = registerApplicationMaster(proxy1, dummy, dummy_i, dummy);
-    printf("virtual cores is %d\n", response9->maximumcapability->virtual_cores);
-    printf("memory is %d\n", response9->maximumcapability->memory);
-
-    return 0;
-}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest/wangbo/test_main.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest/wangbo/test_main.cpp b/depends/libyarn/ztest/wangbo/test_main.cpp
deleted file mode 100644
index cf9a9b2..0000000
--- a/depends/libyarn/ztest/wangbo/test_main.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <iostream>
-#include <yarn/Test.h>
-
-using namespace std;
-
-int main(void)
-{
-	string rmHost("localhost");
-	string rmPort("8032");
-	string jobName("libyarn");
-	string queue("default");
-	string schedHost("localhost");
-	string schedPort("8099");
-
-	libyarn::Test t;
-	t.run(jobName, queue, rmHost, rmPort, schedHost, schedPort);
-	return 0;
-}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest_c/c_client_main.c
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest_c/c_client_main.c b/depends/libyarn/ztest_c/c_client_main.c
index 51462b9..bf00dab 100644
--- a/depends/libyarn/ztest_c/c_client_main.c
+++ b/depends/libyarn/ztest_c/c_client_main.c
@@ -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.
+ */
+
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/time.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/ztest_c/c_client_main_profile.c
----------------------------------------------------------------------
diff --git a/depends/libyarn/ztest_c/c_client_main_profile.c b/depends/libyarn/ztest_c/c_client_main_profile.c
index 4c053dc..b94c919 100644
--- a/depends/libyarn/ztest_c/c_client_main_profile.c
+++ b/depends/libyarn/ztest_c/c_client_main_profile.c
@@ -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.
+ */
+
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/time.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/appendonly/appendonlyam.c
----------------------------------------------------------------------
diff --git a/src/backend/access/appendonly/appendonlyam.c b/src/backend/access/appendonly/appendonlyam.c
old mode 100755
new mode 100644

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/appendonly/appendonlyblockdirectory.c
----------------------------------------------------------------------
diff --git a/src/backend/access/appendonly/appendonlyblockdirectory.c b/src/backend/access/appendonly/appendonlyblockdirectory.c
index 9507200..df5b45d 100644
--- a/src/backend/access/appendonly/appendonlyblockdirectory.c
+++ b/src/backend/access/appendonly/appendonlyblockdirectory.c
@@ -1,16 +1,29 @@
+/*
+ * 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.
+ */
+
 /*-----------------------------------------------------------------------------
  *
  * appendonlyblockdirectory
  *    maintain the block directory to blocks in an append-only relation
  * files.
  *
- * Copyright (c) 2009, Greenplum Inc.
- *
- * $Id: $
- * $Change: $
- * $DateTime: $
- * $Author: $
- *-----------------------------------------------------------------------------
+ *-----------------------------------------------------------
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/appendonly/appendonlytid.c
----------------------------------------------------------------------
diff --git a/src/backend/access/appendonly/appendonlytid.c b/src/backend/access/appendonly/appendonlytid.c
old mode 100755
new mode 100644
index 9a2ffe0..8404d3f
--- a/src/backend/access/appendonly/appendonlytid.c
+++ b/src/backend/access/appendonly/appendonlytid.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * appendonlytid.c
  *
- * Copyright (c) 2007-2009, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/appendonly/appendonlywriter.c
----------------------------------------------------------------------
diff --git a/src/backend/access/appendonly/appendonlywriter.c b/src/backend/access/appendonly/appendonlywriter.c
old mode 100755
new mode 100644

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/appendonly/test/aomd_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/appendonly/test/aomd_test.c b/src/backend/access/appendonly/test/aomd_test.c
index 2ef0f43..ed1c0ab 100644
--- a/src/backend/access/appendonly/test/aomd_test.c
+++ b/src/backend/access/appendonly/test/aomd_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/fileam.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/fileam.c b/src/backend/access/external/fileam.c
index 8558715..82abb9d 100644
--- a/src/backend/access/external/fileam.c
+++ b/src/backend/access/external/fileam.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
 *
 * fileam.c
@@ -21,7 +40,6 @@
 * single row error handling the first error will raise an error and the
 * query will terminate.
  *
- * Copyright (c) 2007-2008, Greenplum inc
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/ha_config.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/ha_config.c b/src/backend/access/external/ha_config.c
index b99434d..76893f6 100644
--- a/src/backend/access/external/ha_config.c
+++ b/src/backend/access/external/ha_config.c
@@ -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.
+ */
+
 #include "access/ha_config.h"
 #include "access/pxfcomutils.h"
 #include "access/pxfutils.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/hd_work_mgr.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/hd_work_mgr.c b/src/backend/access/external/hd_work_mgr.c
index e625828..36f11a8 100644
--- a/src/backend/access/external/hd_work_mgr.c
+++ b/src/backend/access/external/hd_work_mgr.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * hd_work_mgr.c
  *	  distributes PXF data fragments for processing between GP segments
  *
- * Copyright (c) 2007-2012, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/libchurl.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/libchurl.c b/src/backend/access/external/libchurl.c
index 16235f7..b91a0ff 100644
--- a/src/backend/access/external/libchurl.c
+++ b/src/backend/access/external/libchurl.c
@@ -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.
+ */
+
 #include "access/libchurl.h"
 #include "lib/stringinfo.h"
 #include "utils/guc.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/pxfcomutils.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/pxfcomutils.c b/src/backend/access/external/pxfcomutils.c
index 297d3c7..c00a012 100644
--- a/src/backend/access/external/pxfcomutils.c
+++ b/src/backend/access/external/pxfcomutils.c
@@ -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.
+ */
+
 #include "access/pxfcomutils.h"
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -73,4 +92,4 @@ bool ping(char* host, char *port)
 		freeaddrinfo(res); 
 	
 	return up;
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/pxffilters.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/pxffilters.c b/src/backend/access/external/pxffilters.c
index 2925f22..f219738 100644
--- a/src/backend/access/external/pxffilters.c
+++ b/src/backend/access/external/pxffilters.c
@@ -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.
+ */
+
+/*
  * pxffilters.c
  *
  * Functions for handling push down of supported scan level filters to PXF.
  * 
- * Copyright (c) 2012, Greenplum inc
  */
 #include "access/pxffilters.h"
 #include "catalog/pg_operator.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/pxfheaders.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/pxfheaders.c b/src/backend/access/external/pxfheaders.c
index 11cafb6..579e705 100644
--- a/src/backend/access/external/pxfheaders.c
+++ b/src/backend/access/external/pxfheaders.c
@@ -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.
+ */
+
 #include "postgres.h"
 #include "fmgr.h"
 #include "funcapi.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/pxfmasterapi.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/pxfmasterapi.c b/src/backend/access/external/pxfmasterapi.c
index a5634cc..ba505b3 100644
--- a/src/backend/access/external/pxfmasterapi.c
+++ b/src/backend/access/external/pxfmasterapi.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * pxfnamenode.c
  *	  Functions for getting info from the PXF master.
  *	  Used by hd_work_mgr and gpbridgeapi
  *
- * Copyright (c) 2007-2013, Pivotal inc
- *
  *-------------------------------------------------------------------------
  */
 #include <json/json.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/pxfuriparser.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/pxfuriparser.c b/src/backend/access/external/pxfuriparser.c
index 00c32e2..47cfe82 100644
--- a/src/backend/access/external/pxfuriparser.c
+++ b/src/backend/access/external/pxfuriparser.c
@@ -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.
+ */
+
 
 #include "access/pxfuriparser.h"
 #include "access/pxfutils.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/pxfutils.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/pxfutils.c b/src/backend/access/external/pxfutils.c
index ef415ae..25e806e 100644
--- a/src/backend/access/external/pxfutils.c
+++ b/src/backend/access/external/pxfutils.c
@@ -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.
+ */
+
 #include "access/pxfutils.h"
 #include "utils/builtins.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/ha_config_mock.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/ha_config_mock.c b/src/backend/access/external/test/ha_config_mock.c
index dcf2b12..8ab7180 100644
--- a/src/backend/access/external/test/ha_config_mock.c
+++ b/src/backend/access/external/test/ha_config_mock.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>
@@ -17,4 +36,4 @@ Namenode * hdfsGetHANamenodes(const char *nameservice, int *size)
 void hdfsFreeNamenodeInformation(Namenode *namenodes, int size)
 {
 	mock();
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/ha_config_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/ha_config_test.c b/src/backend/access/external/test/ha_config_test.c
index 61cf1de..424c7ed 100644
--- a/src/backend/access/external/test/ha_config_test.c
+++ b/src/backend/access/external/test/ha_config_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/hd_work_mgr_allocate_fragments_to_datanodes_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/hd_work_mgr_allocate_fragments_to_datanodes_test.c b/src/backend/access/external/test/hd_work_mgr_allocate_fragments_to_datanodes_test.c
index fb42ee1..1c3d9ef 100644
--- a/src/backend/access/external/test/hd_work_mgr_allocate_fragments_to_datanodes_test.c
+++ b/src/backend/access/external/test/hd_work_mgr_allocate_fragments_to_datanodes_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/hd_work_mgr_distribute_work_2_gp_segments_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/hd_work_mgr_distribute_work_2_gp_segments_test.c b/src/backend/access/external/test/hd_work_mgr_distribute_work_2_gp_segments_test.c
index 2b940ff..aca45b0 100644
--- a/src/backend/access/external/test/hd_work_mgr_distribute_work_2_gp_segments_test.c
+++ b/src/backend/access/external/test/hd_work_mgr_distribute_work_2_gp_segments_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/hd_work_mgr_do_segment_clustering_by_host_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/hd_work_mgr_do_segment_clustering_by_host_test.c b/src/backend/access/external/test/hd_work_mgr_do_segment_clustering_by_host_test.c
index 3d3dbe5..f668ccf 100644
--- a/src/backend/access/external/test/hd_work_mgr_do_segment_clustering_by_host_test.c
+++ b/src/backend/access/external/test/hd_work_mgr_do_segment_clustering_by_host_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/hd_work_mgr_mock.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/hd_work_mgr_mock.c b/src/backend/access/external/test/hd_work_mgr_mock.c
index a03313c..c4ed128 100644
--- a/src/backend/access/external/test/hd_work_mgr_mock.c
+++ b/src/backend/access/external/test/hd_work_mgr_mock.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/hd_work_mgr_mock.h
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/hd_work_mgr_mock.h b/src/backend/access/external/test/hd_work_mgr_mock.h
index 2eda33e..c37db78 100644
--- a/src/backend/access/external/test/hd_work_mgr_mock.h
+++ b/src/backend/access/external/test/hd_work_mgr_mock.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 HD_WORK_MGR_MOCK_
 #define HD_WORK_MGR_MOCK_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/hd_work_mgr_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/hd_work_mgr_test.c b/src/backend/access/external/test/hd_work_mgr_test.c
index 382927b..c39b2ac 100644
--- a/src/backend/access/external/test/hd_work_mgr_test.c
+++ b/src/backend/access/external/test/hd_work_mgr_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/pxffilters_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/pxffilters_test.c b/src/backend/access/external/test/pxffilters_test.c
index 8f96550..a5b3fb0 100644
--- a/src/backend/access/external/test/pxffilters_test.c
+++ b/src/backend/access/external/test/pxffilters_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/pxfheaders_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/pxfheaders_test.c b/src/backend/access/external/test/pxfheaders_test.c
index 159d684..7c79b5a 100644
--- a/src/backend/access/external/test/pxfheaders_test.c
+++ b/src/backend/access/external/test/pxfheaders_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/pxfmasterapi_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/pxfmasterapi_test.c b/src/backend/access/external/test/pxfmasterapi_test.c
index f28fd09..dbabb5b 100644
--- a/src/backend/access/external/test/pxfmasterapi_test.c
+++ b/src/backend/access/external/test/pxfmasterapi_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/test/pxfuriparser_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/pxfuriparser_test.c b/src/backend/access/external/test/pxfuriparser_test.c
index ecde5aa..cd63725 100644
--- a/src/backend/access/external/test/pxfuriparser_test.c
+++ b/src/backend/access/external/test/pxfuriparser_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/external/url.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/url.c b/src/backend/access/external/url.c
old mode 100755
new mode 100644
index 0ac0567..37baac4
--- a/src/backend/access/external/url.c
+++ b/src/backend/access/external/url.c
@@ -1,5 +1,20 @@
 /*
- * Portions Copyright (c) 2007-2008, Greenplum inc
+ * 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.
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/metadatautil_c++/MetadataUtil.cpp
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/metadatautil_c++/MetadataUtil.cpp b/src/backend/access/parquet/metadatautil_c++/MetadataUtil.cpp
index 1bf4b44..de4d7bd 100644
--- a/src/backend/access/parquet/metadatautil_c++/MetadataUtil.cpp
+++ b/src/backend/access/parquet/metadatautil_c++/MetadataUtil.cpp
@@ -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.
+ */
+
+/*
  * MetadataUtil.cpp
  *
  *  Created on: Jun 25, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/metadatautil_c++/MetadataUtil.h
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/metadatautil_c++/MetadataUtil.h b/src/backend/access/parquet/metadatautil_c++/MetadataUtil.h
index aac74ea..bea6121 100644
--- a/src/backend/access/parquet/metadatautil_c++/MetadataUtil.h
+++ b/src/backend/access/parquet/metadatautil_c++/MetadataUtil.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.
+ */
+
+/*
  * MetadataUtil.h
  *
  *  Created on: Jun 25, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/metadatautil_c++/Metadatainterface.cpp
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/metadatautil_c++/Metadatainterface.cpp b/src/backend/access/parquet/metadatautil_c++/Metadatainterface.cpp
index c06525a..e39b479 100644
--- a/src/backend/access/parquet/metadatautil_c++/Metadatainterface.cpp
+++ b/src/backend/access/parquet/metadatautil_c++/Metadatainterface.cpp
@@ -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.
+ */
+
 
 #include <iostream>
 #include <stdint.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/metadatautil_c++/parquet_types.cpp
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/metadatautil_c++/parquet_types.cpp b/src/backend/access/parquet/metadatautil_c++/parquet_types.cpp
index 5e44d40..e133d18 100644
--- a/src/backend/access/parquet/metadatautil_c++/parquet_types.cpp
+++ b/src/backend/access/parquet/metadatautil_c++/parquet_types.cpp
@@ -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.
+ */
+
 /**
  * Autogenerated by Thrift Compiler (0.9.0)
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/metadatautil_c++/parquet_types.h
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/metadatautil_c++/parquet_types.h b/src/backend/access/parquet/metadatautil_c++/parquet_types.h
index 7593c2d..262d4f8 100644
--- a/src/backend/access/parquet/metadatautil_c++/parquet_types.h
+++ b/src/backend/access/parquet/metadatautil_c++/parquet_types.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.
+ */
+
 /**
  * Autogenerated by Thrift Compiler (0.9.0)
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/metadatautil_c++/test/Metadatainterface_test.cpp
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/metadatautil_c++/test/Metadatainterface_test.cpp b/src/backend/access/parquet/metadatautil_c++/test/Metadatainterface_test.cpp
index 8fc9e9d..e671312 100644
--- a/src/backend/access/parquet/metadatautil_c++/test/Metadatainterface_test.cpp
+++ b/src/backend/access/parquet/metadatautil_c++/test/Metadatainterface_test.cpp
@@ -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.
+ */
+
 #include "../Metadatainterface.cpp"
 #include <stddef.h>
 #include <stdarg.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/metadatautil_c++/thrift-util.h
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/metadatautil_c++/thrift-util.h b/src/backend/access/parquet/metadatautil_c++/thrift-util.h
old mode 100755
new mode 100644
index a3f3e18..95be31d
--- a/src/backend/access/parquet/metadatautil_c++/thrift-util.h
+++ b/src/backend/access/parquet/metadatautil_c++/thrift-util.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 THRIFT_UTIL_H
 #define THRIFT_UTIL_H
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/parquetam.c
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/parquetam.c b/src/backend/access/parquet/parquetam.c
index 9b4980a..67359ca 100644
--- a/src/backend/access/parquet/parquetam.c
+++ b/src/backend/access/parquet/parquetam.c
@@ -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.
+ */
+
+/*
  * parquetam.c
  *
  *  Created on: Jul 4, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/access/parquet/parquetsegfiles.c
----------------------------------------------------------------------
diff --git a/src/backend/access/parquet/parquetsegfiles.c b/src/backend/access/parquet/parquetsegfiles.c
index 2c2c947..98ca2e5 100644
--- a/src/backend/access/parquet/parquetsegfiles.c
+++ b/src/backend/access/parquet/parquetsegfiles.c
@@ -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.
+ */
+
+/*
  * parquetsegfiles.c
  *
  *  Created on: Jul 5, 2013

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/caller.py
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/caller.py b/src/backend/catalog/caql/caller.py
index 69cc022..0ba96c4 100644
--- a/src/backend/catalog/caql/caller.py
+++ b/src/backend/catalog/caql/caller.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.
 
 #-----------------------------------------------------------------------------
 #

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/caqlaccess.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/caqlaccess.c b/src/backend/catalog/caql/caqlaccess.c
index 28f0ec0..54d5e71 100644
--- a/src/backend/catalog/caql/caqlaccess.c
+++ b/src/backend/catalog/caql/caqlaccess.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * caqlaccess.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/catalog/caql/caqlanalyze.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/caql/caqlanalyze.c b/src/backend/catalog/caql/caqlanalyze.c
index 53c3519..7533dce 100644
--- a/src/backend/catalog/caql/caqlanalyze.c
+++ b/src/backend/catalog/caql/caqlanalyze.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * caqlanalyze.c



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

Posted by wl...@apache.org.
HAWQ-57. Add license header to source files and add the NOTICE file


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/a41ad6f2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/a41ad6f2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/a41ad6f2

Branch: refs/heads/master
Commit: a41ad6f2c1aa3b4f016bef05e4f52e964eb67693
Parents: d2862ff
Author: Wen Lin <wl...@pivotal.io>
Authored: Thu Nov 12 11:35:35 2015 +0800
Committer: Wen Lin <wl...@pivotal.io>
Committed: Thu Nov 12 11:35:35 2015 +0800

----------------------------------------------------------------------
 NOTICE                                          | 361 +++++++++
 depends/libyarn/mock/MockApplicationClient.h    |  19 +
 .../mock/MockApplicationClientProtocol.h        |  19 +
 depends/libyarn/mock/MockApplicationMaster.h    |  19 +
 .../mock/MockApplicationMasterProtocol.h        |  19 +
 depends/libyarn/mock/MockContainerManagement.h  |  19 +
 .../mock/MockContainerManagementProtocol.h      |  19 +
 depends/libyarn/mock/MockLibYarnClient.h        |  19 +
 .../libyarn/mock/TestContainerManagementStub.h  |  19 +
 depends/libyarn/mock/TestLibYarnClientStub.h    |  19 +
 depends/libyarn/releng/bin/cleanup-phd.sh       |  16 +
 depends/libyarn/releng/bin/gphdinst.sh          |  16 +
 depends/libyarn/releng/bin/ha_failover.sh       |  16 +
 depends/libyarn/releng/bin/install-phd.sh       |  16 +
 depends/libyarn/releng/bin/setup_gphdinst.sh    |  16 +
 .../releng/bin/templates/log4j-ha.properties    |  17 +
 depends/libyarn/releng/etc/ivy.xml              |  20 +
 .../libyarn/releng/make/dependencies/build.xml  |  20 +
 depends/libyarn/releng/make/dependencies/ivy.sh |  16 +
 .../libyarn/releng/make/dependencies/ivy.xml    |  20 +
 .../releng/make/dependencies/ivy_util.sh        |  16 +
 .../releng/make/dependencies/ivysettings.xml    |  20 +
 depends/libyarn/releng/publish/ivy.xml          |  20 +
 depends/libyarn/releng/publish/ivysettings.xml  |  20 +
 depends/libyarn/releng/set_bld_arch.sh          |  16 +
 depends/libyarn/src/common/Atomic.h             |  25 +-
 depends/libyarn/src/common/BigEndian.h          |  25 +-
 depends/libyarn/src/common/Checksum.h           |  25 +-
 depends/libyarn/src/common/DateTime.h           |  25 +-
 depends/libyarn/src/common/Exception.cpp        |  26 +-
 depends/libyarn/src/common/Exception.h          |  25 +-
 .../libyarn/src/common/ExceptionInternal.cpp    |  25 +-
 depends/libyarn/src/common/ExceptionInternal.h  |  25 +-
 depends/libyarn/src/common/Function.h           |  25 +-
 depends/libyarn/src/common/HWCrc32c.cpp         |  25 +-
 depends/libyarn/src/common/HWCrc32c.h           |  25 +-
 depends/libyarn/src/common/Hash.cpp             |  25 +-
 depends/libyarn/src/common/Hash.h               |  25 +-
 depends/libyarn/src/common/Logger.cpp           |  25 +-
 depends/libyarn/src/common/Logger.h             |  25 +-
 depends/libyarn/src/common/LruMap.h             |  25 +-
 depends/libyarn/src/common/Memory.h             |  25 +-
 depends/libyarn/src/common/SWCrc32c.cpp         |  25 +-
 depends/libyarn/src/common/SWCrc32c.h           |  25 +-
 depends/libyarn/src/common/SessionConfig.cpp    |  25 +-
 depends/libyarn/src/common/SessionConfig.h      |  25 +-
 depends/libyarn/src/common/StackPrinter.cpp     |  25 +-
 depends/libyarn/src/common/StackPrinter.h       |  25 +-
 depends/libyarn/src/common/StringUtil.h         |  25 +-
 depends/libyarn/src/common/Thread.cpp           |  24 +-
 depends/libyarn/src/common/Thread.h             |  25 +-
 depends/libyarn/src/common/Unordered.h          |  25 +-
 depends/libyarn/src/common/WritableUtils.cpp    |  25 +-
 depends/libyarn/src/common/WritableUtils.h      |  25 +-
 depends/libyarn/src/common/WriteBuffer.cpp      |  25 +-
 depends/libyarn/src/common/WriteBuffer.h        |  25 +-
 depends/libyarn/src/common/XmlConfig.cpp        |  25 +-
 depends/libyarn/src/common/XmlConfig.h          |  25 +-
 .../src/libyarnclient/ApplicationClient.cpp     |  19 +
 .../src/libyarnclient/ApplicationClient.h       |  19 +
 .../src/libyarnclient/ApplicationMaster.cpp     |  19 +
 .../src/libyarnclient/ApplicationMaster.h       |  20 +-
 .../src/libyarnclient/ContainerManagement.cpp   |  20 +-
 .../src/libyarnclient/ContainerManagement.h     |  20 +-
 .../libyarn/src/libyarnclient/LibYarnClient.cpp |  19 +
 .../libyarn/src/libyarnclient/LibYarnClient.h   |  19 +
 .../src/libyarnclient/LibYarnClientC.cpp        |  19 +
 .../libyarn/src/libyarnclient/LibYarnClientC.h  |  19 +
 .../src/libyarnclient/LibYarnConstants.h        |  19 +
 .../libyarn/src/libyarncommon/KerberosName.cpp  |  25 +-
 .../libyarn/src/libyarncommon/KerberosName.h    |  25 +-
 depends/libyarn/src/libyarncommon/RpcHelper.h   |  25 +-
 depends/libyarn/src/libyarncommon/Token.cpp     |  25 +-
 depends/libyarn/src/libyarncommon/Token.h       |  25 +-
 .../libyarn/src/libyarncommon/TokenInternal.h   |  25 +-
 depends/libyarn/src/libyarncommon/UserInfo.cpp  |  25 +-
 depends/libyarn/src/libyarncommon/UserInfo.h    |  25 +-
 .../libyarnserver/ApplicationClientProtocol.cpp |  19 +
 .../libyarnserver/ApplicationClientProtocol.h   |  19 +
 .../libyarnserver/ApplicationMasterProtocol.cpp |  20 +-
 .../libyarnserver/ApplicationMasterProtocol.h   |  20 +-
 .../ContainerManagementProtocol.cpp             |  21 +-
 .../libyarnserver/ContainerManagementProtocol.h |  20 +-
 .../src/network/BufferedSocketReader.cpp        |  25 +-
 .../libyarn/src/network/BufferedSocketReader.h  |  25 +-
 depends/libyarn/src/network/Socket.h            |  25 +-
 depends/libyarn/src/network/Syscall.h           |  25 +-
 depends/libyarn/src/network/TcpSocket.cpp       |  25 +-
 depends/libyarn/src/network/TcpSocket.h         |  25 +-
 .../src/protocolrecords/AllocateRequest.cpp     |  21 +-
 .../src/protocolrecords/AllocateRequest.h       |  20 +-
 .../src/protocolrecords/AllocateResponse.cpp    |  20 +-
 .../src/protocolrecords/AllocateResponse.h      |  20 +-
 .../FinishApplicationMasterRequest.cpp          |  20 +-
 .../FinishApplicationMasterRequest.h            |  20 +-
 .../FinishApplicationMasterResponse.cpp         |  20 +-
 .../FinishApplicationMasterResponse.h           |  20 +-
 .../GetApplicationReportRequest.cpp             |  20 +-
 .../GetApplicationReportRequest.h               |  20 +-
 .../GetApplicationReportResponse.cpp            |  20 +-
 .../GetApplicationReportResponse.h              |  21 +-
 .../protocolrecords/GetApplicationsRequest.cpp  |  20 +-
 .../protocolrecords/GetApplicationsRequest.h    |  21 +-
 .../protocolrecords/GetApplicationsResponse.cpp |  20 +-
 .../protocolrecords/GetApplicationsResponse.h   |  21 +-
 .../GetClusterMetricsRequest.cpp                |  21 +-
 .../protocolrecords/GetClusterMetricsRequest.h  |  20 +-
 .../GetClusterMetricsResponse.cpp               |  20 +-
 .../protocolrecords/GetClusterMetricsResponse.h |  20 +-
 .../protocolrecords/GetClusterNodesRequest.cpp  |  20 +-
 .../protocolrecords/GetClusterNodesRequest.h    |  20 +-
 .../protocolrecords/GetClusterNodesResponse.cpp |  20 +-
 .../protocolrecords/GetClusterNodesResponse.h   |  21 +-
 .../GetContainerStatusesRequest.cpp             |  20 +-
 .../GetContainerStatusesRequest.h               |  20 +-
 .../GetContainerStatusesResponse.cpp            |  20 +-
 .../GetContainerStatusesResponse.h              |  20 +-
 .../protocolrecords/GetContainersRequest.cpp    |  20 +-
 .../src/protocolrecords/GetContainersRequest.h  |  20 +-
 .../protocolrecords/GetContainersResponse.cpp   |  21 +-
 .../src/protocolrecords/GetContainersResponse.h |  20 +-
 .../GetNewApplicationRequest.cpp                |  20 +-
 .../protocolrecords/GetNewApplicationRequest.h  |  20 +-
 .../GetNewApplicationResponse.cpp               |  20 +-
 .../protocolrecords/GetNewApplicationResponse.h |  20 +-
 .../src/protocolrecords/GetQueueInfoRequest.cpp |  20 +-
 .../src/protocolrecords/GetQueueInfoRequest.h   |  20 +-
 .../protocolrecords/GetQueueInfoResponse.cpp    |  19 +
 .../src/protocolrecords/GetQueueInfoResponse.h  |  21 +-
 .../GetQueueUserAclsInfoRequest.cpp             |  20 +-
 .../GetQueueUserAclsInfoRequest.h               |  20 +-
 .../GetQueueUserAclsInfoResponse.cpp            |  20 +-
 .../GetQueueUserAclsInfoResponse.h              |  21 +-
 .../protocolrecords/KillApplicationRequest.cpp  |  20 +-
 .../protocolrecords/KillApplicationRequest.h    |  20 +-
 .../protocolrecords/KillApplicationResponse.cpp |  20 +-
 .../protocolrecords/KillApplicationResponse.h   |  20 +-
 .../RegisterApplicationMasterRequest.cpp        |  21 +-
 .../RegisterApplicationMasterRequest.h          |  20 +-
 .../RegisterApplicationMasterResponse.cpp       |  20 +-
 .../RegisterApplicationMasterResponse.h         |  20 +-
 .../protocolrecords/StartContainerRequest.cpp   |  20 +-
 .../src/protocolrecords/StartContainerRequest.h |  20 +-
 .../protocolrecords/StartContainerResponse.cpp  |  20 +-
 .../protocolrecords/StartContainerResponse.h    |  20 +-
 .../protocolrecords/StartContainersRequest.cpp  |  20 +-
 .../protocolrecords/StartContainersRequest.h    |  20 +-
 .../protocolrecords/StartContainersResponse.cpp |  20 +-
 .../protocolrecords/StartContainersResponse.h   |  21 +-
 .../protocolrecords/StopContainersRequest.cpp   |  20 +-
 .../src/protocolrecords/StopContainersRequest.h |  20 +-
 .../protocolrecords/StopContainersResponse.cpp  |  20 +-
 .../protocolrecords/StopContainersResponse.h    |  20 +-
 .../SubmitApplicationRequest.cpp                |  21 +-
 .../protocolrecords/SubmitApplicationRequest.h  |  20 +-
 .../SubmitApplicationResponse.cpp               |  21 +-
 .../protocolrecords/SubmitApplicationResponse.h |  20 +-
 depends/libyarn/src/records/AMCommand.h         |  20 +-
 .../libyarn/src/records/ApplicationACLMap.cpp   |  20 +-
 depends/libyarn/src/records/ApplicationACLMap.h |  20 +-
 .../libyarn/src/records/ApplicationAccessType.h |  20 +-
 .../src/records/ApplicationAttemptId.cpp        |  21 +-
 .../libyarn/src/records/ApplicationAttemptId.h  |  21 +-
 depends/libyarn/src/records/ApplicationID.cpp   |  19 +
 depends/libyarn/src/records/ApplicationID.h     |  21 +-
 .../libyarn/src/records/ApplicationReport.cpp   |  21 +-
 depends/libyarn/src/records/ApplicationReport.h |  20 +-
 .../records/ApplicationResourceUsageReport.cpp  |  20 +-
 .../records/ApplicationResourceUsageReport.h    |  20 +-
 .../records/ApplicationSubmissionContext.cpp    |  20 +-
 .../src/records/ApplicationSubmissionContext.h  |  20 +-
 depends/libyarn/src/records/Container.cpp       |  21 +-
 depends/libyarn/src/records/Container.h         |  21 +-
 .../src/records/ContainerExceptionMap.cpp       |  20 +-
 .../libyarn/src/records/ContainerExceptionMap.h |  20 +-
 .../libyarn/src/records/ContainerExitStatus.h   |  20 +-
 depends/libyarn/src/records/ContainerId.cpp     |  21 +-
 depends/libyarn/src/records/ContainerId.h       |  21 +-
 .../src/records/ContainerLaunchContext.cpp      |  20 +-
 .../src/records/ContainerLaunchContext.h        |  20 +-
 depends/libyarn/src/records/ContainerReport.cpp |  20 +-
 depends/libyarn/src/records/ContainerReport.h   |  20 +-
 depends/libyarn/src/records/ContainerState.h    |  19 +
 depends/libyarn/src/records/ContainerStatus.cpp |  20 +-
 depends/libyarn/src/records/ContainerStatus.h   |  20 +-
 .../src/records/FinalApplicationStatus.h        |  20 +-
 depends/libyarn/src/records/FunctionResult.h    |  19 +
 depends/libyarn/src/records/LocalResource.cpp   |  20 +-
 depends/libyarn/src/records/LocalResource.h     |  20 +-
 depends/libyarn/src/records/LocalResourceType.h |  21 +-
 .../src/records/LocalResourceVisibility.h       |  20 +-
 depends/libyarn/src/records/NMToken.cpp         |  20 +-
 depends/libyarn/src/records/NMToken.h           |  21 +-
 depends/libyarn/src/records/NodeId.cpp          |  21 +-
 depends/libyarn/src/records/NodeId.h            |  21 +-
 depends/libyarn/src/records/NodeReport.cpp      |  20 +-
 depends/libyarn/src/records/NodeReport.h        |  19 +
 depends/libyarn/src/records/NodeState.h         |  20 +-
 .../libyarn/src/records/PreemptionContainer.cpp |  20 +-
 .../libyarn/src/records/PreemptionContainer.h   |  20 +-
 .../libyarn/src/records/PreemptionContract.cpp  |  20 +-
 .../libyarn/src/records/PreemptionContract.h    |  20 +-
 .../libyarn/src/records/PreemptionMessage.cpp   |  20 +-
 depends/libyarn/src/records/PreemptionMessage.h |  20 +-
 .../src/records/PreemptionResourceRequest.cpp   |  20 +-
 .../src/records/PreemptionResourceRequest.h     |  20 +-
 depends/libyarn/src/records/Priority.cpp        |  21 +-
 depends/libyarn/src/records/Priority.h          |  21 +-
 depends/libyarn/src/records/QueueACL.h          |  20 +-
 depends/libyarn/src/records/QueueInfo.cpp       |  20 +-
 depends/libyarn/src/records/QueueInfo.h         |  20 +-
 depends/libyarn/src/records/QueueState.h        |  21 +-
 .../libyarn/src/records/QueueUserACLInfo.cpp    |  20 +-
 depends/libyarn/src/records/QueueUserACLInfo.h  |  20 +-
 depends/libyarn/src/records/Resource.cpp        |  20 +-
 depends/libyarn/src/records/Resource.h          |  20 +-
 .../src/records/ResourceBlacklistRequest.cpp    |  21 +-
 .../src/records/ResourceBlacklistRequest.h      |  21 +-
 depends/libyarn/src/records/ResourceRequest.cpp |  21 +-
 depends/libyarn/src/records/ResourceRequest.h   |  21 +-
 .../libyarn/src/records/SerializedException.cpp |  20 +-
 .../libyarn/src/records/SerializedException.h   |  20 +-
 .../src/records/StrictPreemptionContract.cpp    |  21 +-
 .../src/records/StrictPreemptionContract.h      |  20 +-
 depends/libyarn/src/records/StringBytesMap.cpp  |  21 +-
 depends/libyarn/src/records/StringBytesMap.h    |  20 +-
 .../src/records/StringLocalResourceMap.cpp      |  21 +-
 .../src/records/StringLocalResourceMap.h        |  20 +-
 depends/libyarn/src/records/StringStringMap.cpp |  20 +-
 depends/libyarn/src/records/StringStringMap.h   |  20 +-
 depends/libyarn/src/records/Token.cpp           |  21 +-
 depends/libyarn/src/records/Token.h             |  21 +-
 depends/libyarn/src/records/URL.cpp             |  20 +-
 depends/libyarn/src/records/URL.h               |  20 +-
 .../libyarn/src/records/YarnApplicationState.h  |  20 +-
 .../libyarn/src/records/YarnClusterMetrics.cpp  |  21 +-
 .../libyarn/src/records/YarnClusterMetrics.h    |  21 +-
 depends/libyarn/src/rpc/RpcAuth.cpp             |  25 +-
 depends/libyarn/src/rpc/RpcAuth.h               |  25 +-
 depends/libyarn/src/rpc/RpcCall.h               |  25 +-
 depends/libyarn/src/rpc/RpcChannel.cpp          |  25 +-
 depends/libyarn/src/rpc/RpcChannel.h            |  25 +-
 depends/libyarn/src/rpc/RpcChannelKey.cpp       |  25 +-
 depends/libyarn/src/rpc/RpcChannelKey.h         |  25 +-
 depends/libyarn/src/rpc/RpcClient.cpp           |  25 +-
 depends/libyarn/src/rpc/RpcClient.h             |  25 +-
 depends/libyarn/src/rpc/RpcConfig.cpp           |  25 +-
 depends/libyarn/src/rpc/RpcConfig.h             |  25 +-
 depends/libyarn/src/rpc/RpcContentWrapper.cpp   |  25 +-
 depends/libyarn/src/rpc/RpcContentWrapper.h     |  25 +-
 depends/libyarn/src/rpc/RpcProtocolInfo.cpp     |  25 +-
 depends/libyarn/src/rpc/RpcProtocolInfo.h       |  25 +-
 depends/libyarn/src/rpc/RpcRemoteCall.cpp       |  25 +-
 depends/libyarn/src/rpc/RpcRemoteCall.h         |  25 +-
 depends/libyarn/src/rpc/RpcServerInfo.cpp       |  25 +-
 depends/libyarn/src/rpc/RpcServerInfo.h         |  25 +-
 depends/libyarn/src/rpc/SaslClient.cpp          |  25 +-
 depends/libyarn/src/rpc/SaslClient.h            |  25 +-
 depends/libyarn/sync.sh                         |  16 +
 depends/libyarn/test/data/function-secure.xml   |  20 +
 depends/libyarn/test/data/function-test.xml     |  20 +
 depends/libyarn/test/data/invalid.xml           |  22 +-
 depends/libyarn/test/data/invalidha.xml         |  22 +-
 depends/libyarn/test/data/unit-config.xml       |  20 +
 depends/libyarn/test/data/validha.xml           |  22 +-
 .../libyarn/test/function/FunctionTestMain.cpp  |  25 +-
 .../libyarn/test/function/TestLibYarnClient.cpp |  21 +-
 .../TestMockApplicationClientProtocol.cpp       |  20 +-
 .../TestMockApplicationMasterProtocol.cpp       |  20 +-
 .../test/secure/FunctionTestSecureMain.cpp      |  25 +-
 .../libyarn/test/secure/SecureFunctionTest.cpp  |  25 +-
 .../libyarn/test/unit/TestApplicationClient.cpp |  21 +-
 .../libyarn/test/unit/TestApplicationMaster.cpp |  21 +-
 .../test/unit/TestContainerManagement.cpp       |  20 +-
 depends/libyarn/test/unit/TestLibYarnClient.cpp |  20 +-
 .../libyarn/test/unit/TestLibYarnClientC.cpp    |  20 +-
 depends/libyarn/test/unit/UnitTestMain.cpp      |  25 +-
 depends/libyarn/ztest/c_client_main.c           |  19 +
 depends/libyarn/ztest/client_main.cpp           |  21 +-
 depends/libyarn/ztest/wangbo/Makefile           |  16 -
 depends/libyarn/ztest/wangbo/am_main.cpp        |  23 -
 depends/libyarn/ztest/wangbo/client_main.cpp    | 113 ---
 depends/libyarn/ztest/wangbo/newTest_main.cpp   |  17 -
 .../libyarn/ztest/wangbo/new_application_wang.c | 181 -----
 depends/libyarn/ztest/wangbo/test_main.cpp      |  18 -
 depends/libyarn/ztest_c/c_client_main.c         |  19 +
 depends/libyarn/ztest_c/c_client_main_profile.c |  19 +
 src/backend/access/appendonly/appendonlyam.c    |   0
 .../appendonly/appendonlyblockdirectory.c       |  27 +-
 src/backend/access/appendonly/appendonlytid.c   |  21 +-
 .../access/appendonly/appendonlywriter.c        |   0
 src/backend/access/appendonly/test/aomd_test.c  |  19 +
 src/backend/access/external/fileam.c            |  20 +-
 src/backend/access/external/ha_config.c         |  19 +
 src/backend/access/external/hd_work_mgr.c       |  21 +-
 src/backend/access/external/libchurl.c          |  19 +
 src/backend/access/external/pxfcomutils.c       |  21 +-
 src/backend/access/external/pxffilters.c        |  20 +-
 src/backend/access/external/pxfheaders.c        |  19 +
 src/backend/access/external/pxfmasterapi.c      |  21 +-
 src/backend/access/external/pxfuriparser.c      |  19 +
 src/backend/access/external/pxfutils.c          |  19 +
 .../access/external/test/ha_config_mock.c       |  21 +-
 .../access/external/test/ha_config_test.c       |  19 +
 ...k_mgr_allocate_fragments_to_datanodes_test.c |  19 +
 ...ork_mgr_distribute_work_2_gp_segments_test.c |  19 +
 ...ork_mgr_do_segment_clustering_by_host_test.c |  19 +
 .../access/external/test/hd_work_mgr_mock.c     |  19 +
 .../access/external/test/hd_work_mgr_mock.h     |  19 +
 .../access/external/test/hd_work_mgr_test.c     |  19 +
 .../access/external/test/pxffilters_test.c      |  19 +
 .../access/external/test/pxfheaders_test.c      |  19 +
 .../access/external/test/pxfmasterapi_test.c    |  19 +
 .../access/external/test/pxfuriparser_test.c    |  19 +
 src/backend/access/external/url.c               |  17 +-
 .../parquet/metadatautil_c++/MetadataUtil.cpp   |  19 +
 .../parquet/metadatautil_c++/MetadataUtil.h     |  19 +
 .../metadatautil_c++/Metadatainterface.cpp      |  19 +
 .../parquet/metadatautil_c++/parquet_types.cpp  |  19 +
 .../parquet/metadatautil_c++/parquet_types.h    |  19 +
 .../test/Metadatainterface_test.cpp             |  19 +
 .../parquet/metadatautil_c++/thrift-util.h      |  19 +
 src/backend/access/parquet/parquetam.c          |  19 +
 src/backend/access/parquet/parquetsegfiles.c    |  19 +
 src/backend/catalog/caql/caller.py              |  16 +
 src/backend/catalog/caql/caqlaccess.c           |  19 +
 src/backend/catalog/caql/caqlanalyze.c          |  19 +
 src/backend/catalog/caql/test/caqlaccess_test.c |  19 +
 .../catalog/caql/test/caqlanalyze_test.c        |  19 +
 src/backend/catalog/caql/test/catquery_mock.c   |  19 +
 src/backend/catalog/caql/test/catquery_test.c   |  19 +
 src/backend/catalog/caql/test/gram_test.c       |  19 +
 .../caql/test_discard/caqlanalyze_test.c        |  19 +
 .../catalog/caql/test_discard/catquery_mock.c   |  19 +
 .../catalog/caql/test_discard/catquery_test.c   |  19 +
 .../catalog/caql/test_discard/gram_test.c       |  19 +
 src/backend/catalog/core/catcore.c              |  19 +
 src/backend/catalog/core/catcoregen.py          |  16 +
 src/backend/catalog/core/catheader.py           |  16 +
 src/backend/catalog/core/test/catcore_test.c    |  19 +
 src/backend/catalog/gp_fastsequence.c           |  24 +-
 src/backend/catalog/gp_global_sequence.c        |  20 +-
 src/backend/catalog/gp_persistent.c             |  20 +-
 src/backend/catalog/hcatalog/externalmd.c       |  20 +-
 src/backend/cdb/cdbanalyze.c                    |  21 +-
 src/backend/cdb/cdbappendonlystorage.c          |  21 +-
 src/backend/cdb/cdbappendonlystorageformat.c    |  21 +-
 src/backend/cdb/cdbappendonlystorageread.c      |  21 +-
 src/backend/cdb/cdbappendonlystoragewrite.c     |  21 +-
 src/backend/cdb/cdbbackup.c                     |  19 +
 src/backend/cdb/cdbbufferedappend.c             |  21 +-
 src/backend/cdb/cdbbufferedread.c               |  21 +-
 src/backend/cdb/cdbcat.c                        |  21 +-
 src/backend/cdb/cdbcellbuf.c                    |  21 +-
 src/backend/cdb/cdbchunkpool.c                  |  21 +-
 src/backend/cdb/cdbconn.c                       |  21 +-
 src/backend/cdb/cdbcopy.c                       |  21 +-
 src/backend/cdb/cdbdatabaseinfo.c               |  21 +-
 src/backend/cdb/cdbdatalocality.c               |  21 +-
 src/backend/cdb/cdbdirectopen.c                 |  21 +-
 src/backend/cdb/cdbdisp.c                       |  22 +-
 src/backend/cdb/cdbdispatchedtablespaceinfo.c   |  21 +-
 src/backend/cdb/cdbdispatchresult.c             |  22 +-
 src/backend/cdb/cdbdistributedxacts.c           |  19 +
 src/backend/cdb/cdbdistributedxid.c             |  19 +
 src/backend/cdb/cdbdistributedxidmap.c          |  21 +-
 src/backend/cdb/cdbdoublylinked.c               |  21 +-
 src/backend/cdb/cdbexplain.c                    |  21 +-
 src/backend/cdb/cdbfilerep.c                    |  19 +
 src/backend/cdb/cdbfilesplit.c                  |  20 +-
 src/backend/cdb/cdbfilesystemcredential.c       |  21 +-
 src/backend/cdb/cdbfts.c                        |  21 +-
 src/backend/cdb/cdbgang.c                       |  21 +-
 src/backend/cdb/cdbglobalsequence.c             |  21 +-
 src/backend/cdb/cdbgroup.c                      |  19 +
 src/backend/cdb/cdbhash.c                       |  21 +-
 src/backend/cdb/cdbheap.c                       |  21 +-
 src/backend/cdb/cdbinmemheapam.c                |  21 +-
 src/backend/cdb/cdblink.c                       |  21 +-
 src/backend/cdb/cdbllize.c                      |  23 +-
 src/backend/cdb/cdblogsync.c                    |  19 +
 src/backend/cdb/cdbmaxdistributedxid.c          |  19 +
 src/backend/cdb/cdbmetadatacache.c              |  19 +
 src/backend/cdb/cdbmetadatacache_process.c      |  19 +
 src/backend/cdb/cdbmetadatacache_test.c         |  19 +
 src/backend/cdb/cdbmirroredappendonly.c         |  21 +-
 src/backend/cdb/cdbmirroredbufferpool.c         |  21 +-
 src/backend/cdb/cdbmirroredfilesysobj.c         |  21 +-
 src/backend/cdb/cdbmirroredflatfile.c           |  21 +-
 src/backend/cdb/cdbmutate.c                     |  21 +-
 src/backend/cdb/cdboidsync.c                    |  21 +-
 src/backend/cdb/cdbparquetbitstreamutil.c       |  19 +
 src/backend/cdb/cdbparquetbytepacker.c          |  19 +
 src/backend/cdb/cdbparquetcolumn.c              |  19 +
 src/backend/cdb/cdbparquetfooterbuffer.c        |  19 +
 src/backend/cdb/cdbparquetfooterprocessor.c     |  19 +
 src/backend/cdb/cdbparquetfooterserializer.c    |  19 +
 .../cdb/cdbparquetfooterserializer_protocol.c   |  19 +
 src/backend/cdb/cdbparquetrleencoder.c          |  19 +
 src/backend/cdb/cdbparquetrowgroup.c            |  19 +
 src/backend/cdb/cdbparquetstorageread.c         |  19 +
 src/backend/cdb/cdbparquetstoragewrite.c        |  19 +
 src/backend/cdb/cdbpartindex.c                  |  21 +-
 src/backend/cdb/cdbpartition.c                  |  21 +-
 src/backend/cdb/cdbpath.c                       |  21 +-
 src/backend/cdb/cdbpathlocus.c                  |  21 +-
 src/backend/cdb/cdbpathtoplan.c                 |  21 +-
 src/backend/cdb/cdbpersistentbuild.c            |  21 +-
 src/backend/cdb/cdbpersistentdatabase.c         |  21 +-
 src/backend/cdb/cdbpersistentfilespace.c        |  21 +-
 src/backend/cdb/cdbpersistentfilesysobj.c       |  21 +-
 src/backend/cdb/cdbpersistentrecovery.c         |  21 +-
 src/backend/cdb/cdbpersistentrelation.c         |  21 +-
 src/backend/cdb/cdbpersistentrelfile.c          |  21 +-
 src/backend/cdb/cdbpersistentstore.c            |  21 +-
 src/backend/cdb/cdbpersistenttablespace.c       |  21 +-
 src/backend/cdb/cdbpgdatabase.c                 |  19 +
 src/backend/cdb/cdbplan.c                       |  21 +-
 src/backend/cdb/cdbpullup.c                     |  21 +-
 src/backend/cdb/cdbquerycontextdispatching.c    |  21 +-
 src/backend/cdb/cdbrelsize.c                    |  22 +-
 .../cdb/cdbresynchronizechangetracking.c        |  21 +-
 src/backend/cdb/cdbsetop.c                      |  19 +
 src/backend/cdb/cdbshareddoublylinked.c         | 759 ++++++++++---------
 src/backend/cdb/cdbsharedoidsearch.c            |  21 +-
 src/backend/cdb/cdbsharedstorageop.c            |  21 +-
 src/backend/cdb/cdbsreh.c                       |  21 +-
 src/backend/cdb/cdbsrlz.c                       |  23 +-
 src/backend/cdb/cdbsubplan.c                    |  21 +-
 src/backend/cdb/cdbsubselect.c                  |  21 +-
 src/backend/cdb/cdbtargeteddispatch.c           |  21 +-
 src/backend/cdb/cdbthreadwork.c                 |  21 +-
 src/backend/cdb/cdbtimer.c                      |  23 +-
 src/backend/cdb/cdbtm.c                         |  21 +-
 src/backend/cdb/cdbtmpdir.c                     |  19 +
 src/backend/cdb/cdbutil.c                       |  21 +-
 src/backend/cdb/cdbvarblock.c                   |  22 +-
 src/backend/cdb/cdbvars.c                       |  22 +-
 src/backend/cdb/dispatcher.c                    |  19 +
 src/backend/cdb/dispatcher_mgt.c                |  19 +
 src/backend/cdb/executormgr.c                   |  19 +
 src/backend/cdb/motion/cdbmotion.c              |  21 +-
 src/backend/cdb/motion/htupfifo.c               |  21 +-
 src/backend/cdb/motion/ic_common.c              |  21 +-
 src/backend/cdb/motion/ic_tcp.c                 |  21 +-
 src/backend/cdb/motion/ic_udp.c                 |  23 +-
 src/backend/cdb/motion/tupchunklist.c           |  21 +-
 src/backend/cdb/motion/tupser.c                 |  21 +-
 src/backend/cdb/partitionselection.c            |  21 +-
 src/backend/cdb/poolmgr.c                       |  19 +
 src/backend/cdb/test/cdbbufferedread_test.c     |  19 +
 src/backend/cdb/test/cdbdisp_test.c             |  19 +
 src/backend/cdb/test/cdbinmemheapam_test.c      |  19 +
 .../cdb/test_discard/cdbbufferedread_test.c     |  19 +
 src/backend/cdb/test_discard/cdbdisp_test.c     |  19 +
 src/backend/cdb/workermgr.c                     |  19 +
 src/backend/executor/execAOScan.c               |  20 +-
 src/backend/executor/execBitmapParquetScan.c    |  19 +-
 src/backend/executor/execDML.c                  |  20 +-
 src/backend/executor/execDynamicScan.c          |  21 +-
 src/backend/executor/execGpmon.c                |  20 +-
 src/backend/executor/execIndexscan.c            |  20 +-
 src/backend/executor/execParquetScan.c          |  18 +
 src/backend/executor/execWorkfile.c             |  21 +-
 src/backend/executor/nodeAssertOp.c             |  20 +-
 src/backend/executor/nodeDML.c                  |  20 +-
 src/backend/executor/nodeDynamicIndexscan.c     |  19 +-
 src/backend/executor/nodeDynamicTableScan.c     |  20 +-
 src/backend/executor/nodeExternalscan.c         |  20 +-
 src/backend/executor/nodeMotion.c               |  20 +-
 src/backend/executor/nodeParquetScan.c          |  19 +
 src/backend/executor/nodePartitionSelector.c    |  21 +-
 src/backend/executor/nodeRepeat.c               |  21 +-
 src/backend/executor/nodeRowTrigger.c           |  20 +-
 src/backend/executor/nodeSequence.c             |  20 +-
 src/backend/executor/nodeSplitUpdate.c          |  20 +-
 src/backend/executor/nodeTableScan.c            |  19 +-
 src/backend/executor/nodeWindow.c               |  21 +-
 src/backend/postmaster/identity.c               |  20 +-
 .../communication/rmcomm_AsyncComm.c            |  19 +
 .../communication/rmcomm_Connect.c              |  19 +
 .../communication/rmcomm_Message.c              |  19 +
 .../communication/rmcomm_MessageHandler.c       |  19 +
 .../communication/rmcomm_MessageServer.c        |  19 +
 .../communication/rmcomm_QD2RM.c                |  19 +
 .../communication/rmcomm_QE2RMSEG.c             |  19 +
 .../communication/rmcomm_RM2RMSEG.c             |  19 +
 .../communication/rmcomm_RMSEG2RM.c             |  19 +
 .../communication/rmcomm_SyncComm.c             |  19 +
 src/backend/resourcemanager/conntrack.c         |  19 +
 src/backend/resourcemanager/errorcode.c         |  19 +
 src/backend/resourcemanager/hawqsite.c          |  19 +
 .../include/communication/rmcomm_AsyncComm.h    |  19 +
 .../include/communication/rmcomm_Connect.h      |  19 +
 .../include/communication/rmcomm_Message.h      |  19 +
 .../communication/rmcomm_MessageHandler.h       |  19 +
 .../communication/rmcomm_MessageProtocol.h      |  19 +
 .../communication/rmcomm_MessageServer.h        |  19 +
 .../include/communication/rmcomm_QD2RM.h        |  19 +
 .../communication/rmcomm_QD_RM_Protocol.h       |  19 +
 .../include/communication/rmcomm_QE2RM.h        |  19 +
 .../include/communication/rmcomm_QE2RMSEG.h     |  19 +
 .../communication/rmcomm_QE_RMSEG_Protocol.h    |  19 +
 .../include/communication/rmcomm_RM2GRM.h       |  19 +
 .../communication/rmcomm_RM2GRM_libyarn.h       |  19 +
 .../include/communication/rmcomm_RM2GRM_none.h  |  19 +
 .../include/communication/rmcomm_RM2RMSEG.h     |  19 +
 .../include/communication/rmcomm_RMSEG2RM.h     |  19 +
 .../communication/rmcomm_RMSEG_RM_Protocol.h    |  19 +
 .../communication/rmcomm_RM_RMSEG_Protocol.h    |  19 +
 .../include/communication/rmcomm_SyncComm.h     |  19 +
 src/backend/resourcemanager/include/conntrack.h |  19 +
 src/backend/resourcemanager/include/dynrm.h     |  19 +
 src/backend/resourcemanager/include/envswitch.h |  19 +
 src/backend/resourcemanager/include/errorcode.h |  19 +
 .../include/resourcebroker/resourcebroker_API.h |  19 +
 .../resourcebroker/resourcebroker_LIBYARN.h     |  19 +
 .../resourcebroker/resourcebroker_NONE.h        |  19 +
 .../resourcebroker_RM_RB_Protocol.h             |  19 +
 .../include/resourceenforcer/resourceenforcer.h |  19 +
 .../resourceenforcer/resourceenforcer_hash.h    |  19 +
 .../resourceenforcer/resourceenforcer_list.h    |  19 +
 .../resourceenforcer/resourceenforcer_message.h |  19 +
 .../resourceenforcer/resourceenforcer_pair.h    |  19 +
 .../resourceenforcer/resourceenforcer_queue.h   |  19 +
 .../resourceenforcer_simpstring.h               |  19 +
 .../resourcemanager/include/resourcemanager.h   |  19 +
 .../resourcemanager/include/resourcepool.h      |  19 +
 .../resourcemanager/include/resqueuecommand.h   |  19 +
 .../resourcemanager/include/resqueuedeadlock.h  |  19 +
 .../resourcemanager/include/resqueuemanager.h   |  19 +
 src/backend/resourcemanager/include/rmcommon.h  |  19 +
 .../resourcemanager/include/utils/balancedbst.h |  19 +
 .../include/utils/filesystem_utils.h            |  19 +
 .../resourcemanager/include/utils/hashtable.h   |  19 +
 .../include/utils/kvproperties.h                |  19 +
 .../resourcemanager/include/utils/linkedlist.h  |  19 +
 .../include/utils/memutilities.h                |  19 +
 .../include/utils/network_utils.h               |  19 +
 .../include/utils/nullablebool.h                |  19 +
 .../resourcemanager/include/utils/pair.h        |  19 +
 .../include/utils/simplestring.h                |  19 +
 src/backend/resourcemanager/requesthandler.c    |  19 +
 .../resourcemanager/requesthandler_RMSEG.c      |  19 +
 .../resourcemanager/requesthandler_ddl.c        |  19 +
 .../resourcebroker/resourcebroker_API.c         |  19 +
 .../resourcebroker/resourcebroker_LIBYARN.c     |  19 +
 .../resourcebroker_LIBYARN_proc.c               |  19 +
 .../resourcebroker/resourcebroker_NONE.c        |  19 +
 .../resourceenforcer/resourceenforcer.c         |  19 +
 .../resourceenforcer/resourceenforcer_hash.c    |  19 +
 .../resourceenforcer/resourceenforcer_list.c    |  19 +
 .../resourceenforcer/resourceenforcer_pair.c    |  19 +
 .../resourceenforcer/resourceenforcer_queue.c   |  19 +
 .../resourceenforcer_simpstring.c               |  19 +
 src/backend/resourcemanager/resourcemanager.c   |  19 +
 .../resourcemanager/resourcemanager_RMSEG.c     |  19 +
 src/backend/resourcemanager/resourcepool.c      |  19 +
 src/backend/resourcemanager/resqueuecommand.c   |  19 +
 src/backend/resourcemanager/resqueuedeadlock.c  |  19 +
 src/backend/resourcemanager/resqueuemanager.c   |  19 +
 .../resourcemanager/test/rpc/ResMgrClient.py    |  16 +
 src/backend/resourcemanager/utils/balancedbst.c |  19 +
 .../resourcemanager/utils/filesystem_utils.c    |  19 +
 src/backend/resourcemanager/utils/hashtable.c   |  19 +
 .../resourcemanager/utils/kvproperties.c        |  19 +
 src/backend/resourcemanager/utils/linkedlist.c  |  19 +
 .../resourcemanager/utils/memutilities.c        |  19 +
 .../resourcemanager/utils/network_utils.c       |  19 +
 src/backend/resourcemanager/utils/pair.c        |  19 +
 .../resourcemanager/utils/simplestring.c        |  19 +
 src/backend/utils/mdver/mdver_dep_translator.c  |  21 +-
 src/backend/utils/mdver/mdver_global_handler.c  |  21 +-
 src/backend/utils/mdver/mdver_global_mdvsn.c    |  21 +-
 src/backend/utils/mdver/mdver_local_handler.c   |  21 +-
 src/backend/utils/mdver/mdver_local_mdvsn.c     |  21 +-
 src/backend/utils/mdver/mdver_utils.c           |  21 +-
 src/backend/utils/misc/atomic.c                 |  21 +-
 src/backend/utils/misc/etc/hawq-site.xml        |  20 +
 src/backend/utils/misc/etc/hdfs-client.xml      |  20 +
 .../utils/misc/etc/template-hawq-site.xml       |  20 +
 src/backend/utils/misc/etc/yarn-client.xml      |  20 +
 src/backend/utils/misc/faultinjector.c          |  22 +-
 src/backend/utils/misc/fstream/fstream.c        |  19 +
 src/backend/utils/misc/fstream/gfile.c          |  19 +
 src/backend/utils/misc/netcheck.c               |  21 +-
 src/backend/utils/misc/simexsys.c               |  20 +-
 src/backend/utils/misc/size.c                   |  20 +-
 src/backend/utils/misc/syncbitvector.c          |  20 +-
 src/backend/utils/misc/test/atomic_test.c       |  19 +
 src/backend/utils/misc/test/guc_test.c          |  19 +
 src/backend/utils/misc/testutils.c              |  20 +-
 src/backend/utils/mmgr/event_version.c          |  22 +-
 src/backend/utils/mmgr/idle_tracker.c           |  21 +-
 src/backend/utils/mmgr/memaccounting.c          |  23 +-
 src/backend/utils/mmgr/memprot.c                |  23 +-
 src/backend/utils/mmgr/mpool.c                  |  19 +
 src/backend/utils/mmgr/redzone_handler.c        |  21 +-
 src/backend/utils/mmgr/runaway_cleaner.c        |  21 +-
 src/backend/utils/mmgr/test/aset_test.c         |  19 +
 .../utils/mmgr/test/event_version_test.c        |  19 +
 src/backend/utils/mmgr/test/idle_tracker_test.c |  19 +
 src/backend/utils/mmgr/test/mcxt_test.c         |  19 +
 .../utils/mmgr/test/memaccounting_test.c        |  19 +
 .../utils/mmgr/test/redzone_handler_test.c      |  19 +
 .../utils/mmgr/test/runaway_cleaner_test.c      |  19 +
 src/backend/utils/mmgr/test/vmem_tracker_test.c |  19 +
 src/backend/utils/mmgr/vmem_tracker.c           |  21 +-
 src/backend/utils/session_state.c               |  24 +-
 src/include/catalog/aoblkdir.h                  |  24 +-
 src/include/catalog/aoseg.h                     |  20 +-
 src/include/catalog/caqlparse.h                 |  18 +
 src/include/catalog/catcore.h                   |  18 +
 src/include/catalog/catquery.h                  |  21 +-
 src/include/catalog/gp_configuration.h          |  20 +-
 src/include/catalog/gp_fastsequence.h           |  21 +-
 src/include/catalog/gp_global_sequence.h        |  21 +-
 src/include/catalog/gp_id.h                     |  20 +-
 src/include/catalog/gp_master_mirroring.h       |  18 +
 src/include/catalog/gp_persistent.h             |  20 +-
 src/include/catalog/gp_policy.h                 |  20 +-
 src/include/catalog/gp_san_config.h             |  20 +-
 src/include/catalog/gp_segment_config.h         |  20 +-
 src/include/catalog/gp_verification_history.h   |  19 +-
 src/include/catalog/hcatalog/externalmd.h       |  18 +
 src/include/catalog/hcatalog/hcatalogmd.h       |  18 +
 src/include/cdb/cdbanalyze.h                    |  21 +-
 src/include/cdb/cdbappendonlyblockdirectory.h   |  21 +-
 src/include/cdb/cdbappendonlystorage.h          |  21 +-
 src/include/cdb/cdbappendonlystorage_int.h      |  23 +-
 src/include/cdb/cdbappendonlystorageformat.h    |  21 +-
 src/include/cdb/cdbappendonlystoragelayer.h     |  21 +-
 src/include/cdb/cdbappendonlystorageread.h      |  21 +-
 src/include/cdb/cdbappendonlystoragewrite.h     |  21 +-
 src/include/cdb/cdbbackup.h                     |  19 +
 src/include/cdb/cdbbufferedappend.h             |  23 +-
 src/include/cdb/cdbbufferedread.h               |  21 +-
 src/include/cdb/cdbcat.h                        |  21 +-
 src/include/cdb/cdbcellbuf.h                    |  21 +-
 src/include/cdb/cdbchunkpool.h                  |  21 +-
 src/include/cdb/cdbconn.h                       |  20 +-
 src/include/cdb/cdbcopy.h                       |  21 +-
 src/include/cdb/cdbdatabaseinfo.h               |  20 +-
 src/include/cdb/cdbdatalocality.h               |  21 +-
 src/include/cdb/cdbdef.h                        |  21 +-
 src/include/cdb/cdbdirectopen.h                 |  21 +-
 src/include/cdb/cdbdisp.h                       |  21 +-
 src/include/cdb/cdbdispatchedtablespaceinfo.h   |  21 +-
 src/include/cdb/cdbdispatchresult.h             |  21 +-
 src/include/cdb/cdbdoublylinked.h               |  21 +-
 src/include/cdb/cdbexplain.h                    |  21 +-
 src/include/cdb/cdbfilerep.h                    |  21 +-
 src/include/cdb/cdbfilesystemcredential.h       |  21 +-
 src/include/cdb/cdbfts.h                        |  19 +
 src/include/cdb/cdbgang.h                       |  20 +-
 src/include/cdb/cdbglobalsequence.h             |  20 +-
 src/include/cdb/cdbhash.h                       |  20 +-
 src/include/cdb/cdbheap.h                       |  20 +-
 src/include/cdb/cdbicudpfaultinjection.h        |  19 +
 src/include/cdb/cdbinmemheapam.h                |  20 +-
 src/include/cdb/cdbinterconnect.h               |  20 +-
 src/include/cdb/cdbllize.h                      |  20 +-
 src/include/cdb/cdblogsync.h                    |  19 +
 src/include/cdb/cdbmetadatacache.h              |  19 +
 src/include/cdb/cdbmetadatacache_internal.h     |  19 +
 src/include/cdb/cdbmirroredappendonly.h         |  20 +-
 src/include/cdb/cdbmirroredbufferpool.h         |  20 +-
 src/include/cdb/cdbmirroredfilesysobj.h         |  20 +-
 src/include/cdb/cdbmirroredflatfile.h           |  21 +-
 src/include/cdb/cdbmotion.h                     |  21 +-
 src/include/cdb/cdbmutate.h                     |  21 +-
 src/include/cdb/cdboidsync.h                    |  19 +
 src/include/cdb/cdbparquetam.h                  |  19 +
 src/include/cdb/cdbparquetbitstreamutils.h      |  19 +
 src/include/cdb/cdbparquetbytepacker.h          |  19 +
 src/include/cdb/cdbparquetcolumn.h              |  19 +
 src/include/cdb/cdbparquetfooterbuffer.h        |  22 +-
 src/include/cdb/cdbparquetfooterprocessor.h     |  19 +
 src/include/cdb/cdbparquetfooterserializer.h    |  19 +
 .../cdb/cdbparquetfooterserializer_protocol.h   |  19 +
 src/include/cdb/cdbparquetrleencoder.h          |  19 +
 src/include/cdb/cdbparquetrowgroup.h            |  19 +
 src/include/cdb/cdbparquetstorageread.h         |  19 +
 src/include/cdb/cdbparquetstoragewrite.h        |  19 +
 src/include/cdb/cdbpartition.h                  |  21 +-
 src/include/cdb/cdbpath.h                       |  21 +-
 src/include/cdb/cdbpathlocus.h                  |  20 +-
 src/include/cdb/cdbpathtoplan.h                 |  20 +-
 src/include/cdb/cdbpersistentdatabase.h         |  20 +-
 src/include/cdb/cdbpersistentfilespace.h        |  20 +-
 src/include/cdb/cdbpersistentfilesysobj.h       |  20 +-
 src/include/cdb/cdbpersistentrecovery.h         |  20 +-
 src/include/cdb/cdbpersistentrelation.h         |  20 +-
 src/include/cdb/cdbpersistentrelfile.h          |  20 +-
 src/include/cdb/cdbpersistentstore.h            |  21 +-
 src/include/cdb/cdbpersistenttablespace.h       |  20 +-
 src/include/cdb/cdbplan.h                       |  20 +-
 src/include/cdb/cdbptrbuf.h                     |  20 +-
 src/include/cdb/cdbpublic.h                     |  20 +-
 src/include/cdb/cdbpullup.h                     |  20 +-
 src/include/cdb/cdbquerycontextdispatching.h    |  20 +-
 src/include/cdb/cdbrelsize.h                    |  20 +-
 .../cdb/cdbresynchronizechangetracking.h        |  20 +-
 src/include/cdb/cdbselect.h                     |  20 +-
 src/include/cdb/cdbsetop.h                      |  20 +-
 src/include/cdb/cdbshareddoublylinked.h         | 210 ++---
 src/include/cdb/cdbsharedoidsearch.h            |  20 +-
 src/include/cdb/cdbsharedstorageop.h            |  20 +-
 src/include/cdb/cdbsreh.h                       |  20 +-
 src/include/cdb/cdbsrlz.h                       |  20 +-
 src/include/cdb/cdbsubplan.h                    |  20 +-
 src/include/cdb/cdbsubselect.h                  |  20 +-
 src/include/cdb/cdbtargeteddispatch.h           |  20 +-
 src/include/cdb/cdbthreadwork.h                 |  20 +-
 src/include/cdb/cdbtimer.h                      |  20 +-
 src/include/cdb/cdbtmpdir.h                     |  19 +
 src/include/cdb/cdbutil.h                       |  20 +-
 src/include/cdb/cdbvarblock.h                   |  21 +-
 src/include/cdb/cdbvars.h                       |  20 +-
 src/include/cdb/dispatcher.h                    |  19 +
 src/include/cdb/dispatcher_mgt.h                |  19 +
 src/include/cdb/executormgr.h                   |  20 +-
 src/include/cdb/htupfifo.h                      |  20 +-
 src/include/cdb/memquota.h                      |  20 +-
 src/include/cdb/ml_ipc.h                        |  20 +-
 src/include/cdb/partitionselection.h            |  20 +-
 src/include/cdb/poolmgr.h                       |  19 +
 src/include/cdb/tupchunk.h                      |  20 +-
 src/include/cdb/tupchunklist.h                  |  20 +-
 src/include/cdb/tupser.h                        |  20 +-
 src/include/cdb/workermgr.h                     |  21 +-
 src/include/executor/execDML.h                  |  20 +-
 src/include/executor/execDynamicScan.h          |  20 +-
 src/include/executor/execIndexscan.h            |  20 +-
 src/include/executor/execWorkfile.h             |  20 +-
 src/include/executor/nodeAssertOp.h             |  20 +-
 src/include/executor/nodeDML.h                  |  20 +-
 src/include/executor/nodeDynamicIndexscan.h     |  20 +-
 src/include/executor/nodeDynamicTableScan.h     |  19 +-
 src/include/executor/nodeExternalscan.h         |  20 +-
 src/include/executor/nodeParquetScan.h          |  18 +
 src/include/executor/nodePartitionSelector.h    |  20 +-
 src/include/executor/nodeRepeat.h               |  28 +-
 src/include/executor/nodeRowTrigger.h           |  20 +-
 src/include/executor/nodeSequence.h             |  19 +-
 src/include/executor/nodeSplitUpdate.h          |  20 +-
 src/include/executor/nodeTableFunction.h        |  20 +-
 src/include/executor/nodeTableScan.h            |  19 +-
 src/include/executor/nodeWindow.h               |  21 +-
 src/include/utils/session_state.h               |  20 +-
 750 files changed, 14387 insertions(+), 2385 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..636755e
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,361 @@
+Apache HAWQ (incubating) 
+Copyright 2015 The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+The following is a listing of the open source components detailed in
+this document. This list is provided for your convenience; please read
+further if you wish to review the copyright notice(s) and the full text
+of the license associated with each component.
+
+SECTION 1: Apache License, V2.0
+
+   >>> Hadoop
+   >>> HBase
+   >>> Tomcat
+   >>> Commons Codec
+   >>> Commons Collections
+   >>> Commons Configuration
+   >>> Commons Lang
+   >>> Commons Logging
+   >>> Avro
+   >>> log4j
+   >>> gradle
+   >>> gradle-download-task
+   >>> Jackson JSON processor databind
+   >>> Powermock
+   >>> Parquet
+
+SECTION 2: CDDL 1.1
+   >>> Jersey
+
+SECTION 3: Eclipse Public License - v 1.0
+   >>> JUnit
+
+SECTION 4: BSD
+   >>> Protocol Buffers
+
+SECTION 5: MIT
+   >>> Mockito
+
+-------- SECTION 1: Apache License, V2.0 Detailed List to include for NOTICE --------
+
+>>> Hadoop
+This product includes software developed by The Apache Software
+Foundation (http://www.apache.org/).
+
+>>> HBase
+Apache HBase
+Copyright 2007-2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+--
+This product incorporates portions of the 'Hadoop' project
+
+Copyright 2007-2009 The Apache Software Foundation
+
+Licensed under the Apache License v2.0
+--
+Our Orca logo we got here: http://www.vectorfree.com/jumping-orca
+It is licensed Creative Commons Attribution 3.0.
+See https://creativecommons.org/licenses/by/3.0/us/
+We changed the logo by stripping the colored background, inverting
+it and then rotating it some.
+
+Later we found that vectorfree.com image is not properly licensed.
+The original is owned by vectorportal.com. The original was
+relicensed so we could use it as Creative Commons Attribution 3.0.
+The license is bundled with the download available here:
+http://www.vectorportal.com/subcategory/205/KILLER-WHALE-FREE-VECTOR.eps/ifile/9136/detailtest.asp
+--
+This product includes portions of the Bootstrap project v3.0.0
+
+Copyright 2013 Twitter, Inc.
+
+Licensed under the Apache License v2.0
+
+This product uses the Glyphicons Halflings icon set.
+
+http://glyphicons.com/
+
+Copyright Jan Kovařík
+
+Licensed under the Apache License v2.0 as a part of the Bootstrap project.
+
+--
+This product includes portions of the Guava project v14, specifically
+'hbase-common/src/main/java/org/apache/hadoop/hbase/io/LimitInputStream.java'
+
+Copyright (C) 2007 The Guava Authors
+
+Licensed under the Apache License, Version 2.0
+
+>>> Tomcat
+Apache Tomcat
+Copyright 1999-2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+This software contains code derived from netty-native
+developed by the Netty project
+(http://netty.io, https://github.com/netty/netty-tcnative/)
+and from finagle-native developed at Twitter
+(https://github.com/twitter/finagle).
+
+The Windows Installer is built with the Nullsoft
+Scriptable Install System (NSIS), which is
+open source software.  The original software and
+related information is available at
+http://nsis.sourceforge.net.
+
+Java compilation software for JSP pages is provided by the Eclipse
+JDT Core Batch Compiler component, which is open source software.
+The original software and related information is available at
+http://www.eclipse.org/jdt/core/.
+
+For portions of the Tomcat JNI OpenSSL API and the OpenSSL JSSE integration
+The org.apache.tomcat.jni and the org.apache.tomcat.net.openssl packages
+are derivative work originating from the Netty project and the finagle-native
+project developed at Twitter
+* Copyright 2014 The Netty Project
+* Copyright 2014 Twitter
+
+The original XML Schemas for Java EE Deployment Descriptors:
+ - javaee_5.xsd
+ - javaee_web_services_1_2.xsd
+ - javaee_web_services_client_1_2.xsd
+ - javaee_6.xsd
+ - javaee_web_services_1_3.xsd
+ - javaee_web_services_client_1_3.xsd
+ - jsp_2_2.xsd
+ - web-app_3_0.xsd
+ - web-common_3_0.xsd
+ - web-fragment_3_0.xsd
+ - javaee_7.xsd
+ - javaee_web_services_1_4.xsd
+ - javaee_web_services_client_1_4.xsd
+ - jsp_2_3.xsd
+ - web-app_3_1.xsd
+ - web-common_3_1.xsd
+ - web-fragment_3_1.xsd
+
+may be obtained from:
+http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html
+
+>>> Commons Codec
+Apache Commons Codec
+Copyright 2002-2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java
+contains test data from http://aspell.net/test/orig/batch0.tab.
+Copyright (C) 2002 Kevin Atkinson (kevina@gnu.org)
+
+===============================================================================
+
+The content of package org.apache.commons.codec.language.bm has been translated
+from the original php source code available at http://stevemorse.org/phoneticinfo.htm
+with permission from the original authors.
+Original source copyright:
+Copyright (c) 2008 Alexander Beider & Stephen P. Morse.
+
+>>> Commons Collections
+Apache Commons Collections
+Copyright 2001-2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+>>> Commons Configuration
+Apache Commons Configuration
+Copyright 2001-2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+>>> Commons Lang
+Apache Commons Lang
+Copyright 2001-2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+This product includes software from the Spring Framework,
+under the Apache License 2.0 (see: StringUtils.containsWhitespace())
+
+>>> Commons Logging
+Apache Commons Logging
+Copyright 2003-2014 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+>>> Avro
+Apache Avro
+Copyright 2010 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+C JSON parsing provided by Jansson and
+written by Petri Lehtinen. The original software is
+available from http://www.digip.org/jansson/.
+
+>>> log4j
+Apache log4j
+Copyright 2010 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+>>> gradle
+Copyright 2007-2011 the original author or authors
+
+Licensed 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.
+
+>>> gradle-download-task
+The plugin is licensed under the Apache License, Version 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.
+
+>>> Jackson JSON processor databind
+This copy of Jackson JSON processor databind module is licensed under the
+Apache (Software) License, version 2.0 ("the License").
+See the License for details about distribution rights, and the
+specific rights regarding derivate works.
+
+You may obtain a copy of the License at:
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+>>> Powermock
+You may obtain a copy of the License at:
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+>>> Parquet
+Copyright 2014 Apache Software Foundation
+Licensed under the Apache License v2.0
+
+http://parquet.apache.org
+
+-------- SECTION 2 CDDL v1.1 Detailed List to include for NOTICE --------
+>>> Jersey
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+Classpath Exception to the GPL
+Certain source files distributed by Oracle America and/or its affiliates are subject to the following clarification and special exception to the GPL, but only where Oracle has expressly included in the particular source file’s header the words “Oracle designates this particular file as subject to the ”Classpath“ exception as provided by Oracle in the LICENSE file that accompanied this code.”
+
+	Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination.
+	As a special exception, the copyright holders of this library
+	give you permission to link this library with independent modules
+	to produce an executable, regardless of the license terms of these
+	independent modules, and to copy and distribute the resulting
+	executable under terms of your choice, provided that you also meet,
+	for each linked independent module, the terms and conditions of the
+	license of that module.  An independent module is a module which is
+	not derived from or based on this library.  If you modify this
+	library, you may extend this exception to your version of the
+	library, but you are not obligated to do so.  If you do not wish to
+	do so, delete this exception statement from your version.
+
+
+-------- SECTION 3 Eclipse Public License - v 1.0 Detailed List to include for NOTICE --------
+ 
+ >>> JUnit
+   ===================================================================================
+   ==  Notices and attributions required by libraries that the project depends on   ==
+   ===================================================================================
+
+ The JUnit depends on Java Hamcrest (http://hamcrest.org/JavaHamcrest/).
+
+-------- SECTION 4 Google License Detailed List to include for NOTICE --------
+>>> protocol buffers
+
+This license applies to all parts of Protocol Buffers except the following:
+
+  - Atomicops support for generic gcc, located in
+    src/google/protobuf/stubs/atomicops_internals_generic_gcc.h.
+    This file is copyrighted by Red Hat Inc.
+
+  - Atomicops support for AIX/POWER, located in
+    src/google/protobuf/stubs/atomicops_internals_aix.h.
+    This file is copyrighted by Bloomberg Finance LP.
+
+Copyright 2014, Google Inc.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+    * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Code generated by the Protocol Buffer compiler is owned by the owner
+of the input file used when generating it.  This code is not
+standalone and requires a support library to be linked with it.  This
+support library is itself covered by the above license.
+
+
+-------- SECTION 5 MIT License Detailed List to include for NOTICE --------
+>>> Mockito
+The MIT License
+
+Copyright (c) 2007 Mockito contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/MockApplicationClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationClient.h b/depends/libyarn/mock/MockApplicationClient.h
index d094adb..f097519 100644
--- a/depends/libyarn/mock/MockApplicationClient.h
+++ b/depends/libyarn/mock/MockApplicationClient.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.
+ */
+
+/*
  * MockApplicationClient.h
  *
  *  Created on: Mar 11, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/MockApplicationClientProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationClientProtocol.h b/depends/libyarn/mock/MockApplicationClientProtocol.h
index f563304..04a46db 100644
--- a/depends/libyarn/mock/MockApplicationClientProtocol.h
+++ b/depends/libyarn/mock/MockApplicationClientProtocol.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.
+ */
+
+/*
  * MockApplicationClientProtocol.h
  *
  *  Created on: Mar 5, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/MockApplicationMaster.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationMaster.h b/depends/libyarn/mock/MockApplicationMaster.h
index cbf3340..b3fa96b 100644
--- a/depends/libyarn/mock/MockApplicationMaster.h
+++ b/depends/libyarn/mock/MockApplicationMaster.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.
+ */
+
+/*
  * MockApplicationMaster.h
  *
  *  Created on: Mar 11, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/MockApplicationMasterProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationMasterProtocol.h b/depends/libyarn/mock/MockApplicationMasterProtocol.h
index c2e81aa..a81dacf 100644
--- a/depends/libyarn/mock/MockApplicationMasterProtocol.h
+++ b/depends/libyarn/mock/MockApplicationMasterProtocol.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.
+ */
+
+/*
  * MockApplicationMasterProtocol.h
  *
  *  Created on: Mar 6, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/MockContainerManagement.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockContainerManagement.h b/depends/libyarn/mock/MockContainerManagement.h
index c970d5a..9f293f2 100644
--- a/depends/libyarn/mock/MockContainerManagement.h
+++ b/depends/libyarn/mock/MockContainerManagement.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.
+ */
+
+/*
  * MockContainerManagement.h
  *
  *  Created on: Mar 11, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/MockContainerManagementProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockContainerManagementProtocol.h b/depends/libyarn/mock/MockContainerManagementProtocol.h
index 2ef59ad..0d7268e 100644
--- a/depends/libyarn/mock/MockContainerManagementProtocol.h
+++ b/depends/libyarn/mock/MockContainerManagementProtocol.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.
+ */
+
+/*
  * MockContainerManagementProtocol.h
  *
  *  Created on: Mar 9, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/MockLibYarnClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockLibYarnClient.h b/depends/libyarn/mock/MockLibYarnClient.h
index fb00d18..9e763e0 100644
--- a/depends/libyarn/mock/MockLibYarnClient.h
+++ b/depends/libyarn/mock/MockLibYarnClient.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.
+ */
+
+/*
  * MockLibYarnClient.h
  *
  *  Created on: Mar 3, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/TestContainerManagementStub.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/TestContainerManagementStub.h b/depends/libyarn/mock/TestContainerManagementStub.h
index c8004a3..8531e60 100644
--- a/depends/libyarn/mock/TestContainerManagementStub.h
+++ b/depends/libyarn/mock/TestContainerManagementStub.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.
+ */
+
+/*
  * TestContainerManagementStub.h
  *
  *  Created on: Mar 9, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/mock/TestLibYarnClientStub.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/TestLibYarnClientStub.h b/depends/libyarn/mock/TestLibYarnClientStub.h
index 1cd2a94..bc1940b 100644
--- a/depends/libyarn/mock/TestLibYarnClientStub.h
+++ b/depends/libyarn/mock/TestLibYarnClientStub.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.
+ */
+
+/*
  * TestLibYarnClientStub.h
  *
  *  Created on: Mar 11, 2015

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/bin/cleanup-phd.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/bin/cleanup-phd.sh b/depends/libyarn/releng/bin/cleanup-phd.sh
old mode 100755
new mode 100644
index 47ced42..7a9c2ff
--- a/depends/libyarn/releng/bin/cleanup-phd.sh
+++ b/depends/libyarn/releng/bin/cleanup-phd.sh
@@ -1,4 +1,20 @@
 #!/bin/sh
+# 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.
 
 if [ "x${DATA_PATH}" != "x" ]; then
 	if [ -e ${DATA_PATH} ]; then

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/bin/gphdinst.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/bin/gphdinst.sh b/depends/libyarn/releng/bin/gphdinst.sh
old mode 100755
new mode 100644
index 57dea83..99b7085
--- a/depends/libyarn/releng/bin/gphdinst.sh
+++ b/depends/libyarn/releng/bin/gphdinst.sh
@@ -1,4 +1,20 @@
 #!/bin/bash
+# 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.
 ## ======================================================================
 ## TODO
 ## * make script work for single and muli-node installs

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/bin/ha_failover.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/bin/ha_failover.sh b/depends/libyarn/releng/bin/ha_failover.sh
old mode 100755
new mode 100644
index 081699d..f596041
--- a/depends/libyarn/releng/bin/ha_failover.sh
+++ b/depends/libyarn/releng/bin/ha_failover.sh
@@ -1,4 +1,20 @@
 #!/bin/bash
+# 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.
 
 nn1_status=`/usr/bin/hdfs haadmin -getServiceState nn1`
 echo nn1 status is: $nn1_status

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/bin/install-phd.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/bin/install-phd.sh b/depends/libyarn/releng/bin/install-phd.sh
old mode 100755
new mode 100644
index 395fe9b..4d63191
--- a/depends/libyarn/releng/bin/install-phd.sh
+++ b/depends/libyarn/releng/bin/install-phd.sh
@@ -1,4 +1,20 @@
 #!/bin/sh
+# 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.
 
 if [ -z ${DATA_PATH} ]; then
 	echo "DATA_PATH not set"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/bin/setup_gphdinst.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/bin/setup_gphdinst.sh b/depends/libyarn/releng/bin/setup_gphdinst.sh
old mode 100755
new mode 100644
index 7fe0ea4..64a82c1
--- a/depends/libyarn/releng/bin/setup_gphdinst.sh
+++ b/depends/libyarn/releng/bin/setup_gphdinst.sh
@@ -1,4 +1,20 @@
 #!/bin/bash
+# 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.
 #
 # Usage: ./setup_gphdinst.sh setup / start HK / stop HK 
 # HK means this is for HA/Kerberos

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/bin/templates/log4j-ha.properties
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/bin/templates/log4j-ha.properties b/depends/libyarn/releng/bin/templates/log4j-ha.properties
index a4d03fe..88c4a75 100644
--- a/depends/libyarn/releng/bin/templates/log4j-ha.properties
+++ b/depends/libyarn/releng/bin/templates/log4j-ha.properties
@@ -1,3 +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.
+
 # Define some default values that can be overridden by system properties
 zookeeper.root.logger=INFO, CONSOLE
 zookeeper.console.threshold=INFO

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/etc/ivy.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/etc/ivy.xml b/depends/libyarn/releng/etc/ivy.xml
index 808ab8f..3356da4 100644
--- a/depends/libyarn/releng/etc/ivy.xml
+++ b/depends/libyarn/releng/etc/ivy.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <ivy-module version="2.0">
   <info organisation="Pivotal" module="libyarn" revision="<version>" status="release" publication="<time>">
     <license name="Pivotal"/>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/make/dependencies/build.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/make/dependencies/build.xml b/depends/libyarn/releng/make/dependencies/build.xml
index a83916c..26236f0 100644
--- a/depends/libyarn/releng/make/dependencies/build.xml
+++ b/depends/libyarn/releng/make/dependencies/build.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <project name="cdb2" default="resolve" xmlns:ivy="antlib:org.apache.ivy.ant">
 
   <target name="resolve" if="BLD_ARCH">

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/make/dependencies/ivy.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/make/dependencies/ivy.sh b/depends/libyarn/releng/make/dependencies/ivy.sh
old mode 100755
new mode 100644
index 06ccd1e..540e42e
--- a/depends/libyarn/releng/make/dependencies/ivy.sh
+++ b/depends/libyarn/releng/make/dependencies/ivy.sh
@@ -1,4 +1,20 @@
 #!/bin/bash
+# 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.
 ## ======================================================================
 ## Post download untar trigger : For EXT 
 ## ======================================================================

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/make/dependencies/ivy.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/make/dependencies/ivy.xml b/depends/libyarn/releng/make/dependencies/ivy.xml
index 6249170..f3ba333 100644
--- a/depends/libyarn/releng/make/dependencies/ivy.xml
+++ b/depends/libyarn/releng/make/dependencies/ivy.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <ivy-module version="2.0">
     <info organisation="Pivotal"
           module="libyarn" />

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/make/dependencies/ivy_util.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/make/dependencies/ivy_util.sh b/depends/libyarn/releng/make/dependencies/ivy_util.sh
old mode 100755
new mode 100644
index 31f545f..37545a3
--- a/depends/libyarn/releng/make/dependencies/ivy_util.sh
+++ b/depends/libyarn/releng/make/dependencies/ivy_util.sh
@@ -1,4 +1,20 @@
 #!/bin/bash
+# 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.
 ## ======================================================================
 ## Post download untar trigger
 ## ======================================================================

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/make/dependencies/ivysettings.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/make/dependencies/ivysettings.xml b/depends/libyarn/releng/make/dependencies/ivysettings.xml
index 256058a..236f5f7 100644
--- a/depends/libyarn/releng/make/dependencies/ivysettings.xml
+++ b/depends/libyarn/releng/make/dependencies/ivysettings.xml
@@ -1,4 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
 <ivysettings>
 
   <!-- ====================================================================== -->

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/publish/ivy.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/publish/ivy.xml b/depends/libyarn/releng/publish/ivy.xml
index 30fdb55..64a9e5d 100644
--- a/depends/libyarn/releng/publish/ivy.xml
+++ b/depends/libyarn/releng/publish/ivy.xml
@@ -1,3 +1,23 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->
+
 <ivy-module version="2.0">
   <info organisation="Pivotal" module="libyarn"/>
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/publish/ivysettings.xml
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/publish/ivysettings.xml b/depends/libyarn/releng/publish/ivysettings.xml
index d26ca1d..f825c4e 100644
--- a/depends/libyarn/releng/publish/ivysettings.xml
+++ b/depends/libyarn/releng/publish/ivysettings.xml
@@ -1,4 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
 <ivysettings>
 
   <!-- ====================================================================== -->



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/test/rpc/ResMgrClient.py
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/test/rpc/ResMgrClient.py b/src/backend/resourcemanager/test/rpc/ResMgrClient.py
index 6e6f3f0..d9809a8 100644
--- a/src/backend/resourcemanager/test/rpc/ResMgrClient.py
+++ b/src/backend/resourcemanager/test/rpc/ResMgrClient.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 socket, time, random, math
 from optparse import OptionParser
 from threading import Thread

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/balancedbst.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/balancedbst.c b/src/backend/resourcemanager/utils/balancedbst.c
index a7d1759..b4f2c16 100644
--- a/src/backend/resourcemanager/utils/balancedbst.c
+++ b/src/backend/resourcemanager/utils/balancedbst.c
@@ -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.
+ */
+
 #include "utils/balancedbst.h"
 #include "envswitch.h"
 #include "errorcode.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/filesystem_utils.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/filesystem_utils.c b/src/backend/resourcemanager/utils/filesystem_utils.c
index 86a2e3e..fd58603 100644
--- a/src/backend/resourcemanager/utils/filesystem_utils.c
+++ b/src/backend/resourcemanager/utils/filesystem_utils.c
@@ -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.
+ */
+
 #include "utils/filesystem_utils.h"
 #include <sys/stat.h>
 #include <unistd.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/hashtable.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/hashtable.c b/src/backend/resourcemanager/utils/hashtable.c
index 5c134db..6c95347 100644
--- a/src/backend/resourcemanager/utils/hashtable.c
+++ b/src/backend/resourcemanager/utils/hashtable.c
@@ -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.
+ */
+
 #include "utils/hashtable.h"
 #include "utils/simplestring.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/kvproperties.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/kvproperties.c b/src/backend/resourcemanager/utils/kvproperties.c
index d04e260..80b5284 100644
--- a/src/backend/resourcemanager/utils/kvproperties.c
+++ b/src/backend/resourcemanager/utils/kvproperties.c
@@ -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.
+ */
+
 #include "utils/kvproperties.h"
 
 #include <libxml/xmlreader.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/linkedlist.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/linkedlist.c b/src/backend/resourcemanager/utils/linkedlist.c
index 6479ab2..ad9267d 100644
--- a/src/backend/resourcemanager/utils/linkedlist.c
+++ b/src/backend/resourcemanager/utils/linkedlist.c
@@ -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.
+ */
+
 #include "utils/linkedlist.h"
 
 #include "envswitch.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/memutilities.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/memutilities.c b/src/backend/resourcemanager/utils/memutilities.c
index 46ab806..abea3af 100644
--- a/src/backend/resourcemanager/utils/memutilities.c
+++ b/src/backend/resourcemanager/utils/memutilities.c
@@ -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.
+ */
+
 #include "utils/memutilities.h"
 #include "envswitch.h"
 #include "dynrm.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/network_utils.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/network_utils.c b/src/backend/resourcemanager/utils/network_utils.c
index 462e085..f3c6cda 100644
--- a/src/backend/resourcemanager/utils/network_utils.c
+++ b/src/backend/resourcemanager/utils/network_utils.c
@@ -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.
+ */
+
 #include "utils/network_utils.h"
 #include "utils/memutilities.h"
 #include "miscadmin.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/pair.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/pair.c b/src/backend/resourcemanager/utils/pair.c
index a8f80ec..638c6dd 100644
--- a/src/backend/resourcemanager/utils/pair.c
+++ b/src/backend/resourcemanager/utils/pair.c
@@ -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.
+ */
+
 #include "utils/pair.h"
 
 void freePAIR(PAIR pair)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/resourcemanager/utils/simplestring.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/simplestring.c b/src/backend/resourcemanager/utils/simplestring.c
index 7a57171..3725359 100644
--- a/src/backend/resourcemanager/utils/simplestring.c
+++ b/src/backend/resourcemanager/utils/simplestring.c
@@ -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.
+ */
+
 #include "envswitch.h"
 #include "utils/simplestring.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mdver/mdver_dep_translator.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mdver/mdver_dep_translator.c b/src/backend/utils/mdver/mdver_dep_translator.c
index 03a638a..c41effc 100644
--- a/src/backend/utils/mdver/mdver_dep_translator.c
+++ b/src/backend/utils/mdver/mdver_dep_translator.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * mdver_dep_translator.c
  *	 Implementation of Dependency Translator (DT) for metadata versioning
  *
- * Copyright (c) 2014, Pivotal, Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mdver/mdver_global_handler.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mdver/mdver_global_handler.c b/src/backend/utils/mdver/mdver_global_handler.c
index 261e552..d1da474 100644
--- a/src/backend/utils/mdver/mdver_global_handler.c
+++ b/src/backend/utils/mdver/mdver_global_handler.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * mdver_global_handler.c
  *	 Implementation of Global VE Handler for metadata versioning
  *
- * Copyright (c) 2014, Pivotal, Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mdver/mdver_global_mdvsn.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mdver/mdver_global_mdvsn.c b/src/backend/utils/mdver/mdver_global_mdvsn.c
index acae7d1..ffaa736 100644
--- a/src/backend/utils/mdver/mdver_global_mdvsn.c
+++ b/src/backend/utils/mdver/mdver_global_mdvsn.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * mdver_global_mdvsn.c
  *	 Implementation of Global MDVSN for metadata versioning
  *
- * Copyright (c) 2014, Pivotal, Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mdver/mdver_local_handler.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mdver/mdver_local_handler.c b/src/backend/utils/mdver/mdver_local_handler.c
index 1c44a55..0e14653 100644
--- a/src/backend/utils/mdver/mdver_local_handler.c
+++ b/src/backend/utils/mdver/mdver_local_handler.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * mdver_local_handler.c
  *	 Implementation of Local VE Handler for metadata versioning
  *
- * Copyright (c) 2014, Pivotal, Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mdver/mdver_local_mdvsn.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mdver/mdver_local_mdvsn.c b/src/backend/utils/mdver/mdver_local_mdvsn.c
index 08abb3d..87fa540 100644
--- a/src/backend/utils/mdver/mdver_local_mdvsn.c
+++ b/src/backend/utils/mdver/mdver_local_mdvsn.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * mdver_local_mdvsn.c
  *	 Implementation of Local MDVSN for metadata versioning
  *
- * Copyright (c) 2014, Pivotal, Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mdver/mdver_utils.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mdver/mdver_utils.c b/src/backend/utils/mdver/mdver_utils.c
index 56bce01..33b487c 100644
--- a/src/backend/utils/mdver/mdver_utils.c
+++ b/src/backend/utils/mdver/mdver_utils.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * mdver_utils.c
  *	 Utility functions for metadata versioning
  *
- * Copyright (c) 2014, Pivotal, Inc.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/atomic.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/atomic.c b/src/backend/utils/misc/atomic.c
index 42f4b12..502c20c 100644
--- a/src/backend/utils/misc/atomic.c
+++ b/src/backend/utils/misc/atomic.c
@@ -1,8 +1,25 @@
 /*
+ * 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.
+ */
+
+/*
  * atomic.c
  *    routines for atomic operations.
- *
- * Copyright (c) 2011 - present, EMC DCD (Greenplum)
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/etc/hawq-site.xml
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/etc/hawq-site.xml b/src/backend/utils/misc/etc/hawq-site.xml
index 97aa45b..8323c23 100644
--- a/src/backend/utils/misc/etc/hawq-site.xml
+++ b/src/backend/utils/misc/etc/hawq-site.xml
@@ -1,4 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
 <configuration>
     <property>
         <name>hawq_master_address_host</name>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/etc/hdfs-client.xml
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/etc/hdfs-client.xml b/src/backend/utils/misc/etc/hdfs-client.xml
index d3f6344..ad717cc 100644
--- a/src/backend/utils/misc/etc/hdfs-client.xml
+++ b/src/backend/utils/misc/etc/hdfs-client.xml
@@ -1,5 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
+<!--
+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.
+-->
+
+
 <configuration>
 
 <!-- KDC

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/etc/template-hawq-site.xml
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/etc/template-hawq-site.xml b/src/backend/utils/misc/etc/template-hawq-site.xml
index 21e1fd3..d85d9d1 100644
--- a/src/backend/utils/misc/etc/template-hawq-site.xml
+++ b/src/backend/utils/misc/etc/template-hawq-site.xml
@@ -1,4 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
 <configuration>
     <property>
         <name>hawq_master_address_host</name>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/etc/yarn-client.xml
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/etc/yarn-client.xml b/src/backend/utils/misc/etc/yarn-client.xml
index 7e68ad5..6a5be71 100644
--- a/src/backend/utils/misc/etc/yarn-client.xml
+++ b/src/backend/utils/misc/etc/yarn-client.xml
@@ -1,5 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
+<!--
+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.
+-->
+
+
 <configuration>
 
 <!-- KDC

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/faultinjector.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/faultinjector.c b/src/backend/utils/misc/faultinjector.c
index 15e75fd..60af41d 100644
--- a/src/backend/utils/misc/faultinjector.c
+++ b/src/backend/utils/misc/faultinjector.c
@@ -1,8 +1,24 @@
 /*
+ * 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.
+ */
+
+/*
  * faultinjector.c
- *
- *
- *  Copyright 2009-2010 Greenplum Inc. All rights reserved. *
  */
 
 /* 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/fstream/fstream.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/fstream/fstream.c b/src/backend/utils/misc/fstream/fstream.c
index a28d996..a1b85ed 100644
--- a/src/backend/utils/misc/fstream/fstream.c
+++ b/src/backend/utils/misc/fstream/fstream.c
@@ -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.
+ */
+
 #ifdef WIN32
 /* exclude transformation features on windows for now */
 #undef GPFXDIST

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/fstream/gfile.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/fstream/gfile.c b/src/backend/utils/misc/fstream/gfile.c
index 4db4efe..21b9697 100644
--- a/src/backend/utils/misc/fstream/gfile.c
+++ b/src/backend/utils/misc/fstream/gfile.c
@@ -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.
+ */
+
 #ifdef WIN32
 /* exclude transformation features on windows for now */
 #undef GPFXDIST

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/netcheck.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/netcheck.c b/src/backend/utils/misc/netcheck.c
index 5578cb5..ef0bff5 100644
--- a/src/backend/utils/misc/netcheck.c
+++ b/src/backend/utils/misc/netcheck.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * netcheck.c
  *	  Implementation of network checking utilities
  *
- * Copyright (c) 2011, EMC Corp.
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/simexsys.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/simexsys.c b/src/backend/utils/misc/simexsys.c
index b9df9b3..718d114 100644
--- a/src/backend/utils/misc/simexsys.c
+++ b/src/backend/utils/misc/simexsys.c
@@ -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.
+ */
+
+/*
  * simexsys.c
  * 		Implementation of system call wrappers with integrated ES injection
  *
- * Copyright (c) 2011, EMC Corp.
  */
 
 #include <sys/socket.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/size.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/size.c b/src/backend/utils/misc/size.c
index 6afa30c..ecd4347 100644
--- a/src/backend/utils/misc/size.c
+++ b/src/backend/utils/misc/size.c
@@ -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.
+ */
+
+/*
  * size.c
  *    routines for manipulating Size data type.
  *
- * Copyright (c) 2014 Pivotal Inc.
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/syncbitvector.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/syncbitvector.c b/src/backend/utils/misc/syncbitvector.c
index fd16c64..72a9e2c 100644
--- a/src/backend/utils/misc/syncbitvector.c
+++ b/src/backend/utils/misc/syncbitvector.c
@@ -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.
+ */
+
+/*
  * syncbitvector.c
  * 		Implementation of interface for synchronized bit vectors.
  *
@@ -13,7 +32,6 @@
  * In the occurrence of a severe failure, the postmaster resets shared memory; at
  * this point the bit vector information is lost.
  *
- * Copyright (c) 2010, Greenplum inc
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/test/atomic_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/test/atomic_test.c b/src/backend/utils/misc/test/atomic_test.c
index d77c050..0e83078 100644
--- a/src/backend/utils/misc/test/atomic_test.c
+++ b/src/backend/utils/misc/test/atomic_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/test/guc_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/test/guc_test.c b/src/backend/utils/misc/test/guc_test.c
index 0a26f4e..e1aa4cf 100644
--- a/src/backend/utils/misc/test/guc_test.c
+++ b/src/backend/utils/misc/test/guc_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/misc/testutils.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/testutils.c b/src/backend/utils/misc/testutils.c
index 963185c..60a3c58 100644
--- a/src/backend/utils/misc/testutils.c
+++ b/src/backend/utils/misc/testutils.c
@@ -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.
+ */
+
+/*
  * testutils.c
  * 		Implementation of testing utilities.
  *
- * Copyright (c) 2010, Greenplum inc
  */
 
 #include <sys/time.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/event_version.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/event_version.c b/src/backend/utils/mmgr/event_version.c
index 092b75a..4f66888 100644
--- a/src/backend/utils/mmgr/event_version.c
+++ b/src/backend/utils/mmgr/event_version.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * event_version.c
@@ -6,9 +25,6 @@
  *	 modules can track and update event versions as necessary. Event versions
  *	 are used to provide a temporal ordering of runaway events and cleanup events,
  *	 as well as the idle and the activation events of different processes.
- *
- * Copyright (c) 2014 Pivotal Inc. All Rights Reserved
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/idle_tracker.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/idle_tracker.c b/src/backend/utils/mmgr/idle_tracker.c
index 8d04207..dd69ab5 100644
--- a/src/backend/utils/mmgr/idle_tracker.c
+++ b/src/backend/utils/mmgr/idle_tracker.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * idle_tracker.c
@@ -6,8 +25,6 @@
  *	 This module coordinates with the runaway cleaner to ensure that an active
  *	 process cannot become idle before cleaning up for a pending runaway event.
  *
- * Copyright (c) 2014 Pivotal Inc. All Rights Reserved
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/memaccounting.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/memaccounting.c b/src/backend/utils/mmgr/memaccounting.c
index c08e83d..f5dccc5 100644
--- a/src/backend/utils/mmgr/memaccounting.c
+++ b/src/backend/utils/mmgr/memaccounting.c
@@ -1,11 +1,20 @@
 /*
- * Copyright (c) 2013 EMC Corporation All Rights Reserved
- *
- * This software is protected, without limitation, by copyright law
- * and international treaties. Use of this software and the intellectual
- * property contained therein is expressly limited to the terms and
- * conditions of the License Agreement under which it is provided by
- * or on behalf of EMC.
+ * 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.
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/memprot.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/memprot.c b/src/backend/utils/mmgr/memprot.c
index 2516fb9..acfd17f 100644
--- a/src/backend/utils/mmgr/memprot.c
+++ b/src/backend/utils/mmgr/memprot.c
@@ -1,12 +1,29 @@
 /*
- * memprot.c
- *		Memory allocation under greenplum memory allocation.
+ * 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
  *
- * Copyright(c) 2008, Greenplum Inc.
+ *   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.
+ */
+
+/*
+ * memprot.c
+ *		Memory allocation under greenplum memory allocation.
  * We wrap up calls to malloc/realloc/free with our own accounting
  * so that we will make sure a postgres process will not go beyond
  * its allowed quota
+ *
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/mpool.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/mpool.c b/src/backend/utils/mmgr/mpool.c
index 6dbea1a..b53da37 100644
--- a/src/backend/utils/mmgr/mpool.c
+++ b/src/backend/utils/mmgr/mpool.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * mpool.c

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/redzone_handler.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/redzone_handler.c b/src/backend/utils/mmgr/redzone_handler.c
index 5ded0ac..9cf85b9 100644
--- a/src/backend/utils/mmgr/redzone_handler.c
+++ b/src/backend/utils/mmgr/redzone_handler.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * redzone_handler.c
@@ -6,8 +25,6 @@
  *	 handler identifies the session that consumes most vmem and asks it
  *	 to gracefully release its memory.
  *
- * Copyright (c) 2014 Pivotal Inc. All Rights Reserved
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/runaway_cleaner.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/runaway_cleaner.c b/src/backend/utils/mmgr/runaway_cleaner.c
index 7fdbf85..3684c26 100644
--- a/src/backend/utils/mmgr/runaway_cleaner.c
+++ b/src/backend/utils/mmgr/runaway_cleaner.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * runaway_cleaner.c
@@ -8,8 +27,6 @@
  *	 cleanup is finished, the runaway cleaner also informs the red zone handler
  *	 so that a new runaway session can be chosen if necessary.
  *
- * Copyright (c) 2014 Pivotal Inc. All Rights Reserved
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/aset_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/aset_test.c b/src/backend/utils/mmgr/test/aset_test.c
old mode 100755
new mode 100644
index 69b994a..8106c61
--- a/src/backend/utils/mmgr/test/aset_test.c
+++ b/src/backend/utils/mmgr/test/aset_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/event_version_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/event_version_test.c b/src/backend/utils/mmgr/test/event_version_test.c
old mode 100755
new mode 100644
index f575ae3..1dfa0bf
--- a/src/backend/utils/mmgr/test/event_version_test.c
+++ b/src/backend/utils/mmgr/test/event_version_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/idle_tracker_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/idle_tracker_test.c b/src/backend/utils/mmgr/test/idle_tracker_test.c
old mode 100755
new mode 100644
index ec17e46..c493027
--- a/src/backend/utils/mmgr/test/idle_tracker_test.c
+++ b/src/backend/utils/mmgr/test/idle_tracker_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/mcxt_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/mcxt_test.c b/src/backend/utils/mmgr/test/mcxt_test.c
old mode 100755
new mode 100644
index 478863e..1fcfd67
--- a/src/backend/utils/mmgr/test/mcxt_test.c
+++ b/src/backend/utils/mmgr/test/mcxt_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/memaccounting_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/memaccounting_test.c b/src/backend/utils/mmgr/test/memaccounting_test.c
old mode 100755
new mode 100644
index 69d7a79..a946040
--- a/src/backend/utils/mmgr/test/memaccounting_test.c
+++ b/src/backend/utils/mmgr/test/memaccounting_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/redzone_handler_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/redzone_handler_test.c b/src/backend/utils/mmgr/test/redzone_handler_test.c
old mode 100755
new mode 100644
index 6ce7b68..eb38e37
--- a/src/backend/utils/mmgr/test/redzone_handler_test.c
+++ b/src/backend/utils/mmgr/test/redzone_handler_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/runaway_cleaner_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/runaway_cleaner_test.c b/src/backend/utils/mmgr/test/runaway_cleaner_test.c
old mode 100755
new mode 100644
index 59e408d..54735e2
--- a/src/backend/utils/mmgr/test/runaway_cleaner_test.c
+++ b/src/backend/utils/mmgr/test/runaway_cleaner_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/test/vmem_tracker_test.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/test/vmem_tracker_test.c b/src/backend/utils/mmgr/test/vmem_tracker_test.c
old mode 100755
new mode 100644
index 1da678a..70fba9f
--- a/src/backend/utils/mmgr/test/vmem_tracker_test.c
+++ b/src/backend/utils/mmgr/test/vmem_tracker_test.c
@@ -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.
+ */
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/mmgr/vmem_tracker.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/mmgr/vmem_tracker.c b/src/backend/utils/mmgr/vmem_tracker.c
index 9825d8c..abd7b1d 100644
--- a/src/backend/utils/mmgr/vmem_tracker.c
+++ b/src/backend/utils/mmgr/vmem_tracker.c
@@ -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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * vmem_tracker.c
@@ -7,8 +26,6 @@
  *	 sessions that consume excessive vmem and cleans up such sessions by forcing
  *	 them to release their memory.
  *
- * Copyright (c) 2014 Pivotal Inc. All Rights Reserved
- *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/backend/utils/session_state.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/session_state.c b/src/backend/utils/session_state.c
index 7881197..afe535c 100644
--- a/src/backend/utils/session_state.c
+++ b/src/backend/utils/session_state.c
@@ -1,14 +1,20 @@
-/*-------------------------------------------------------------------------
- *
- * session_state.c
- *	 Implementation of the session state manager. Session state contains
- *	 session specific information such as memory usage of the session, number
- *	 of active processes in the session and so on. It is also used to indicate
- *	 if a session is runaway and therefore needs to cleanup its resources.
+/*
+ * 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
  *
- * Copyright (c) 2014 Pivotal Inc. All Rights Reserved
+ *   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.
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/aoblkdir.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/aoblkdir.h b/src/include/catalog/aoblkdir.h
index 80151fa..84356e5 100644
--- a/src/include/catalog/aoblkdir.h
+++ b/src/include/catalog/aoblkdir.h
@@ -1,15 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * aoblkdir.h
  *
  *   This file contains some definitions to support creation of aoblkdir tables.
  *
- * Copyright (c) 2009, Greenplum Inc.
- *
- * $Id: $
- * $Change: $
- * $DateTime: $
- * $Author: $
  *-------------------------------------------------------------------------
  */
 #ifndef AOBLKDIR_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/aoseg.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/aoseg.h b/src/include/catalog/aoseg.h
index 8c4c0ea..0e3d5ff 100644
--- a/src/include/catalog/aoseg.h
+++ b/src/include/catalog/aoseg.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * aoseg.h
  *	  This file provides some definitions to support creation of aoseg tables
  *
- *
- * Portions Copyright (c) 2008-2013, Greenplum Inc.
  *-------------------------------------------------------------------------
  */
 #ifndef AOSEG_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/caqlparse.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/caqlparse.h b/src/include/catalog/caqlparse.h
index 9cf956f..1a17240 100644
--- a/src/include/catalog/caqlparse.h
+++ b/src/include/catalog/caqlparse.h
@@ -1,3 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * caqlparse.h

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/catcore.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/catcore.h b/src/include/catalog/catcore.h
index 4abbadb..82ef04e 100644
--- a/src/include/catalog/catcore.h
+++ b/src/include/catalog/catcore.h
@@ -1,3 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * catcore.h

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/catquery.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/catquery.h b/src/include/catalog/catquery.h
index 3f87aaf..fbfc842 100644
--- a/src/include/catalog/catquery.h
+++ b/src/include/catalog/catquery.h
@@ -1,11 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * catquery.h
  *	  catalog query
  *
- *
- * Copyright (c) 2011, 2012 Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef CATQUERY_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_configuration.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_configuration.h b/src/include/catalog/gp_configuration.h
index d097941..eaa0893 100644
--- a/src/include/catalog/gp_configuration.h
+++ b/src/include/catalog/gp_configuration.h
@@ -1,11 +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_configuration.h
  *	  definition of the system configuration
  *
  *
- * Copyright (c) 2006-2010, Greenplum inc.
- *
  * NOTES
  *	  the genbki.sh script reads this file and generates .bki
  *	  information from the DATA() statements.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_fastsequence.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_fastsequence.h b/src/include/catalog/gp_fastsequence.h
index 113c8e9..a4733cd 100644
--- a/src/include/catalog/gp_fastsequence.h
+++ b/src/include/catalog/gp_fastsequence.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * gp_fastsequence.h
  *    a table maintaining a light-weight fast sequence number for a unique
  *    object.
  *
- * Copyright (c) 2009-2011, Greenplum Inc.
- *
  * $Id: $
  * $Change: $
  * $DateTime: $

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_global_sequence.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_global_sequence.h b/src/include/catalog/gp_global_sequence.h
index 2257f68..64b195f 100755
--- a/src/include/catalog/gp_global_sequence.h
+++ b/src/include/catalog/gp_global_sequence.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.
+ */
+
 /*-------------------------------------------------------------------------
  *
  * gp_global_sequence.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #ifndef GP_GLOBAL_SEQUENCE_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_id.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_id.h b/src/include/catalog/gp_id.h
index c8da5a6..599e1e3 100644
--- a/src/include/catalog/gp_id.h
+++ b/src/include/catalog/gp_id.h
@@ -1,11 +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_id.h
  *	  definition of the system "database identifier" relation (gp_dbid)
  *	  along with the relation's initial contents.
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  * NOTES
  *    Historically this table was used to supply every segment with its
  * identification information.  However in the 4.0 release when the file

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_master_mirroring.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_master_mirroring.h b/src/include/catalog/gp_master_mirroring.h
index 5b65795..9b4f7e0 100644
--- a/src/include/catalog/gp_master_mirroring.h
+++ b/src/include/catalog/gp_master_mirroring.h
@@ -1,3 +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.
+ */
 #ifndef _GP_MASTER_MIRRORING_H_
 #define _GP_MASTER_MIRRORING_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_persistent.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_persistent.h b/src/include/catalog/gp_persistent.h
index 2f88a17..a0c92c6 100755
--- a/src/include/catalog/gp_persistent.h
+++ b/src/include/catalog/gp_persistent.h
@@ -1,9 +1,25 @@
+/*
+ * 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_persistent.h
  *
- * Copyright (c) 2009-2010, Greenplum inc
- *
  * Global tables:
  *     gp_persistent_relation_node
  *     gp_persistent_database_node

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_policy.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_policy.h b/src/include/catalog/gp_policy.h
index 0ead1bb..db86522 100644
--- a/src/include/catalog/gp_policy.h
+++ b/src/include/catalog/gp_policy.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * gp_policy.h
  *	  definitions for the gp_distribution_policy catalog table
  *
- * Copyright (c) 2005-2011, Greenplum inc
- *
  * NOTES
  *
  *-------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_san_config.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_san_config.h b/src/include/catalog/gp_san_config.h
index 6e9c39d..2e09358 100644
--- a/src/include/catalog/gp_san_config.h
+++ b/src/include/catalog/gp_san_config.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * gp_san_config.h
  *    a san configuration table
  *
- * Copyright (c) 2009-2011, Greenplum Inc.
- *
  * $Id: $
  * $Change: $
  * $DateTime: $

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/include/catalog/gp_segment_config.h
----------------------------------------------------------------------
diff --git a/src/include/catalog/gp_segment_config.h b/src/include/catalog/gp_segment_config.h
index f896c23..ad489a4 100644
--- a/src/include/catalog/gp_segment_config.h
+++ b/src/include/catalog/gp_segment_config.h
@@ -1,10 +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.
+ */
 /*-------------------------------------------------------------------------
  *
  * gp_segment_config.h
  *    a segment configuration table
  *
- * Copyright (c) 2006-2011, Greenplum Inc.
- *
  * $Id: $
  * $Change: $
  * $DateTime: $



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainerRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainerRequest.h b/depends/libyarn/src/protocolrecords/StartContainerRequest.h
index 708455a..1af3756 100644
--- a/depends/libyarn/src/protocolrecords/StartContainerRequest.h
+++ b/depends/libyarn/src/protocolrecords/StartContainerRequest.h
@@ -1,8 +1,20 @@
 /*
- * StartContainerRequest.h
- *
- *  Created on: Jul 17, 2014
- *      Author: bwang
+ * 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 STARTCONTAINERREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainerResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainerResponse.cpp b/depends/libyarn/src/protocolrecords/StartContainerResponse.cpp
index 2f87c7f..52a2bb1 100644
--- a/depends/libyarn/src/protocolrecords/StartContainerResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/StartContainerResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * StartContainerResponse.cpp
- *
- *  Created on: Jul 22, 2014
- *      Author: jcao
+ * 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.
  */
 
 #include "StartContainerResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainerResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainerResponse.h b/depends/libyarn/src/protocolrecords/StartContainerResponse.h
index 1c0c48e..7a1ae44 100644
--- a/depends/libyarn/src/protocolrecords/StartContainerResponse.h
+++ b/depends/libyarn/src/protocolrecords/StartContainerResponse.h
@@ -1,8 +1,20 @@
 /*
- * StartContainerResponse.h
- *
- *  Created on: Jul 22, 2014
- *      Author: jcao
+ * 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 STARTCONTAINERRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainersRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainersRequest.cpp b/depends/libyarn/src/protocolrecords/StartContainersRequest.cpp
index 0db4e54..7fab9a1 100644
--- a/depends/libyarn/src/protocolrecords/StartContainersRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/StartContainersRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * StartContainersRequest.cpp
- *
- *  Created on: Jul 17, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "StartContainersRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainersRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainersRequest.h b/depends/libyarn/src/protocolrecords/StartContainersRequest.h
index 5b367d5..47044ef 100644
--- a/depends/libyarn/src/protocolrecords/StartContainersRequest.h
+++ b/depends/libyarn/src/protocolrecords/StartContainersRequest.h
@@ -1,8 +1,20 @@
 /*
- * StartContainersRequest.h
- *
- *  Created on: Jul 17, 2014
- *      Author: bwang
+ * 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 STARTCONTAINERSREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainersResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainersResponse.cpp b/depends/libyarn/src/protocolrecords/StartContainersResponse.cpp
index f360d33..925c57b 100644
--- a/depends/libyarn/src/protocolrecords/StartContainersResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/StartContainersResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * StartContainersResponse.cpp
- *
- *  Created on: Jul 20, 2014
- *      Author: jcao
+ * 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.
  */
 
 #include "StartContainersResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainersResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainersResponse.h b/depends/libyarn/src/protocolrecords/StartContainersResponse.h
index 5c2eb77..2493fc4 100644
--- a/depends/libyarn/src/protocolrecords/StartContainersResponse.h
+++ b/depends/libyarn/src/protocolrecords/StartContainersResponse.h
@@ -1,10 +1,23 @@
 /*
- * StartContainersResponse.h
- *
- *  Created on: Jul 20, 2014
- *      Author: jcao
+ * 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 STARTCONTAINERSRESPONSE_H_
 #define STARTCONTAINERSRESPONSE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StopContainersRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StopContainersRequest.cpp b/depends/libyarn/src/protocolrecords/StopContainersRequest.cpp
index 0a9e922..5d791bb 100644
--- a/depends/libyarn/src/protocolrecords/StopContainersRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/StopContainersRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * StopContainersRequest.cpp
- *
- *  Created on: Jul 18, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "StopContainersRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StopContainersRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StopContainersRequest.h b/depends/libyarn/src/protocolrecords/StopContainersRequest.h
index cfc36af..82e51c2 100644
--- a/depends/libyarn/src/protocolrecords/StopContainersRequest.h
+++ b/depends/libyarn/src/protocolrecords/StopContainersRequest.h
@@ -1,8 +1,20 @@
 /*
- * StopContainersRequest.h
- *
- *  Created on: Jul 18, 2014
- *      Author: bwang
+ * 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 STOPCONTAINERSREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StopContainersResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StopContainersResponse.cpp b/depends/libyarn/src/protocolrecords/StopContainersResponse.cpp
index 38923ea..e8a6eb2 100644
--- a/depends/libyarn/src/protocolrecords/StopContainersResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/StopContainersResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * StopContainersResponse.cpp
- *
- *  Created on: Jul 21, 2014
- *      Author: jcao
+ * 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.
  */
 
 #include "StopContainersResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StopContainersResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StopContainersResponse.h b/depends/libyarn/src/protocolrecords/StopContainersResponse.h
index a3317af..80b658f 100644
--- a/depends/libyarn/src/protocolrecords/StopContainersResponse.h
+++ b/depends/libyarn/src/protocolrecords/StopContainersResponse.h
@@ -1,8 +1,20 @@
 /*
- * StopContainersResponse.h
- *
- *  Created on: Jul 21, 2014
- *      Author: jcao
+ * 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 STOPCONTAINERSRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.cpp b/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.cpp
index b094752..1372200 100644
--- a/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.cpp
@@ -1,9 +1,22 @@
 /*
- * SubmitApplicationRequest.cpp
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include <iostream>
 
 #include "SubmitApplicationRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.h b/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.h
index 5f53bab..4fa2c5e 100644
--- a/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.h
+++ b/depends/libyarn/src/protocolrecords/SubmitApplicationRequest.h
@@ -1,8 +1,20 @@
 /*
- * SubmitApplicationRequest.h
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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 SUBMITAPPLICATIONREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.cpp b/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.cpp
index 5142dbe..4301130 100644
--- a/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.cpp
@@ -1,10 +1,23 @@
 /*
- * SubmitApplicationResponse.cpp
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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.
  */
 
+
 #include "SubmitApplicationResponse.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.h b/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.h
index a5e44b4..352fed4 100644
--- a/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.h
+++ b/depends/libyarn/src/protocolrecords/SubmitApplicationResponse.h
@@ -1,8 +1,20 @@
 /*
- * SubmitApplicationResponse.h
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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 SUBMITAPPLICATIONRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/AMCommand.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/AMCommand.h b/depends/libyarn/src/records/AMCommand.h
index e922b86..ad70ab9 100644
--- a/depends/libyarn/src/records/AMCommand.h
+++ b/depends/libyarn/src/records/AMCommand.h
@@ -1,8 +1,20 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 AMCOMMAND_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationACLMap.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationACLMap.cpp b/depends/libyarn/src/records/ApplicationACLMap.cpp
index 51e3a38..6ccb405 100644
--- a/depends/libyarn/src/records/ApplicationACLMap.cpp
+++ b/depends/libyarn/src/records/ApplicationACLMap.cpp
@@ -1,8 +1,20 @@
 /*
- * ApplicationACLMap.cpp
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ApplicationACLMap.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationACLMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationACLMap.h b/depends/libyarn/src/records/ApplicationACLMap.h
index 75f1d95..be17a39 100644
--- a/depends/libyarn/src/records/ApplicationACLMap.h
+++ b/depends/libyarn/src/records/ApplicationACLMap.h
@@ -1,8 +1,20 @@
 /*
- * ApplicationACLMap.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 APPLICATIONACLMAP_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationAccessType.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationAccessType.h b/depends/libyarn/src/records/ApplicationAccessType.h
index 210f03e..dc6173b 100644
--- a/depends/libyarn/src/records/ApplicationAccessType.h
+++ b/depends/libyarn/src/records/ApplicationAccessType.h
@@ -1,8 +1,20 @@
 /*
- * ApplicationAccessType.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 APPLICATIONACCESSTYPE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationAttemptId.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationAttemptId.cpp b/depends/libyarn/src/records/ApplicationAttemptId.cpp
index 5f6befa..1b47c07 100644
--- a/depends/libyarn/src/records/ApplicationAttemptId.cpp
+++ b/depends/libyarn/src/records/ApplicationAttemptId.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "ApplicationAttemptId.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationAttemptId.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationAttemptId.h b/depends/libyarn/src/records/ApplicationAttemptId.h
index 9a63126..e9b70f9 100644
--- a/depends/libyarn/src/records/ApplicationAttemptId.h
+++ b/depends/libyarn/src/records/ApplicationAttemptId.h
@@ -1,10 +1,23 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 APPLICATIONATTEMPTID_H_
 #define APPLICATIONATTEMPTID_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationID.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationID.cpp b/depends/libyarn/src/records/ApplicationID.cpp
index 11960af..c17aa04 100644
--- a/depends/libyarn/src/records/ApplicationID.cpp
+++ b/depends/libyarn/src/records/ApplicationID.cpp
@@ -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.
+ */
+
 #include "ApplicationID.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationID.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationID.h b/depends/libyarn/src/records/ApplicationID.h
index 60bf46a..6eda5b3 100644
--- a/depends/libyarn/src/records/ApplicationID.h
+++ b/depends/libyarn/src/records/ApplicationID.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 APPLICATIONIDS_H_
 #define APPLICATIONIDS_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationReport.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationReport.cpp b/depends/libyarn/src/records/ApplicationReport.cpp
index be6ddd9..2ac14ef 100644
--- a/depends/libyarn/src/records/ApplicationReport.cpp
+++ b/depends/libyarn/src/records/ApplicationReport.cpp
@@ -1,9 +1,22 @@
 /*
- * ApplicationReport.cpp
- *
- *  Created on: Jul 8, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "ApplicationReport.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationReport.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationReport.h b/depends/libyarn/src/records/ApplicationReport.h
index cb66eb9..4863fa2 100644
--- a/depends/libyarn/src/records/ApplicationReport.h
+++ b/depends/libyarn/src/records/ApplicationReport.h
@@ -1,8 +1,20 @@
 /*
- * ApplicationReport.h
- *
- *  Created on: Jul 8, 2014
- *      Author: bwang
+ * 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 APPLICATIONREPORT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationResourceUsageReport.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationResourceUsageReport.cpp b/depends/libyarn/src/records/ApplicationResourceUsageReport.cpp
index 0ba7305..ee4c8bd 100644
--- a/depends/libyarn/src/records/ApplicationResourceUsageReport.cpp
+++ b/depends/libyarn/src/records/ApplicationResourceUsageReport.cpp
@@ -1,8 +1,20 @@
 /*
- * ApplicationResourceUsageReport.cpp
- *
- *  Created on: Jul 9, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ApplicationResourceUsageReport.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationResourceUsageReport.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationResourceUsageReport.h b/depends/libyarn/src/records/ApplicationResourceUsageReport.h
index 9414e6c..69db371 100644
--- a/depends/libyarn/src/records/ApplicationResourceUsageReport.h
+++ b/depends/libyarn/src/records/ApplicationResourceUsageReport.h
@@ -1,8 +1,20 @@
 /*
- * ApplicationResourceUsageReport.h
- *
- *  Created on: Jul 9, 2014
- *      Author: bwang
+ * 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 APPLICATIONRESOURCEUSAGEREPORT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationSubmissionContext.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationSubmissionContext.cpp b/depends/libyarn/src/records/ApplicationSubmissionContext.cpp
index a57b160..da9e9b4 100644
--- a/depends/libyarn/src/records/ApplicationSubmissionContext.cpp
+++ b/depends/libyarn/src/records/ApplicationSubmissionContext.cpp
@@ -1,8 +1,20 @@
 /*
- * ApplicationSubmissionContext.cpp
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ApplicationSubmissionContext.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ApplicationSubmissionContext.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationSubmissionContext.h b/depends/libyarn/src/records/ApplicationSubmissionContext.h
index 7dffa50..0e3c6cc 100644
--- a/depends/libyarn/src/records/ApplicationSubmissionContext.h
+++ b/depends/libyarn/src/records/ApplicationSubmissionContext.h
@@ -1,8 +1,20 @@
 /*
- * ApplicationSubmissionContext.h
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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 APPLICATIONSUBMISSIONCONTEXT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Container.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Container.cpp b/depends/libyarn/src/records/Container.cpp
index 792be13..f734737 100644
--- a/depends/libyarn/src/records/Container.cpp
+++ b/depends/libyarn/src/records/Container.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "Container.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/Container.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Container.h b/depends/libyarn/src/records/Container.h
index 42b155c..f982b32 100644
--- a/depends/libyarn/src/records/Container.h
+++ b/depends/libyarn/src/records/Container.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 CONTAINER_H_
 #define CONTAINER_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerExceptionMap.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerExceptionMap.cpp b/depends/libyarn/src/records/ContainerExceptionMap.cpp
index 80bfdbb..c965d4d 100644
--- a/depends/libyarn/src/records/ContainerExceptionMap.cpp
+++ b/depends/libyarn/src/records/ContainerExceptionMap.cpp
@@ -1,8 +1,20 @@
 /*
- * ContainerExceptionMap.cpp
- *
- *  Created on: Jul 31, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ContainerExceptionMap.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerExceptionMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerExceptionMap.h b/depends/libyarn/src/records/ContainerExceptionMap.h
index 47c7aa3..365e826 100644
--- a/depends/libyarn/src/records/ContainerExceptionMap.h
+++ b/depends/libyarn/src/records/ContainerExceptionMap.h
@@ -1,8 +1,20 @@
 /*
- * ContainerExceptionMap.h
- *
- *  Created on: Jul 31, 2014
- *      Author: bwang
+ * 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 CONTAINEREXCEPTIONMAP_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerExitStatus.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerExitStatus.h b/depends/libyarn/src/records/ContainerExitStatus.h
index 7fb9837..9682552 100644
--- a/depends/libyarn/src/records/ContainerExitStatus.h
+++ b/depends/libyarn/src/records/ContainerExitStatus.h
@@ -1,8 +1,20 @@
 /*
- * ContainerExitStatus.h
- *
- *  Created on: Jan 5, 2015
- *      Author: weikui
+ * 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 CONTAINEREXITSTATUS_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerId.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerId.cpp b/depends/libyarn/src/records/ContainerId.cpp
index 8ea488c..fab48cc 100644
--- a/depends/libyarn/src/records/ContainerId.cpp
+++ b/depends/libyarn/src/records/ContainerId.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "ContainerId.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerId.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerId.h b/depends/libyarn/src/records/ContainerId.h
index 23b81da..b92c8b3 100644
--- a/depends/libyarn/src/records/ContainerId.h
+++ b/depends/libyarn/src/records/ContainerId.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 CONTAINERID_H_
 #define CONTAINERID_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerLaunchContext.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerLaunchContext.cpp b/depends/libyarn/src/records/ContainerLaunchContext.cpp
index fe89181..a27abd4 100644
--- a/depends/libyarn/src/records/ContainerLaunchContext.cpp
+++ b/depends/libyarn/src/records/ContainerLaunchContext.cpp
@@ -1,8 +1,20 @@
 /*
- * ContainerLaunchContext.cpp
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ContainerLaunchContext.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerLaunchContext.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerLaunchContext.h b/depends/libyarn/src/records/ContainerLaunchContext.h
index 23eadd7..0477f2c 100644
--- a/depends/libyarn/src/records/ContainerLaunchContext.h
+++ b/depends/libyarn/src/records/ContainerLaunchContext.h
@@ -1,8 +1,20 @@
 /*
- * ContainerLaunchContext.h
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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 CONTAINERLAUNCHCONTEXT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerReport.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerReport.cpp b/depends/libyarn/src/records/ContainerReport.cpp
index 3856a55..a13f038 100644
--- a/depends/libyarn/src/records/ContainerReport.cpp
+++ b/depends/libyarn/src/records/ContainerReport.cpp
@@ -1,8 +1,20 @@
 /*
- * ContainerReport.cpp
- *
- *  Created on: Jan 5, 2015
- *      Author: weikui
+ * 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.
  */
 
 #include "ContainerReport.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerReport.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerReport.h b/depends/libyarn/src/records/ContainerReport.h
index 2f3132a..41d0c54 100644
--- a/depends/libyarn/src/records/ContainerReport.h
+++ b/depends/libyarn/src/records/ContainerReport.h
@@ -1,8 +1,20 @@
 /*
- * ContainerReport.h
- *
- *  Created on: Jan 5, 2015
- *      Author: weikui
+ * 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 CONTAINERREPORT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerState.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerState.h b/depends/libyarn/src/records/ContainerState.h
index 4304125..dc8b08c 100644
--- a/depends/libyarn/src/records/ContainerState.h
+++ b/depends/libyarn/src/records/ContainerState.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 CONTAINERSTATE_H_
 #define CONTAINERSTATE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerStatus.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerStatus.cpp b/depends/libyarn/src/records/ContainerStatus.cpp
index 9f3c88b..ac9dab9 100644
--- a/depends/libyarn/src/records/ContainerStatus.cpp
+++ b/depends/libyarn/src/records/ContainerStatus.cpp
@@ -1,8 +1,20 @@
 /*
- * ContainerStatus.cpp
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ContainerStatus.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/ContainerStatus.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerStatus.h b/depends/libyarn/src/records/ContainerStatus.h
index deff270..ae4efa0 100644
--- a/depends/libyarn/src/records/ContainerStatus.h
+++ b/depends/libyarn/src/records/ContainerStatus.h
@@ -1,8 +1,20 @@
 /*
- * ContainerStatus.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 CONTAINERSTATUS_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/FinalApplicationStatus.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/FinalApplicationStatus.h b/depends/libyarn/src/records/FinalApplicationStatus.h
index 14ff039..cc1c81f 100644
--- a/depends/libyarn/src/records/FinalApplicationStatus.h
+++ b/depends/libyarn/src/records/FinalApplicationStatus.h
@@ -1,8 +1,20 @@
 /*
- * FinalApplicationStatus.h
- *
- *  Created on: Jul 9, 2014
- *      Author: bwang
+ * 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 FINALAPPLICATIONSTATUS_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/FunctionResult.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/FunctionResult.h b/depends/libyarn/src/records/FunctionResult.h
index b200342..ba61167 100644
--- a/depends/libyarn/src/records/FunctionResult.h
+++ b/depends/libyarn/src/records/FunctionResult.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.
+ */
+
+/*
  * FunctionResult.h
  */
 #ifndef FUNCTIONRESULT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/LocalResource.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/LocalResource.cpp b/depends/libyarn/src/records/LocalResource.cpp
index 58b7f43..e6ea156 100644
--- a/depends/libyarn/src/records/LocalResource.cpp
+++ b/depends/libyarn/src/records/LocalResource.cpp
@@ -1,8 +1,20 @@
 /*
- * LocalResource.cpp
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "LocalResource.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/LocalResource.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/LocalResource.h b/depends/libyarn/src/records/LocalResource.h
index 36f2126..87b9c6f 100644
--- a/depends/libyarn/src/records/LocalResource.h
+++ b/depends/libyarn/src/records/LocalResource.h
@@ -1,8 +1,20 @@
 /*
- * LocalResource.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 LOCALRESOURCE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/LocalResourceType.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/LocalResourceType.h b/depends/libyarn/src/records/LocalResourceType.h
index 6e19fec..db038d9 100644
--- a/depends/libyarn/src/records/LocalResourceType.h
+++ b/depends/libyarn/src/records/LocalResourceType.h
@@ -1,10 +1,23 @@
 /*
- * LocalResourceType.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 LOCALRESOURCETYPE_H_
 #define LOCALRESOURCETYPE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/LocalResourceVisibility.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/LocalResourceVisibility.h b/depends/libyarn/src/records/LocalResourceVisibility.h
index 569eb5f..4351629 100644
--- a/depends/libyarn/src/records/LocalResourceVisibility.h
+++ b/depends/libyarn/src/records/LocalResourceVisibility.h
@@ -1,8 +1,20 @@
 /*
- * LocalResourceVisibility.h
- *
- *  Created on: Jul 30, 2014
- *      Author: bwang
+ * 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 LOCALRESOURCEVISIBILITY_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/NMToken.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NMToken.cpp b/depends/libyarn/src/records/NMToken.cpp
index f5e2c18..47ff971 100644
--- a/depends/libyarn/src/records/NMToken.cpp
+++ b/depends/libyarn/src/records/NMToken.cpp
@@ -1,8 +1,20 @@
 /*
- * NMToken.cpp
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "NMToken.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/NMToken.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NMToken.h b/depends/libyarn/src/records/NMToken.h
index 99bd8f3..e1122bd 100644
--- a/depends/libyarn/src/records/NMToken.h
+++ b/depends/libyarn/src/records/NMToken.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 NMTOKEN_H_
 #define NMTOKEN_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/NodeId.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NodeId.cpp b/depends/libyarn/src/records/NodeId.cpp
index ae3a74c..87a0c9c 100644
--- a/depends/libyarn/src/records/NodeId.cpp
+++ b/depends/libyarn/src/records/NodeId.cpp
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "NodeId.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/NodeId.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NodeId.h b/depends/libyarn/src/records/NodeId.h
index 98757ba..e735110 100644
--- a/depends/libyarn/src/records/NodeId.h
+++ b/depends/libyarn/src/records/NodeId.h
@@ -1,9 +1,22 @@
 /*
- * AMCommand.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 NODEID_H_
 #define NODEID_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/NodeReport.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NodeReport.cpp b/depends/libyarn/src/records/NodeReport.cpp
index 113abac..6e38bc0 100644
--- a/depends/libyarn/src/records/NodeReport.cpp
+++ b/depends/libyarn/src/records/NodeReport.cpp
@@ -1,8 +1,20 @@
 /*
- * NodeReport.cpp
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "NodeReport.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/NodeReport.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NodeReport.h b/depends/libyarn/src/records/NodeReport.h
index 7b3eb32..e426e2f 100644
--- a/depends/libyarn/src/records/NodeReport.h
+++ b/depends/libyarn/src/records/NodeReport.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.
+ */
+
+/*
  * NodeReport.h
  *
  *  Created on: Jul 16, 2014

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/NodeState.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NodeState.h b/depends/libyarn/src/records/NodeState.h
index 3a6cca2..6ea53bf 100644
--- a/depends/libyarn/src/records/NodeState.h
+++ b/depends/libyarn/src/records/NodeState.h
@@ -1,8 +1,20 @@
 /*
- * NodeState.h
- *
- *  Created on: Jul 18, 2014
- *      Author: bwang
+ * 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 NODESTATE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionContainer.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionContainer.cpp b/depends/libyarn/src/records/PreemptionContainer.cpp
index 530ddf3..8389fb3 100644
--- a/depends/libyarn/src/records/PreemptionContainer.cpp
+++ b/depends/libyarn/src/records/PreemptionContainer.cpp
@@ -1,8 +1,20 @@
 /*
- * PreemptionContainer.cpp
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "PreemptionContainer.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionContainer.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionContainer.h b/depends/libyarn/src/records/PreemptionContainer.h
index 09a4bec..019f126 100644
--- a/depends/libyarn/src/records/PreemptionContainer.h
+++ b/depends/libyarn/src/records/PreemptionContainer.h
@@ -1,8 +1,20 @@
 /*
- * PreemptionContainer.h
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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 PREEMPTIONCONTAINER_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionContract.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionContract.cpp b/depends/libyarn/src/records/PreemptionContract.cpp
index f94b1d4..dbf4724 100644
--- a/depends/libyarn/src/records/PreemptionContract.cpp
+++ b/depends/libyarn/src/records/PreemptionContract.cpp
@@ -1,8 +1,20 @@
 /*
- * PreemptionContract.cpp
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "PreemptionContract.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionContract.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionContract.h b/depends/libyarn/src/records/PreemptionContract.h
index 89c277d..83ed203 100644
--- a/depends/libyarn/src/records/PreemptionContract.h
+++ b/depends/libyarn/src/records/PreemptionContract.h
@@ -1,8 +1,20 @@
 /*
- * PreemptionContract.h
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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 PREEMPTIONCONTRACT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionMessage.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionMessage.cpp b/depends/libyarn/src/records/PreemptionMessage.cpp
index 538b298..09e5161 100644
--- a/depends/libyarn/src/records/PreemptionMessage.cpp
+++ b/depends/libyarn/src/records/PreemptionMessage.cpp
@@ -1,8 +1,20 @@
 /*
- * PreemptionMessage.cpp
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "PreemptionMessage.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionMessage.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionMessage.h b/depends/libyarn/src/records/PreemptionMessage.h
index 19aac20..0547d12 100644
--- a/depends/libyarn/src/records/PreemptionMessage.h
+++ b/depends/libyarn/src/records/PreemptionMessage.h
@@ -1,8 +1,20 @@
 /*
- * PreemptionMessage.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 PREEMPTIONMESSAGE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/records/PreemptionResourceRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionResourceRequest.cpp b/depends/libyarn/src/records/PreemptionResourceRequest.cpp
index b4ab1df..6b871f2 100644
--- a/depends/libyarn/src/records/PreemptionResourceRequest.cpp
+++ b/depends/libyarn/src/records/PreemptionResourceRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * PreemptionResourceRequest.cpp
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "PreemptionResourceRequest.h"



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/releng/set_bld_arch.sh
----------------------------------------------------------------------
diff --git a/depends/libyarn/releng/set_bld_arch.sh b/depends/libyarn/releng/set_bld_arch.sh
old mode 100755
new mode 100644
index 5a59edf..5f59d4b
--- a/depends/libyarn/releng/set_bld_arch.sh
+++ b/depends/libyarn/releng/set_bld_arch.sh
@@ -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.
 # Define ARCH values
 #
 #

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Atomic.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Atomic.h b/depends/libyarn/src/common/Atomic.h
index eaf9b25..4016aad 100644
--- a/depends/libyarn/src/common/Atomic.h
+++ b/depends/libyarn/src/common/Atomic.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_ATOMIC_H_
 #define _HDFS_LIBHDFS3_COMMON_ATOMIC_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/BigEndian.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/BigEndian.h b/depends/libyarn/src/common/BigEndian.h
index 0ee21d5..a93c695 100644
--- a/depends/libyarn/src/common/BigEndian.h
+++ b/depends/libyarn/src/common/BigEndian.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_BIGENDIAN_H_
 #define _HDFS_LIBHDFS3_COMMON_BIGENDIAN_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Checksum.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Checksum.h b/depends/libyarn/src/common/Checksum.h
index 00dfec0..7eae0c9 100644
--- a/depends/libyarn/src/common/Checksum.h
+++ b/depends/libyarn/src/common/Checksum.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_CHECKSUM_H_
 #define _HDFS_LIBHDFS3_COMMON_CHECKSUM_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/DateTime.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/DateTime.h b/depends/libyarn/src/common/DateTime.h
index 0fad7d5..51f8ecb 100644
--- a/depends/libyarn/src/common/DateTime.h
+++ b/depends/libyarn/src/common/DateTime.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_DATETIME_H_
 #define _HDFS_LIBHDFS3_COMMON_DATETIME_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Exception.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Exception.cpp b/depends/libyarn/src/common/Exception.cpp
index 0a07e07..76699e8 100644
--- a/depends/libyarn/src/common/Exception.cpp
+++ b/depends/libyarn/src/common/Exception.cpp
@@ -1,9 +1,23 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
+
 #include "Exception.h"
 
 #include <sstream>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Exception.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Exception.h b/depends/libyarn/src/common/Exception.h
index e804194..cbe96b9 100644
--- a/depends/libyarn/src/common/Exception.h
+++ b/depends/libyarn/src/common/Exception.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _YARN_LIBYARN_COMMON_EXCEPTION_H_
 #define _YARN_LIBYARN_COMMON_EXCEPTION_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/ExceptionInternal.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/ExceptionInternal.cpp b/depends/libyarn/src/common/ExceptionInternal.cpp
index 981411c..40f94e4 100644
--- a/depends/libyarn/src/common/ExceptionInternal.cpp
+++ b/depends/libyarn/src/common/ExceptionInternal.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Exception.h"
 #include "ExceptionInternal.h"
 #include "Thread.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/ExceptionInternal.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/ExceptionInternal.h b/depends/libyarn/src/common/ExceptionInternal.h
index 2a349d0..a45346d 100644
--- a/depends/libyarn/src/common/ExceptionInternal.h
+++ b/depends/libyarn/src/common/ExceptionInternal.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _YARN_LIBYARN_EXCEPTION_EXCEPTIONINTERNAL_H_
 #define _YARN_LIBYARN_EXCEPTION_EXCEPTIONINTERNAL_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Function.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Function.h b/depends/libyarn/src/common/Function.h
index d642e26..f997bcb 100644
--- a/depends/libyarn/src/common/Function.h
+++ b/depends/libyarn/src/common/Function.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_FUNCTION_H_
 #define _HDFS_LIBHDFS3_COMMON_FUNCTION_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/HWCrc32c.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/HWCrc32c.cpp b/depends/libyarn/src/common/HWCrc32c.cpp
index 9b04c71..b13bbfa 100644
--- a/depends/libyarn/src/common/HWCrc32c.cpp
+++ b/depends/libyarn/src/common/HWCrc32c.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include <cassert>
 #include <cstdlib>
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/HWCrc32c.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/HWCrc32c.h b/depends/libyarn/src/common/HWCrc32c.h
index 8f4e6a3..d7e8b4e 100644
--- a/depends/libyarn/src/common/HWCrc32c.h
+++ b/depends/libyarn/src/common/HWCrc32c.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_HWCHECKSUM_H_
 #define _HDFS_LIBHDFS3_COMMON_HWCHECKSUM_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Hash.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Hash.cpp b/depends/libyarn/src/common/Hash.cpp
index 607013e..544fbdd 100644
--- a/depends/libyarn/src/common/Hash.cpp
+++ b/depends/libyarn/src/common/Hash.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Hash.h"
 
 #ifdef NEED_BOOST

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Hash.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Hash.h b/depends/libyarn/src/common/Hash.h
index 6c64189..b6b0df5 100644
--- a/depends/libyarn/src/common/Hash.h
+++ b/depends/libyarn/src/common/Hash.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_HASH_H_
 #define _HDFS_LIBHDFS3_COMMON_HASH_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Logger.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Logger.cpp b/depends/libyarn/src/common/Logger.cpp
index 0c0f58c..441dffc 100644
--- a/depends/libyarn/src/common/Logger.cpp
+++ b/depends/libyarn/src/common/Logger.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "platform.h"
 
 #include "Logger.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Logger.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Logger.h b/depends/libyarn/src/common/Logger.h
index 65071d8..1b45bdd 100644
--- a/depends/libyarn/src/common/Logger.h
+++ b/depends/libyarn/src/common/Logger.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_LOGGER_H_
 #define _HDFS_LIBHDFS3_COMMON_LOGGER_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/LruMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/LruMap.h b/depends/libyarn/src/common/LruMap.h
index c7ceb0d..0000bdc 100644
--- a/depends/libyarn/src/common/LruMap.h
+++ b/depends/libyarn/src/common/LruMap.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_LRUMAP_H_
 #define _HDFS_LIBHDFS3_COMMON_LRUMAP_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Memory.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Memory.h b/depends/libyarn/src/common/Memory.h
index 3932a6a..c49ff3c 100644
--- a/depends/libyarn/src/common/Memory.h
+++ b/depends/libyarn/src/common/Memory.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_MEMORY_H_
 #define _HDFS_LIBHDFS3_COMMON_MEMORY_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/SWCrc32c.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/SWCrc32c.cpp b/depends/libyarn/src/common/SWCrc32c.cpp
index 8124731..4700492 100644
--- a/depends/libyarn/src/common/SWCrc32c.cpp
+++ b/depends/libyarn/src/common/SWCrc32c.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "SWCrc32c.h"
 
 #ifndef NEED_BOOST

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/SWCrc32c.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/SWCrc32c.h b/depends/libyarn/src/common/SWCrc32c.h
index 8d684c9..b572206 100644
--- a/depends/libyarn/src/common/SWCrc32c.h
+++ b/depends/libyarn/src/common/SWCrc32c.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_SWCRC32C_H_
 #define _HDFS_LIBHDFS3_COMMON_SWCRC32C_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/SessionConfig.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/SessionConfig.cpp b/depends/libyarn/src/common/SessionConfig.cpp
index 697d426..43b0654 100644
--- a/depends/libyarn/src/common/SessionConfig.cpp
+++ b/depends/libyarn/src/common/SessionConfig.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Exception.h"
 #include "ExceptionInternal.h"
 #include "Function.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/SessionConfig.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/SessionConfig.h b/depends/libyarn/src/common/SessionConfig.h
index 4565ce3..1459134 100644
--- a/depends/libyarn/src/common/SessionConfig.h
+++ b/depends/libyarn/src/common/SessionConfig.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_SESSIONCONFIG_H_
 #define _HDFS_LIBHDFS3_COMMON_SESSIONCONFIG_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/StackPrinter.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/StackPrinter.cpp b/depends/libyarn/src/common/StackPrinter.cpp
index da063e2..584369a 100644
--- a/depends/libyarn/src/common/StackPrinter.cpp
+++ b/depends/libyarn/src/common/StackPrinter.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "platform.h"
 
 #include "StackPrinter.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/StackPrinter.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/StackPrinter.h b/depends/libyarn/src/common/StackPrinter.h
index 2e75abe..539f33b 100644
--- a/depends/libyarn/src/common/StackPrinter.h
+++ b/depends/libyarn/src/common/StackPrinter.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_STACK_PRINTER_H_
 #define _HDFS_LIBHDFS3_COMMON_STACK_PRINTER_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/StringUtil.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/StringUtil.h b/depends/libyarn/src/common/StringUtil.h
index 2bbcfa1..3357a7a 100644
--- a/depends/libyarn/src/common/StringUtil.h
+++ b/depends/libyarn/src/common/StringUtil.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_STRINGUTIL_H_
 #define _HDFS_LIBHDFS3_COMMON_STRINGUTIL_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Thread.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Thread.cpp b/depends/libyarn/src/common/Thread.cpp
index 951ea57..a4037dd 100644
--- a/depends/libyarn/src/common/Thread.cpp
+++ b/depends/libyarn/src/common/Thread.cpp
@@ -1,9 +1,21 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
 
 #include <unistd.h>
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Thread.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Thread.h b/depends/libyarn/src/common/Thread.h
index 26da679..932a977 100644
--- a/depends/libyarn/src/common/Thread.h
+++ b/depends/libyarn/src/common/Thread.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_THREAD_H_
 #define _HDFS_LIBHDFS3_COMMON_THREAD_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/Unordered.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/Unordered.h b/depends/libyarn/src/common/Unordered.h
index de3183c..58f922f 100644
--- a/depends/libyarn/src/common/Unordered.h
+++ b/depends/libyarn/src/common/Unordered.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_UNORDEREDMAP_H_
 #define _HDFS_LIBHDFS3_COMMON_UNORDEREDMAP_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/WritableUtils.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/WritableUtils.cpp b/depends/libyarn/src/common/WritableUtils.cpp
index c0a28dc..0e1c55b 100644
--- a/depends/libyarn/src/common/WritableUtils.cpp
+++ b/depends/libyarn/src/common/WritableUtils.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include <stdexcept>
 #include <limits>
 #include <cstring>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/WritableUtils.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/WritableUtils.h b/depends/libyarn/src/common/WritableUtils.h
index ed3d79e..835d433 100644
--- a/depends/libyarn/src/common/WritableUtils.h
+++ b/depends/libyarn/src/common/WritableUtils.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS_3_UTIL_WritableUtils_H_
 #define _HDFS_LIBHDFS_3_UTIL_WritableUtils_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/WriteBuffer.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/WriteBuffer.cpp b/depends/libyarn/src/common/WriteBuffer.cpp
index 2067406..394c85c 100644
--- a/depends/libyarn/src/common/WriteBuffer.cpp
+++ b/depends/libyarn/src/common/WriteBuffer.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "WriteBuffer.h"
 
 #include <google/protobuf/io/coded_stream.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/WriteBuffer.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/WriteBuffer.h b/depends/libyarn/src/common/WriteBuffer.h
index 6000313..4db1284 100644
--- a/depends/libyarn/src/common/WriteBuffer.h
+++ b/depends/libyarn/src/common/WriteBuffer.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_WRITEBUFFER_H_
 #define _HDFS_LIBHDFS3_COMMON_WRITEBUFFER_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/XmlConfig.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/XmlConfig.cpp b/depends/libyarn/src/common/XmlConfig.cpp
index 2ccd6de..7ce5466 100644
--- a/depends/libyarn/src/common/XmlConfig.cpp
+++ b/depends/libyarn/src/common/XmlConfig.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Exception.h"
 #include "ExceptionInternal.h"
 #include "XmlConfig.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/common/XmlConfig.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/common/XmlConfig.h b/depends/libyarn/src/common/XmlConfig.h
index 2a3cb2c..0904ef9 100644
--- a/depends/libyarn/src/common/XmlConfig.h
+++ b/depends/libyarn/src/common/XmlConfig.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_COMMON_XMLCONFIG_H_
 #define _HDFS_LIBHDFS3_COMMON_XMLCONFIG_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationClient.cpp b/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
index fd4b11f..470b8a2 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
+++ b/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
@@ -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.
+ */
+
 #include <iostream>
 #include <sstream>
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/ApplicationClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationClient.h b/depends/libyarn/src/libyarnclient/ApplicationClient.h
index 49aacb7..8f297bd 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationClient.h
+++ b/depends/libyarn/src/libyarnclient/ApplicationClient.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 APPLICTIONCLIENT_H_
 #define APPLICTIONCLIENT_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp b/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
index d7c4dc6..36f5ec5 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
+++ b/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
@@ -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.
+ */
+
 #include <pthread.h>
 
 #include "rpc/RpcAuth.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/ApplicationMaster.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationMaster.h b/depends/libyarn/src/libyarnclient/ApplicationMaster.h
index 999c146..745af3f 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationMaster.h
+++ b/depends/libyarn/src/libyarnclient/ApplicationMaster.h
@@ -1,8 +1,20 @@
 /*
- * ApplicationMaster.h
- *
- *  Created on: Jun 19, 2014
- *      Author: bwang
+ * 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 APPLICATIONMASTER_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/ContainerManagement.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ContainerManagement.cpp b/depends/libyarn/src/libyarnclient/ContainerManagement.cpp
index abe2f02..4ab86cc 100644
--- a/depends/libyarn/src/libyarnclient/ContainerManagement.cpp
+++ b/depends/libyarn/src/libyarnclient/ContainerManagement.cpp
@@ -1,8 +1,20 @@
 /*
- * ContainerManagement.cpp
- *
- *  Created on: Jun 25, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ContainerManagement.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/ContainerManagement.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ContainerManagement.h b/depends/libyarn/src/libyarnclient/ContainerManagement.h
index a523bee..cce4161 100644
--- a/depends/libyarn/src/libyarnclient/ContainerManagement.h
+++ b/depends/libyarn/src/libyarnclient/ContainerManagement.h
@@ -1,8 +1,20 @@
 /*
- * ContainerManagement.h
- *
- *  Created on: Jun 25, 2014
- *      Author: bwang
+ * 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 CONTAINERMANAGEMENT_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/LibYarnClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/LibYarnClient.cpp b/depends/libyarn/src/libyarnclient/LibYarnClient.cpp
index aac5025..d0137e2 100644
--- a/depends/libyarn/src/libyarnclient/LibYarnClient.cpp
+++ b/depends/libyarn/src/libyarnclient/LibYarnClient.cpp
@@ -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.
+ */
+
 #include <sstream>
 #include <list>
 #include "rpc/RpcAuth.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/LibYarnClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/LibYarnClient.h b/depends/libyarn/src/libyarnclient/LibYarnClient.h
index ea384fb..f2b276c 100644
--- a/depends/libyarn/src/libyarnclient/LibYarnClient.h
+++ b/depends/libyarn/src/libyarnclient/LibYarnClient.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 LIBYARNCLIENT_H_
 #define LIBYARNCLIENT_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp b/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
index 5db3685..5ea3722 100644
--- a/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
+++ b/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
@@ -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.
+ */
+
 #include <list>
 #include <set>
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/LibYarnClientC.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/LibYarnClientC.h b/depends/libyarn/src/libyarnclient/LibYarnClientC.h
index aac3b29..233c11c 100644
--- a/depends/libyarn/src/libyarnclient/LibYarnClientC.h
+++ b/depends/libyarn/src/libyarnclient/LibYarnClientC.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 LIBYARNCLIENTC_H_
 #define LIBYARNCLIENTC_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnclient/LibYarnConstants.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/LibYarnConstants.h b/depends/libyarn/src/libyarnclient/LibYarnConstants.h
index 8dbd15a..08ffb28 100644
--- a/depends/libyarn/src/libyarnclient/LibYarnConstants.h
+++ b/depends/libyarn/src/libyarnclient/LibYarnConstants.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 LIBYARNCONSTANTS_H_
 #define LIBYARNCONSTANTS_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/KerberosName.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/KerberosName.cpp b/depends/libyarn/src/libyarncommon/KerberosName.cpp
index 8e83645..9ec1528 100644
--- a/depends/libyarn/src/libyarncommon/KerberosName.cpp
+++ b/depends/libyarn/src/libyarncommon/KerberosName.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "KerberosName.h"
 
 #include "Exception.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/KerberosName.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/KerberosName.h b/depends/libyarn/src/libyarncommon/KerberosName.h
index 082771a..3b68b1c 100644
--- a/depends/libyarn/src/libyarncommon/KerberosName.h
+++ b/depends/libyarn/src/libyarncommon/KerberosName.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_CLIENT_KERBEROSNAME_H_
 #define _HDFS_LIBHDFS3_CLIENT_KERBEROSNAME_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/RpcHelper.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/RpcHelper.h b/depends/libyarn/src/libyarncommon/RpcHelper.h
index 1067ade..fa6822e 100644
--- a/depends/libyarn/src/libyarncommon/RpcHelper.h
+++ b/depends/libyarn/src/libyarncommon/RpcHelper.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_SERVER_RPCHELPER_H_
 #define _HDFS_LIBHDFS3_SERVER_RPCHELPER_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/Token.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/Token.cpp b/depends/libyarn/src/libyarncommon/Token.cpp
index 8033704..648666c 100644
--- a/depends/libyarn/src/libyarncommon/Token.cpp
+++ b/depends/libyarn/src/libyarncommon/Token.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "Hash.h"
 #include "Token.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/Token.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/Token.h b/depends/libyarn/src/libyarncommon/Token.h
index 94a87c7..ddec6e7 100644
--- a/depends/libyarn/src/libyarncommon/Token.h
+++ b/depends/libyarn/src/libyarncommon/Token.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_CLIENT_TOKEN_H_
 #define _HDFS_LIBHDFS3_CLIENT_TOKEN_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/TokenInternal.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/TokenInternal.h b/depends/libyarn/src/libyarncommon/TokenInternal.h
index 1e683f7..37f7813 100644
--- a/depends/libyarn/src/libyarncommon/TokenInternal.h
+++ b/depends/libyarn/src/libyarncommon/TokenInternal.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_CLIENT_TOKENINTERNAL_H_
 #define _HDFS_LIBHDFS3_CLIENT_TOKENINTERNAL_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/UserInfo.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/UserInfo.cpp b/depends/libyarn/src/libyarncommon/UserInfo.cpp
index f8343fc..0f229b1 100644
--- a/depends/libyarn/src/libyarncommon/UserInfo.cpp
+++ b/depends/libyarn/src/libyarncommon/UserInfo.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "UserInfo.h"
 
 #include <pwd.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarncommon/UserInfo.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarncommon/UserInfo.h b/depends/libyarn/src/libyarncommon/UserInfo.h
index a27dd1a..3b7184c 100644
--- a/depends/libyarn/src/libyarncommon/UserInfo.h
+++ b/depends/libyarn/src/libyarncommon/UserInfo.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_CLIENT_USERINFO_H_
 #define _HDFS_LIBHDFS3_CLIENT_USERINFO_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.cpp b/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.cpp
index 620d48f..9669152 100644
--- a/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.cpp
+++ b/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.cpp
@@ -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.
+ */
+
 #include <iostream>
 
 #include "rpc/RpcCall.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h b/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h
index 853f85b..0360a7d 100644
--- a/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h
+++ b/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.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 APPLICATIONCLIENTPROTOCOL_H_
 #define APPLICATIONCLIENTPROTOCOL_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.cpp b/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.cpp
index 56b358f..57cf1de 100644
--- a/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.cpp
+++ b/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.cpp
@@ -1,8 +1,20 @@
 /*
- * ApplicationMasterProtocol.cpp
- *
- *  Created on: Jun 15, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "ApplicationMasterProtocol.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h b/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
index 70c352e..2d94b39 100644
--- a/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
+++ b/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
@@ -1,8 +1,20 @@
 /*
- * ApplicationMasterProtocol.h
- *
- *  Created on: Jun 15, 2014
- *      Author: bwang
+ * 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 APPLICATIONMASTERPROTOCOL_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.cpp b/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.cpp
index edf6241..0abd441 100644
--- a/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.cpp
+++ b/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.cpp
@@ -1,9 +1,22 @@
 /*
- * ContainerManagementProtocol.cpp
- *
- *  Created on: Jun 25, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "ApplicationMasterProtocol.h"
 #include "Exception.h"
 #include "ExceptionInternal.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h b/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
index 6b9750e..4a05b51 100644
--- a/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
+++ b/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
@@ -1,8 +1,20 @@
 /*
- * ContainerManagementProtocol.h
- *
- *  Created on: Jun 25, 2014
- *      Author: bwang
+ * 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 CONTAINERMANAGEMENTPROTOCOL_H_



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

Posted by wl...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/network/BufferedSocketReader.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/network/BufferedSocketReader.cpp b/depends/libyarn/src/network/BufferedSocketReader.cpp
index 664b48f..956c33e 100644
--- a/depends/libyarn/src/network/BufferedSocketReader.cpp
+++ b/depends/libyarn/src/network/BufferedSocketReader.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "BufferedSocketReader.h"
 #include "DateTime.h"
 #include "Exception.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/network/BufferedSocketReader.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/network/BufferedSocketReader.h b/depends/libyarn/src/network/BufferedSocketReader.h
index 2067199..99d3623 100644
--- a/depends/libyarn/src/network/BufferedSocketReader.h
+++ b/depends/libyarn/src/network/BufferedSocketReader.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_NETWORK_BUFFEREDSOCKET_H_
 #define _HDFS_LIBHDFS3_NETWORK_BUFFEREDSOCKET_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/network/Socket.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/network/Socket.h b/depends/libyarn/src/network/Socket.h
index 7fa6da8..656d513 100644
--- a/depends/libyarn/src/network/Socket.h
+++ b/depends/libyarn/src/network/Socket.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_NETWORK_SOCKET_H_
 #define _HDFS_LIBHDFS3_NETWORK_SOCKET_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/network/Syscall.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/network/Syscall.h b/depends/libyarn/src/network/Syscall.h
index ef947d2..3c78e9c 100644
--- a/depends/libyarn/src/network/Syscall.h
+++ b/depends/libyarn/src/network/Syscall.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_NETWORK_SYSCALL_H_
 #define _HDFS_LIBHDFS3_NETWORK_SYSCALL_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/network/TcpSocket.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/network/TcpSocket.cpp b/depends/libyarn/src/network/TcpSocket.cpp
index e6b6f84..bc1d5a5 100644
--- a/depends/libyarn/src/network/TcpSocket.cpp
+++ b/depends/libyarn/src/network/TcpSocket.cpp
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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.
+ */
+
 #include "platform.h"
 
 #include <arpa/inet.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/network/TcpSocket.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/network/TcpSocket.h b/depends/libyarn/src/network/TcpSocket.h
index 3f59145..ee4f3ea 100644
--- a/depends/libyarn/src/network/TcpSocket.h
+++ b/depends/libyarn/src/network/TcpSocket.h
@@ -1,9 +1,22 @@
-/********************************************************************
- * Copyright (c) 2014, Pivotal Inc.
- * All rights reserved.
- *
- * Author: Zhanwei Wang
- ********************************************************************/
+/*
+ * 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 _HDFS_LIBHDFS3_NETWORK_TCPSOCKET_H_
 #define _HDFS_LIBHDFS3_NETWORK_TCPSOCKET_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/AllocateRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/AllocateRequest.cpp b/depends/libyarn/src/protocolrecords/AllocateRequest.cpp
index 0e9ff9b..36fad46 100644
--- a/depends/libyarn/src/protocolrecords/AllocateRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/AllocateRequest.cpp
@@ -1,9 +1,22 @@
 /*
- * AllocateRequest.cpp
- *
- *  Created on: Jul 15, 2014
- *      Author: bwang
+ * 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.
  */
+
 #include "AllocateRequest.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/AllocateRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/AllocateRequest.h b/depends/libyarn/src/protocolrecords/AllocateRequest.h
index 5bfa89d..9650f13 100644
--- a/depends/libyarn/src/protocolrecords/AllocateRequest.h
+++ b/depends/libyarn/src/protocolrecords/AllocateRequest.h
@@ -1,8 +1,20 @@
 /*
- * AllocateRequest.h
- *
- *  Created on: Jul 15, 2014
- *      Author: bwang
+ * 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 ALLOCATEREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/AllocateResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/AllocateResponse.cpp b/depends/libyarn/src/protocolrecords/AllocateResponse.cpp
index 94469b4..ad56a36 100644
--- a/depends/libyarn/src/protocolrecords/AllocateResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/AllocateResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * AllocateResponse.cpp
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "AllocateResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/AllocateResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/AllocateResponse.h b/depends/libyarn/src/protocolrecords/AllocateResponse.h
index 649f51a..c1df060 100644
--- a/depends/libyarn/src/protocolrecords/AllocateResponse.h
+++ b/depends/libyarn/src/protocolrecords/AllocateResponse.h
@@ -1,8 +1,20 @@
 /*
- * AllocateResponse.h
- *
- *  Created on: Jul 16, 2014
- *      Author: bwang
+ * 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 ALLOCATERESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.cpp b/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.cpp
index b7baf38..bff8512 100644
--- a/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * FinishApplicationMasterRequest.cpp
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "FinishApplicationMasterRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h b/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
index 3b234c1..4bbd3a3 100644
--- a/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
+++ b/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
@@ -1,8 +1,20 @@
 /*
- * FinishApplicationMasterRequest.h
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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 FINISHAPPLICATIONMASTERREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.cpp b/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.cpp
index 59f9742..d11d847 100644
--- a/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * FinishApplicationMasterResponse.cpp
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "FinishApplicationMasterResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.h b/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.h
index 7e7ba86..404cb1b 100644
--- a/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.h
+++ b/depends/libyarn/src/protocolrecords/FinishApplicationMasterResponse.h
@@ -1,8 +1,20 @@
 /*
- * FinishApplicationMasterResponse.h
- *
- *  Created on: Jul 20, 2014
- *      Author: bwang
+ * 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 FINISHAPPLICATIONMASTERRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.cpp b/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.cpp
index 3092b5c..5b1c710 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetApplicationReportRequest.cpp
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetApplicationReportRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.h b/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.h
index 640b9dc..3caa47e 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetApplicationReportRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetApplicationReportRequest.h
- *
- *  Created on: Jul 14, 2014
- *      Author: bwang
+ * 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 GETAPPLICATIONREPORTREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.cpp b/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.cpp
index 83ee6f9..8c0f5c6 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * GetApplicationReportResponse.cpp
- *
- *  Created on: Jul 8, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetApplicationReportResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.h b/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.h
index 292cb14..237fe8a 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetApplicationReportResponse.h
@@ -1,10 +1,23 @@
 /*
- * GetApplicationReportResponse.h
- *
- *  Created on: Jul 8, 2014
- *      Author: bwang
+ * 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 GETAPPLICATIONREPORTRESPONSE_H_
 #define GETAPPLICATIONREPORTRESPONSE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationsRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationsRequest.cpp b/depends/libyarn/src/protocolrecords/GetApplicationsRequest.cpp
index 3c7b2d4..5392253 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationsRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetApplicationsRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetApplicationsRequest.cpp
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetApplicationsRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h b/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
index 6fedefa..1a1367c 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
@@ -1,10 +1,23 @@
 /*
- * GetApplicationsRequest.h
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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 GETAPPLICATIONSREQUEST_H_
 #define GETAPPLICATIONSREQUEST_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationsResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationsResponse.cpp b/depends/libyarn/src/protocolrecords/GetApplicationsResponse.cpp
index 4604426..215278d 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationsResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetApplicationsResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * GetApplicationsResponse.cpp
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetApplicationsResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h b/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
index 2bf6b7d..06c4b16 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
@@ -1,10 +1,23 @@
 /*
- * GetApplicationsResponse.h
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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 GETAPPLICATIONSRESPONSE_H_
 #define GETAPPLICATIONSRESPONSE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.cpp b/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.cpp
index 07657ae..71ae734 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.cpp
@@ -1,10 +1,23 @@
 /*
- * GetClusterMetricsRequest.cpp
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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.
  */
 
+
 #include "GetClusterMetricsRequest.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.h b/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.h
index 9427314..10829ac 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetClusterMetricsRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetClusterMetricsRequest.h
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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 GETCLUSTERMETRICSREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.cpp b/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.cpp
index 9c78677..1d40a3f 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * GetClusterMetricsResponse.cpp
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetClusterMetricsResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.h b/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.h
index 37813cf..7d76424 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetClusterMetricsResponse.h
@@ -1,8 +1,20 @@
 /*
- * GetClusterMetricsResponse.h
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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 GETCLUSTERMETRICSRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.cpp b/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.cpp
index a1475fc..9c11b55 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetClusterNodesRequest.cpp
- *
- *  Created on: Jul 18, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetClusterNodesRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h b/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
index 96d7170..d6890e4 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetClusterNodesRequest.h
- *
- *  Created on: Jul 18, 2014
- *      Author: bwang
+ * 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 GETCLUSTERNODESREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.cpp b/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.cpp
index 2afca73..125ea88 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * GetClusterNodesResponse.cpp
- *
- *  Created on: Jul 18, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetClusterNodesResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h b/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
index a56d1c3..e38ffd8 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
@@ -1,10 +1,23 @@
 /*
- * GetClusterNodesResponse.h
- *
- *  Created on: Jul 18, 2014
- *      Author: bwang
+ * 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 GETCLUSTERNODESRESPONSE_H_
 #define GETCLUSTERNODESRESPONSE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.cpp b/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.cpp
index 7c9b224..ef78341 100644
--- a/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetContainerStatusesRequest.cpp
- *
- *  Created on: Aug 1, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetContainerStatusesRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h b/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
index f700eb6..58c3473 100644
--- a/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetContainerStatusesRequest.h
- *
- *  Created on: Aug 1, 2014
- *      Author: bwang
+ * 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 GETCONTAINERSTATUSESREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
index 386d25e..d87c6fd 100644
--- a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * GetContainerStatusesResponse.cpp
- *
- *  Created on: Aug 1, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetContainerStatusesResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
index 24f1e65..00bfd6f 100644
--- a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
@@ -1,8 +1,20 @@
 /*
- * GetContainerStatusesResponse.h
- *
- *  Created on: Aug 1, 2014
- *      Author: bwang
+ * 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 GETCONTAINERSTATUSESRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainersRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainersRequest.cpp b/depends/libyarn/src/protocolrecords/GetContainersRequest.cpp
index 38b2f9b..128577b 100644
--- a/depends/libyarn/src/protocolrecords/GetContainersRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetContainersRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetContainersRequest.cpp
- *
- *  Created on: Jan 5, 2015
- *      Author: weikui
+ * 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.
  */
 
 #include "GetContainersRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainersRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainersRequest.h b/depends/libyarn/src/protocolrecords/GetContainersRequest.h
index d9fde53..2bc5fa6 100644
--- a/depends/libyarn/src/protocolrecords/GetContainersRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetContainersRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetContainersRequest.h
- *
- *  Created on: Jan 5, 2015
- *      Author: weikui
+ * 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 GETCONTAINERSREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainersResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainersResponse.cpp b/depends/libyarn/src/protocolrecords/GetContainersResponse.cpp
index 5b72311..53881f9 100644
--- a/depends/libyarn/src/protocolrecords/GetContainersResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetContainersResponse.cpp
@@ -1,9 +1,22 @@
 /*
- * GetContainersResponse.cpp
- *
- *  Created on: Jan 5, 2015
- *      Author: weikui
+ * 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.
  */
+
 #include "GetContainersResponse.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetContainersResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainersResponse.h b/depends/libyarn/src/protocolrecords/GetContainersResponse.h
index c8515bc..db72305 100644
--- a/depends/libyarn/src/protocolrecords/GetContainersResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetContainersResponse.h
@@ -1,8 +1,20 @@
 /*
- * GetContainersResponse.h
- *
- *  Created on: Jan 5, 2015
- *      Author: weikui
+ * 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 GETCONTAINERSRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.cpp b/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.cpp
index 3ba831e..73278ee 100644
--- a/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetNewApplicationRequest.cpp
- *
- *  Created on: Jul 10, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetNewApplicationRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.h b/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.h
index 960d2f2..e888e2b 100644
--- a/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetNewApplicationRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetNewApplicationRequest.h
- *
- *  Created on: Jul 10, 2014
- *      Author: bwang
+ * 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 GETNEWAPPLICATIONREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.cpp b/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.cpp
index 94ae77a..04e04ad 100644
--- a/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * GetNewApplicationResponse.cpp
- *
- *  Created on: Jul 10, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetNewApplicationResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.h b/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.h
index 110dbc3..41335d6 100644
--- a/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetNewApplicationResponse.h
@@ -1,8 +1,20 @@
 /*
- * GetNewApplicationResponse.h
- *
- *  Created on: Jul 10, 2014
- *      Author: bwang
+ * 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 GETNEWAPPLICATIONRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.cpp b/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.cpp
index f467650..a76b5c5 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetQueueInfoRequest.cpp
- *
- *  Created on: Jul 22, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetQueueInfoRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h b/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
index e32b822..8c86298 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetQueueInfoRequest.h
- *
- *  Created on: Jul 22, 2014
- *      Author: bwang
+ * 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 GETQUEUEINFOREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.cpp b/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.cpp
index 065adbe..33d4b10 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.cpp
@@ -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.
+ */
+
+/*
  * GetQueueInfoResponse.cpp
  *
  *  Created on: Jul 22, 2014

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.h b/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.h
index 408d25c..ac91b8c 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetQueueInfoResponse.h
@@ -1,10 +1,23 @@
 /*
- * GetQueueInfoResponse.h
- *
- *  Created on: Jul 22, 2014
- *      Author: bwang
+ * 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 GETQUEUEINFORESPONSE_H_
 #define GETQUEUEINFORESPONSE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.cpp b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.cpp
index dfaf9b4..751e8b5 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * GetQueueUserAclsInfoRequest.cpp
- *
- *  Created on: Jul 29, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetQueueUserAclsInfoRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.h b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.h
index 2440672..c35cff4 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoRequest.h
@@ -1,8 +1,20 @@
 /*
- * GetQueueUserAclsInfoRequest.h
- *
- *  Created on: Jul 29, 2014
- *      Author: bwang
+ * 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 GETQUEUEUSERACLSINFOREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.cpp b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.cpp
index 8545231..61346ca 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * GetQueueUserAclsInfoResponse.cpp
- *
- *  Created on: Jul 29, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "GetQueueUserAclsInfoResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
index 7ae947d..75b8f32 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
@@ -1,10 +1,23 @@
 /*
- * GetQueueUserAclsInfoResponse.h
- *
- *  Created on: Jul 29, 2014
- *      Author: bwang
+ * 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 GETQUEUEUSERACLSINFORESPONSE_H_
 #define GETQUEUEUSERACLSINFORESPONSE_H_
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/KillApplicationRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/KillApplicationRequest.cpp b/depends/libyarn/src/protocolrecords/KillApplicationRequest.cpp
index dee465b..63ce33a 100644
--- a/depends/libyarn/src/protocolrecords/KillApplicationRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/KillApplicationRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * KillApplicationRequest.cpp
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "KillApplicationRequest.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/KillApplicationRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/KillApplicationRequest.h b/depends/libyarn/src/protocolrecords/KillApplicationRequest.h
index b82c8cc..6b9702b 100644
--- a/depends/libyarn/src/protocolrecords/KillApplicationRequest.h
+++ b/depends/libyarn/src/protocolrecords/KillApplicationRequest.h
@@ -1,8 +1,20 @@
 /*
- * KillApplicationRequest.h
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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 KILLAPPLICATIONREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/KillApplicationResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/KillApplicationResponse.cpp b/depends/libyarn/src/protocolrecords/KillApplicationResponse.cpp
index f3f345c..2dcd944 100644
--- a/depends/libyarn/src/protocolrecords/KillApplicationResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/KillApplicationResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * KillApplicationResponse.cpp
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "KillApplicationResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/KillApplicationResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/KillApplicationResponse.h b/depends/libyarn/src/protocolrecords/KillApplicationResponse.h
index 55e2a03..3320ecd 100644
--- a/depends/libyarn/src/protocolrecords/KillApplicationResponse.h
+++ b/depends/libyarn/src/protocolrecords/KillApplicationResponse.h
@@ -1,8 +1,20 @@
 /*
- * KillApplicationResponse.h
- *
- *  Created on: Jul 28, 2014
- *      Author: bwang
+ * 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 KILLAPPLICATIONRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.cpp b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.cpp
index 48637ca..cb48427 100644
--- a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.cpp
@@ -1,10 +1,23 @@
 /*
- * RegisterApplicationMasterRequest.cpp
- *
- *  Created on: Jul 15, 2014
- *      Author: bwang
+ * 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.
  */
 
+
 #include "RegisterApplicationMasterRequest.h"
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
index 1c5ec6c..8c54e10 100644
--- a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
+++ b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
@@ -1,8 +1,20 @@
 /*
- * RegisterApplicationMasterRequest.h
- *
- *  Created on: Jul 15, 2014
- *      Author: bwang
+ * 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 REGISTERAPPLICATIONMASTERREQUEST_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.cpp b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.cpp
index d1f2913..0c7fb75 100644
--- a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.cpp
@@ -1,8 +1,20 @@
 /*
- * RegisterApplicationResponse.cpp
- *
- *  Created on: Jul 15, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "RegisterApplicationMasterResponse.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
index f137632..a7f5eee 100644
--- a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
+++ b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
@@ -1,8 +1,20 @@
 /*
- * RegisterApplicationResponse.h
- *
- *  Created on: Jul 15, 2014
- *      Author: bwang
+ * 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 REGISTERAPPLICATIONMASTERRESPONSE_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/depends/libyarn/src/protocolrecords/StartContainerRequest.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainerRequest.cpp b/depends/libyarn/src/protocolrecords/StartContainerRequest.cpp
index c091104..0e8f234 100644
--- a/depends/libyarn/src/protocolrecords/StartContainerRequest.cpp
+++ b/depends/libyarn/src/protocolrecords/StartContainerRequest.cpp
@@ -1,8 +1,20 @@
 /*
- * StartContainerRequest.cpp
- *
- *  Created on: Jul 17, 2014
- *      Author: bwang
+ * 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.
  */
 
 #include "StartContainerRequest.h"