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

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

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a41ad6f2/src/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"