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

[09/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/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