hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject incubator-hawq git commit: HAWQ-608. Hot refactor libyarn to fix bug under higher version of gcc, upgrade libyarn version number.
Date Fri, 01 Apr 2016 06:13:39 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 071f276bc -> b0ddaea73


HAWQ-608. Hot refactor libyarn to fix bug under higher version of gcc,
upgrade libyarn version number.


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

Branch: refs/heads/master
Commit: b0ddaea73b10e5ea809285d8c98b83428260de25
Parents: 071f276
Author: xunzhang <xunzhangthu@gmail.com>
Authored: Wed Mar 30 21:35:47 2016 +0800
Committer: Wen Lin <wlin@pivotal.io>
Committed: Fri Apr 1 14:12:40 2016 +0800

----------------------------------------------------------------------
 depends/libyarn/mock/MockApplicationClient.h                    | 2 +-
 depends/libyarn/mock/MockApplicationClientProtocol.h            | 2 +-
 depends/libyarn/mock/MockApplicationMaster.h                    | 2 +-
 depends/libyarn/mock/MockApplicationMasterProtocol.h            | 2 +-
 depends/libyarn/mock/MockContainerManagement.h                  | 2 +-
 depends/libyarn/mock/MockContainerManagementProtocol.h          | 2 +-
 depends/libyarn/mock/MockLibYarnClient.h                        | 2 +-
 depends/libyarn/sample/client_main.cpp                          | 5 ++++-
 depends/libyarn/src/CMakeLists.txt                              | 2 +-
 depends/libyarn/src/libyarnclient/ApplicationClient.cpp         | 2 +-
 depends/libyarn/src/libyarnclient/ApplicationClient.h           | 2 +-
 depends/libyarn/src/libyarnclient/ApplicationMaster.cpp         | 2 +-
 depends/libyarn/src/libyarnclient/ApplicationMaster.h           | 2 +-
 depends/libyarn/src/libyarnclient/ContainerManagement.h         | 2 +-
 depends/libyarn/src/libyarnclient/LibYarnClient.h               | 5 +++++
 depends/libyarn/src/libyarnclient/LibYarnClientC.cpp            | 2 +-
 depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h   | 2 +-
 depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h   | 2 +-
 depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h | 2 +-
 depends/libyarn/src/protocolrecords/AllocateRequest.h           | 2 +-
 depends/libyarn/src/protocolrecords/AllocateResponse.h          | 2 +-
 .../src/protocolrecords/FinishApplicationMasterRequest.h        | 2 +-
 depends/libyarn/src/protocolrecords/GetApplicationsRequest.h    | 2 +-
 depends/libyarn/src/protocolrecords/GetApplicationsResponse.h   | 2 +-
 depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h    | 2 +-
 depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h   | 2 +-
 .../libyarn/src/protocolrecords/GetContainerStatusesRequest.h   | 2 +-
 .../src/protocolrecords/GetContainerStatusesResponse.cpp        | 1 +
 .../libyarn/src/protocolrecords/GetContainerStatusesResponse.h  | 2 +-
 depends/libyarn/src/protocolrecords/GetContainersRequest.h      | 2 +-
 depends/libyarn/src/protocolrecords/GetContainersResponse.h     | 2 +-
 depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h       | 2 +-
 .../libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h  | 2 +-
 .../src/protocolrecords/RegisterApplicationMasterRequest.h      | 2 +-
 .../src/protocolrecords/RegisterApplicationMasterResponse.h     | 2 +-
 depends/libyarn/src/protocolrecords/StartContainerRequest.h     | 2 +-
 depends/libyarn/src/protocolrecords/StartContainerResponse.h    | 2 +-
 depends/libyarn/src/protocolrecords/StartContainersRequest.h    | 2 +-
 depends/libyarn/src/protocolrecords/StartContainersResponse.h   | 2 +-
 depends/libyarn/src/protocolrecords/StopContainersRequest.h     | 2 +-
 depends/libyarn/src/protocolrecords/StopContainersResponse.h    | 2 +-
 depends/libyarn/src/records/ApplicationACLMap.h                 | 2 +-
 depends/libyarn/src/records/ApplicationReport.h                 | 2 +-
 depends/libyarn/src/records/ApplicationSubmissionContext.h      | 2 +-
 depends/libyarn/src/records/Container.h                         | 2 +-
 depends/libyarn/src/records/ContainerLaunchContext.h            | 2 +-
 depends/libyarn/src/records/ContainerReport.h                   | 2 +-
 depends/libyarn/src/records/ContainerStatus.h                   | 2 +-
 depends/libyarn/src/records/LocalResource.h                     | 2 +-
 depends/libyarn/src/records/NodeId.h                            | 2 +-
 depends/libyarn/src/records/NodeReport.h                        | 2 +-
 depends/libyarn/src/records/PreemptionContract.cpp              | 3 +++
 depends/libyarn/src/records/PreemptionContract.h                | 3 ++-
 depends/libyarn/src/records/QueueInfo.h                         | 2 +-
 depends/libyarn/src/records/QueueUserACLInfo.h                  | 2 +-
 depends/libyarn/src/records/ResourceBlacklistRequest.h          | 2 +-
 depends/libyarn/src/records/ResourceRequest.h                   | 2 +-
 depends/libyarn/src/records/SerializedException.h               | 2 +-
 depends/libyarn/src/records/StrictPreemptionContract.h          | 3 ++-
 depends/libyarn/src/records/StringBytesMap.h                    | 2 +-
 depends/libyarn/src/records/StringLocalResourceMap.h            | 2 +-
 depends/libyarn/src/records/StringStringMap.h                   | 2 +-
 depends/libyarn/src/records/Token.h                             | 2 +-
 depends/libyarn/src/records/URL.h                               | 2 +-
 depends/libyarn/test/function/TestLibYarnClient.cpp             | 4 +++-
 .../libyarn/test/function/TestMockApplicationClientProtocol.cpp | 2 +-
 .../libyarn/test/function/TestMockApplicationMasterProtocol.cpp | 2 +-
 depends/libyarn/test/unit/TestApplicationClient.cpp             | 3 ++-
 depends/libyarn/test/unit/TestApplicationMaster.cpp             | 3 ++-
 depends/libyarn/test/unit/TestContainerManagement.cpp           | 4 +++-
 depends/libyarn/test/unit/TestLibYarnClient.cpp                 | 4 +++-
 depends/libyarn/test/unit/TestLibYarnClientC.cpp                | 2 +-
 72 files changed, 91 insertions(+), 69 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/mock/MockApplicationClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationClient.h b/depends/libyarn/mock/MockApplicationClient.h
index 765d8e8..0c59a85 100644
--- a/depends/libyarn/mock/MockApplicationClient.h
+++ b/depends/libyarn/mock/MockApplicationClient.h
@@ -31,7 +31,7 @@
 #include "libyarnclient/ApplicationClient.h"
 
 using namespace libyarn;
-using namespace std;
+using std::string; using std::list;
 
 namespace Mock{
 class MockApplicationClient : public ApplicationClient {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/mock/MockApplicationClientProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationClientProtocol.h b/depends/libyarn/mock/MockApplicationClientProtocol.h
index a52d629..2b105a7 100644
--- a/depends/libyarn/mock/MockApplicationClientProtocol.h
+++ b/depends/libyarn/mock/MockApplicationClientProtocol.h
@@ -31,7 +31,7 @@
 #include "libyarnserver/ApplicationClientProtocol.h"
 
 using namespace libyarn;
-using namespace std;
+using std::string; using std::list;
 
 namespace Mock{
 class MockApplicationClientProtocol : public ApplicationClientProtocol {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/mock/MockApplicationMaster.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationMaster.h b/depends/libyarn/mock/MockApplicationMaster.h
index b3fa96b..7627e38 100644
--- a/depends/libyarn/mock/MockApplicationMaster.h
+++ b/depends/libyarn/mock/MockApplicationMaster.h
@@ -31,7 +31,7 @@
 #include "libyarnclient/ApplicationMaster.h"
 
 using namespace libyarn;
-using namespace std;
+using std::string; using std::list;
 
 namespace Mock{
 class MockApplicationMaster : public ApplicationMaster {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/mock/MockApplicationMasterProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockApplicationMasterProtocol.h b/depends/libyarn/mock/MockApplicationMasterProtocol.h
index a81dacf..d2435d5 100644
--- a/depends/libyarn/mock/MockApplicationMasterProtocol.h
+++ b/depends/libyarn/mock/MockApplicationMasterProtocol.h
@@ -30,7 +30,7 @@
 #include "libyarnserver/ApplicationMasterProtocol.h"
 
 using namespace libyarn;
-using namespace std;
+using std::string; using std::list;
 
 namespace Mock{
 class MockApplicationMasterProtocol : public ApplicationMasterProtocol {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/mock/MockContainerManagement.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockContainerManagement.h b/depends/libyarn/mock/MockContainerManagement.h
index 9f293f2..8c6c80b 100644
--- a/depends/libyarn/mock/MockContainerManagement.h
+++ b/depends/libyarn/mock/MockContainerManagement.h
@@ -31,7 +31,7 @@
 #include "libyarnclient/ContainerManagement.h"
 
 using namespace libyarn;
-using namespace std;
+using std::string; using std::list;
 
 namespace Mock{
 class MockContainerManagement : public ContainerManagement {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/mock/MockContainerManagementProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockContainerManagementProtocol.h b/depends/libyarn/mock/MockContainerManagementProtocol.h
index 0d7268e..ee82c03 100644
--- a/depends/libyarn/mock/MockContainerManagementProtocol.h
+++ b/depends/libyarn/mock/MockContainerManagementProtocol.h
@@ -30,7 +30,7 @@
 #include "libyarnserver/ContainerManagementProtocol.h"
 
 using namespace libyarn;
-using namespace std;
+using std::string; using std::list;
 
 namespace Mock{
 class MockContainerManagementProtocol : public ContainerManagementProtocol {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/mock/MockLibYarnClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/mock/MockLibYarnClient.h b/depends/libyarn/mock/MockLibYarnClient.h
index d02d0fc..366cd8f 100644
--- a/depends/libyarn/mock/MockLibYarnClient.h
+++ b/depends/libyarn/mock/MockLibYarnClient.h
@@ -29,7 +29,7 @@
 #include "gmock/gmock.h"
 #include "libyarnclient/LibYarnClient.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace libyarn;
 
 namespace Mock {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/sample/client_main.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/sample/client_main.cpp b/depends/libyarn/sample/client_main.cpp
index 24601b7..8bae321 100644
--- a/depends/libyarn/sample/client_main.cpp
+++ b/depends/libyarn/sample/client_main.cpp
@@ -25,7 +25,10 @@
 #include "libyarn/LibYarnClient.h"
 #include "libyarn/records/FinalApplicationStatus.h"
 
-using namespace std;
+using std::string;
+using std::cout;
+using std::endl;
+using std::list;
 using namespace libyarn;
 
 int main(void)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/CMakeLists.txt b/depends/libyarn/src/CMakeLists.txt
index ba70739..a1b2444 100644
--- a/depends/libyarn/src/CMakeLists.txt
+++ b/depends/libyarn/src/CMakeLists.txt
@@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
 
 SET(libyarn_VERSION_MAJOR 0)
 SET(libyarn_VERSION_MINOR 1)
-SET(libyarn_VERSION_PATCH 14)
+SET(libyarn_VERSION_PATCH 15)
 SET(libyarn_VERSION_STRING "${libyarn_VERSION_MAJOR}.${libyarn_VERSION_MINOR}.${libyarn_VERSION_PATCH}")
 SET(libyarn_VERSION_API 1)
 SET(libyarn_ROOT_SOURCES_DIR ${CMAKE_SOURCE_DIR}/src)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationClient.cpp b/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
index 184d2d6..293365f 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
+++ b/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
@@ -136,7 +136,7 @@ void ApplicationClient::failoverToNextAppClientProto(uint32_t oldValue){
 
 static void HandleYarnFailoverException(const Yarn::YarnFailoverException & e) {
     try {
-        rethrow_if_nested(e);
+		Yarn::rethrow_if_nested(e);
     } catch (...) {
         NESTED_THROW(Yarn::YarnRpcException, "%s", e.what());
     }

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnclient/ApplicationClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationClient.h b/depends/libyarn/src/libyarnclient/ApplicationClient.h
index bc280d8..4dd1b51 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationClient.h
+++ b/depends/libyarn/src/libyarnclient/ApplicationClient.h
@@ -31,7 +31,7 @@
 #include "records/QueueUserACLInfo.h"
 #include "Thread.h"
 
-using namespace std;
+using std::string; using std::list;
 
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp b/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
index 623258f..ae96f8d 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
+++ b/depends/libyarn/src/libyarnclient/ApplicationMaster.cpp
@@ -106,7 +106,7 @@ void ApplicationMaster::failoverToNextAppMasterProto(uint32_t oldValue){
 
 static void HandleYarnFailoverException(const Yarn::YarnFailoverException & e) {
     try {
-        rethrow_if_nested(e);
+		Yarn::rethrow_if_nested(e);
     } catch (...) {
         NESTED_THROW(Yarn::YarnRpcException, "%s", e.what());
     }

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnclient/ApplicationMaster.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ApplicationMaster.h b/depends/libyarn/src/libyarnclient/ApplicationMaster.h
index 755c843..52324de 100644
--- a/depends/libyarn/src/libyarnclient/ApplicationMaster.h
+++ b/depends/libyarn/src/libyarnclient/ApplicationMaster.h
@@ -36,7 +36,7 @@
 #include "records/ResourceBlacklistRequest.h"
 
 
-using namespace std;
+using std::string; using std::list;
 using namespace Yarn::Internal;
 using namespace Yarn;
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnclient/ContainerManagement.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/ContainerManagement.h b/depends/libyarn/src/libyarnclient/ContainerManagement.h
index cce4161..fd8fe83 100644
--- a/depends/libyarn/src/libyarnclient/ContainerManagement.h
+++ b/depends/libyarn/src/libyarnclient/ContainerManagement.h
@@ -43,7 +43,7 @@
 #include "protocolrecords/GetContainerStatusesRequest.h"
 #include "protocolrecords/GetContainerStatusesResponse.h"
 
-using namespace std;
+using std::string; using std::list;
 
 #ifdef MOCKTEST
 #include "TestContainerManagementStub.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnclient/LibYarnClient.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/LibYarnClient.h b/depends/libyarn/src/libyarnclient/LibYarnClient.h
index ad6b152..2e3481c 100644
--- a/depends/libyarn/src/libyarnclient/LibYarnClient.h
+++ b/depends/libyarn/src/libyarnclient/LibYarnClient.h
@@ -41,6 +41,11 @@
 #include "TestLibYarnClientStub.h"
 #endif
 
+using std::string;
+using std::list;
+using std::map;
+using std::set;
+
 namespace libyarn {
 	class LibYarnClient {
 	public:

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp b/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
index 283c000..cc7544d 100644
--- a/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
+++ b/depends/libyarn/src/libyarnclient/LibYarnClientC.cpp
@@ -25,7 +25,7 @@
 #include "records/ResourceRequest.h"
 #include "records/Priority.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace libyarn;
 
 extern "C" {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h b/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h
index 0360a7d..3a317c3 100644
--- a/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h
+++ b/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h
@@ -54,7 +54,7 @@
 #define APP_CLIENT_PROTOCOL "org.apache.hadoop.yarn.api.ApplicationClientProtocolPB"
 #define APP_CLIENT_DELEGATION_TOKEN_KIND "ContainerToken"
 
-using namespace std;
+using std::string; using std::list;
 using namespace google::protobuf;
 using namespace hadoop::yarn;
 using namespace Yarn::Internal;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h b/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
index 2d94b39..157563e 100644
--- a/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
+++ b/depends/libyarn/src/libyarnserver/ApplicationMasterProtocol.h
@@ -47,7 +47,7 @@
 #define APPLICATION_MASTER_PROTOCOL "org.apache.hadoop.yarn.api.ApplicationMasterProtocolPB"
 #define AMRM_TOKEN_KIND "YARN_AM_RM_TOKEN"
 
-using namespace std;
+using std::string; using std::list;
 using namespace google::protobuf;
 
 using namespace hadoop::yarn;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h b/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
index 4a05b51..6ed3b51 100644
--- a/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
+++ b/depends/libyarn/src/libyarnserver/ContainerManagementProtocol.h
@@ -48,7 +48,7 @@
 #define CONTAINER_MANAGEMENT_PROTOCOL "org.apache.hadoop.yarn.api.ContainerManagementProtocolPB"
 #define NM_TOKEN_KIND "NMToken"
 
-using namespace std;
+using std::string; using std::list;
 using namespace google::protobuf;
 
 using namespace hadoop::yarn;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/AllocateRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/AllocateRequest.h b/depends/libyarn/src/protocolrecords/AllocateRequest.h
index 9650f13..7713a6b 100644
--- a/depends/libyarn/src/protocolrecords/AllocateRequest.h
+++ b/depends/libyarn/src/protocolrecords/AllocateRequest.h
@@ -29,7 +29,7 @@
 #include "records/ContainerId.h"
 #include "records/ResourceBlacklistRequest.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/AllocateResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/AllocateResponse.h b/depends/libyarn/src/protocolrecords/AllocateResponse.h
index c1df060..0872744 100644
--- a/depends/libyarn/src/protocolrecords/AllocateResponse.h
+++ b/depends/libyarn/src/protocolrecords/AllocateResponse.h
@@ -36,7 +36,7 @@
 
 
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h b/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
index 4bbd3a3..67d6d57 100644
--- a/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
+++ b/depends/libyarn/src/protocolrecords/FinishApplicationMasterRequest.h
@@ -26,7 +26,7 @@
 
 #include "records/FinalApplicationStatus.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h b/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
index 1a1367c..66e3416 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetApplicationsRequest.h
@@ -28,7 +28,7 @@
 
 #include "records/YarnApplicationState.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h b/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
index 06c4b16..bd201a4 100644
--- a/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetApplicationsResponse.h
@@ -25,7 +25,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/ApplicationReport.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h b/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
index d6890e4..8b7fe37 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetClusterNodesRequest.h
@@ -24,7 +24,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/NodeState.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h b/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
index e38ffd8..9c4875d 100644
--- a/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetClusterNodesResponse.h
@@ -27,7 +27,7 @@
 
 #include "records/NodeReport.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h b/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
index 58c3473..bf61e25 100644
--- a/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetContainerStatusesRequest.h
@@ -24,7 +24,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/ContainerId.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
index d87c6fd..3c7f18c 100644
--- a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
+++ b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.cpp
@@ -18,6 +18,7 @@
  */
 
 #include "GetContainerStatusesResponse.h"
+using std::list;
 
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
index 00bfd6f..866757a 100644
--- a/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetContainerStatusesResponse.h
@@ -24,7 +24,7 @@
 #include <list>
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/ContainerStatus.h"
-
+using std::list;
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetContainersRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainersRequest.h b/depends/libyarn/src/protocolrecords/GetContainersRequest.h
index 2bc5fa6..30ed2c3 100644
--- a/depends/libyarn/src/protocolrecords/GetContainersRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetContainersRequest.h
@@ -26,7 +26,7 @@
 #include "YARN_yarn_protos.pb.h"
 #include "records/ApplicationAttemptId.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetContainersResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetContainersResponse.h b/depends/libyarn/src/protocolrecords/GetContainersResponse.h
index c3623be..a291ec2 100644
--- a/depends/libyarn/src/protocolrecords/GetContainersResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetContainersResponse.h
@@ -24,7 +24,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/ContainerReport.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h b/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
index 8c86298..62c6940 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
+++ b/depends/libyarn/src/protocolrecords/GetQueueInfoRequest.h
@@ -22,7 +22,7 @@
 
 #include "YARN_yarn_service_protos.pb.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
index 75b8f32..24fb8f0 100644
--- a/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
+++ b/depends/libyarn/src/protocolrecords/GetQueueUserAclsInfoResponse.h
@@ -25,7 +25,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/QueueUserACLInfo.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
index 8c54e10..b921095 100644
--- a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
+++ b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterRequest.h
@@ -22,7 +22,7 @@
 
 #include "YARN_yarn_service_protos.pb.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
index a7f5eee..61ea3ff 100644
--- a/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
+++ b/depends/libyarn/src/protocolrecords/RegisterApplicationMasterResponse.h
@@ -25,7 +25,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/Resource.h"
 
-
+using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/StartContainerRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainerRequest.h b/depends/libyarn/src/protocolrecords/StartContainerRequest.h
index 1af3756..1c1e23b 100644
--- a/depends/libyarn/src/protocolrecords/StartContainerRequest.h
+++ b/depends/libyarn/src/protocolrecords/StartContainerRequest.h
@@ -26,7 +26,7 @@
 #include "records/ContainerLaunchContext.h"
 #include "records/Token.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 using namespace hadoop::common;
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/StartContainerResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainerResponse.h b/depends/libyarn/src/protocolrecords/StartContainerResponse.h
index 6a4c526..688b856 100644
--- a/depends/libyarn/src/protocolrecords/StartContainerResponse.h
+++ b/depends/libyarn/src/protocolrecords/StartContainerResponse.h
@@ -24,7 +24,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/StringBytesMap.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/StartContainersRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainersRequest.h b/depends/libyarn/src/protocolrecords/StartContainersRequest.h
index 47044ef..3e1d2a6 100644
--- a/depends/libyarn/src/protocolrecords/StartContainersRequest.h
+++ b/depends/libyarn/src/protocolrecords/StartContainersRequest.h
@@ -25,7 +25,7 @@
 #include "StartContainerRequest.h"
 #include "records/Token.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/StartContainersResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StartContainersResponse.h b/depends/libyarn/src/protocolrecords/StartContainersResponse.h
index 2493fc4..c6fcd6d 100644
--- a/depends/libyarn/src/protocolrecords/StartContainersResponse.h
+++ b/depends/libyarn/src/protocolrecords/StartContainersResponse.h
@@ -27,7 +27,7 @@
 #include "records/ContainerExceptionMap.h"
 #include "records/ContainerId.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/StopContainersRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StopContainersRequest.h b/depends/libyarn/src/protocolrecords/StopContainersRequest.h
index 82e51c2..63b2d5f 100644
--- a/depends/libyarn/src/protocolrecords/StopContainersRequest.h
+++ b/depends/libyarn/src/protocolrecords/StopContainersRequest.h
@@ -25,7 +25,7 @@
 #include "YARN_yarn_service_protos.pb.h"
 #include "records/ContainerId.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/protocolrecords/StopContainersResponse.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/protocolrecords/StopContainersResponse.h b/depends/libyarn/src/protocolrecords/StopContainersResponse.h
index 80b658f..a6014f4 100644
--- a/depends/libyarn/src/protocolrecords/StopContainersResponse.h
+++ b/depends/libyarn/src/protocolrecords/StopContainersResponse.h
@@ -27,7 +27,7 @@
 #include "records/ContainerId.h"
 
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ApplicationACLMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationACLMap.h b/depends/libyarn/src/records/ApplicationACLMap.h
index 8fd91fe..2ea060c 100644
--- a/depends/libyarn/src/records/ApplicationACLMap.h
+++ b/depends/libyarn/src/records/ApplicationACLMap.h
@@ -24,7 +24,7 @@
 #include "YARN_yarn_protos.pb.h"
 #include "ApplicationAccessType.h"
 
-using namespace std;
+using std::string; 
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ApplicationReport.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationReport.h b/depends/libyarn/src/records/ApplicationReport.h
index 4863fa2..8aeb885 100644
--- a/depends/libyarn/src/records/ApplicationReport.h
+++ b/depends/libyarn/src/records/ApplicationReport.h
@@ -33,7 +33,7 @@
 #include "ApplicationResourceUsageReport.h"
 #include "ApplicationAttemptId.h"
 
-using namespace std;
+using std::string; 
 using namespace hadoop::yarn;
 using namespace hadoop::common;
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ApplicationSubmissionContext.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ApplicationSubmissionContext.h b/depends/libyarn/src/records/ApplicationSubmissionContext.h
index 0e3c6cc..f371a9f 100644
--- a/depends/libyarn/src/records/ApplicationSubmissionContext.h
+++ b/depends/libyarn/src/records/ApplicationSubmissionContext.h
@@ -27,7 +27,7 @@
 #include "Priority.h"
 #include "Resource.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/Container.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Container.h b/depends/libyarn/src/records/Container.h
index f982b32..94aa460 100644
--- a/depends/libyarn/src/records/Container.h
+++ b/depends/libyarn/src/records/Container.h
@@ -29,7 +29,7 @@
 #include "Token.h"
 
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 using namespace hadoop::common;
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ContainerLaunchContext.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerLaunchContext.h b/depends/libyarn/src/records/ContainerLaunchContext.h
index 0477f2c..dffe2ca 100644
--- a/depends/libyarn/src/records/ContainerLaunchContext.h
+++ b/depends/libyarn/src/records/ContainerLaunchContext.h
@@ -32,7 +32,7 @@
 #include "LocalResource.h"
 #include "StringStringMap.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ContainerReport.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerReport.h b/depends/libyarn/src/records/ContainerReport.h
index d2b7bf9..2e034f0 100644
--- a/depends/libyarn/src/records/ContainerReport.h
+++ b/depends/libyarn/src/records/ContainerReport.h
@@ -31,7 +31,7 @@
 #include "Resource.h"
 #include "Priority.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 using namespace hadoop::common;
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ContainerStatus.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ContainerStatus.h b/depends/libyarn/src/records/ContainerStatus.h
index ae4efa0..f099985 100644
--- a/depends/libyarn/src/records/ContainerStatus.h
+++ b/depends/libyarn/src/records/ContainerStatus.h
@@ -23,7 +23,7 @@
 #include "records/ContainerState.h"
 #include "records/ContainerId.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/LocalResource.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/LocalResource.h b/depends/libyarn/src/records/LocalResource.h
index 87b9c6f..307d236 100644
--- a/depends/libyarn/src/records/LocalResource.h
+++ b/depends/libyarn/src/records/LocalResource.h
@@ -26,7 +26,7 @@
 #include "LocalResourceType.h"
 #include "LocalResourceVisibility.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/NodeId.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NodeId.h b/depends/libyarn/src/records/NodeId.h
index e735110..0b70672 100644
--- a/depends/libyarn/src/records/NodeId.h
+++ b/depends/libyarn/src/records/NodeId.h
@@ -22,7 +22,7 @@
 
 #include "YARN_yarn_protos.pb.h"
 
-using namespace std;
+using std::string; 
 
 using namespace hadoop::yarn;
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/NodeReport.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/NodeReport.h b/depends/libyarn/src/records/NodeReport.h
index e426e2f..395e22c 100644
--- a/depends/libyarn/src/records/NodeReport.h
+++ b/depends/libyarn/src/records/NodeReport.h
@@ -33,7 +33,7 @@
 #include "Resource.h"
 #include "NodeState.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/PreemptionContract.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionContract.cpp b/depends/libyarn/src/records/PreemptionContract.cpp
index dbf4724..87b4577 100644
--- a/depends/libyarn/src/records/PreemptionContract.cpp
+++ b/depends/libyarn/src/records/PreemptionContract.cpp
@@ -17,8 +17,11 @@
  * under the License.
  */
 
+#include <set>
 #include "PreemptionContract.h"
 
+using std::set;
+
 namespace libyarn {
 
 PreemptionContract::PreemptionContract(){

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/PreemptionContract.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/PreemptionContract.h b/depends/libyarn/src/records/PreemptionContract.h
index 83ed203..9257c0e 100644
--- a/depends/libyarn/src/records/PreemptionContract.h
+++ b/depends/libyarn/src/records/PreemptionContract.h
@@ -28,7 +28,8 @@
 #include "PreemptionResourceRequest.h"
 #include "PreemptionContainer.h"
 
-using namespace std;
+using std::list;
+using std::set;
 using namespace hadoop;
 using namespace yarn;
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/QueueInfo.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueInfo.h b/depends/libyarn/src/records/QueueInfo.h
index f14fc20..9bdd3af 100644
--- a/depends/libyarn/src/records/QueueInfo.h
+++ b/depends/libyarn/src/records/QueueInfo.h
@@ -28,7 +28,7 @@
 #include "QueueState.h"
 #include "ApplicationReport.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/QueueUserACLInfo.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/QueueUserACLInfo.h b/depends/libyarn/src/records/QueueUserACLInfo.h
index 9d26cfa..fd19e42 100644
--- a/depends/libyarn/src/records/QueueUserACLInfo.h
+++ b/depends/libyarn/src/records/QueueUserACLInfo.h
@@ -25,7 +25,7 @@
 #include "YARN_yarn_protos.pb.h"
 #include "QueueACL.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ResourceBlacklistRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ResourceBlacklistRequest.h b/depends/libyarn/src/records/ResourceBlacklistRequest.h
index 04beff6..ff9d873 100644
--- a/depends/libyarn/src/records/ResourceBlacklistRequest.h
+++ b/depends/libyarn/src/records/ResourceBlacklistRequest.h
@@ -23,7 +23,7 @@
 #include <list>
 #include "YARN_yarn_protos.pb.h"
 
-using namespace std;
+using std::string; using std::list;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/ResourceRequest.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/ResourceRequest.h b/depends/libyarn/src/records/ResourceRequest.h
index 1a24c5f..0bcd817 100644
--- a/depends/libyarn/src/records/ResourceRequest.h
+++ b/depends/libyarn/src/records/ResourceRequest.h
@@ -26,7 +26,7 @@
 #include "Priority.h"
 #include "Resource.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/SerializedException.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/SerializedException.h b/depends/libyarn/src/records/SerializedException.h
index 87b0948..75b4e15 100644
--- a/depends/libyarn/src/records/SerializedException.h
+++ b/depends/libyarn/src/records/SerializedException.h
@@ -23,7 +23,7 @@
 #include <iostream>
 #include "YARN_yarn_protos.pb.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/StrictPreemptionContract.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StrictPreemptionContract.h b/depends/libyarn/src/records/StrictPreemptionContract.h
index 7251e82..a9c915f 100644
--- a/depends/libyarn/src/records/StrictPreemptionContract.h
+++ b/depends/libyarn/src/records/StrictPreemptionContract.h
@@ -26,7 +26,8 @@
 
 #include "PreemptionContainer.h"
 
-using namespace std;
+using std::string; 
+using std::set;
 using namespace hadoop;
 using namespace yarn;
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/StringBytesMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringBytesMap.h b/depends/libyarn/src/records/StringBytesMap.h
index 2b4e30a..3f634f2 100644
--- a/depends/libyarn/src/records/StringBytesMap.h
+++ b/depends/libyarn/src/records/StringBytesMap.h
@@ -23,7 +23,7 @@
 #include <iostream>
 #include "YARN_yarn_protos.pb.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/StringLocalResourceMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringLocalResourceMap.h b/depends/libyarn/src/records/StringLocalResourceMap.h
index 913c28a..21480c9 100644
--- a/depends/libyarn/src/records/StringLocalResourceMap.h
+++ b/depends/libyarn/src/records/StringLocalResourceMap.h
@@ -23,7 +23,7 @@
 #include "YARN_yarn_protos.pb.h"
 #include "LocalResource.h"
 
-using namespace std;
+using std::string; 
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/StringStringMap.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/StringStringMap.h b/depends/libyarn/src/records/StringStringMap.h
index bdbfe9d..8e74743 100644
--- a/depends/libyarn/src/records/StringStringMap.h
+++ b/depends/libyarn/src/records/StringStringMap.h
@@ -23,7 +23,7 @@
 #include <iostream>
 #include "YARN_yarn_protos.pb.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/Token.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/Token.h b/depends/libyarn/src/records/Token.h
index 0d5486b..9489570 100644
--- a/depends/libyarn/src/records/Token.h
+++ b/depends/libyarn/src/records/Token.h
@@ -22,7 +22,7 @@
 
 #include "YARNSecurity.pb.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::common;
 
 namespace libyarn {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/src/records/URL.h
----------------------------------------------------------------------
diff --git a/depends/libyarn/src/records/URL.h b/depends/libyarn/src/records/URL.h
index 5a90958..62b5013 100644
--- a/depends/libyarn/src/records/URL.h
+++ b/depends/libyarn/src/records/URL.h
@@ -23,7 +23,7 @@
 #include <iostream>
 #include "YARN_yarn_protos.pb.h"
 
-using namespace std;
+using std::string;
 using namespace hadoop::yarn;
 namespace libyarn {
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/function/TestLibYarnClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/function/TestLibYarnClient.cpp b/depends/libyarn/test/function/TestLibYarnClient.cpp
index a39377d..3043ea9 100644
--- a/depends/libyarn/test/function/TestLibYarnClient.cpp
+++ b/depends/libyarn/test/function/TestLibYarnClient.cpp
@@ -21,7 +21,9 @@
 #include "libyarnclient/LibYarnClient.h"
 #include "records/FinalApplicationStatus.h"
 
-using namespace std;
+using std::string;
+using std::list;
+using std::set;
 using namespace libyarn;
 
 class TestLibYarnClient: public ::testing::Test {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp b/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
index 5a5c879..8acb039 100644
--- a/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
+++ b/depends/libyarn/test/function/TestMockApplicationClientProtocol.cpp
@@ -24,7 +24,7 @@
 
 using namespace testing;
 using namespace Mock;
-using namespace std;
+using std::string;
 
 class TestMockApplicationClientProtocol: public ::testing::Test {
 public:

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp b/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
index a3606f6..4236ccb 100644
--- a/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
+++ b/depends/libyarn/test/function/TestMockApplicationMasterProtocol.cpp
@@ -24,7 +24,7 @@
 
 using namespace testing;
 using namespace Mock;
-using namespace std;
+using std::string;
 
 class TestMockApplicationMasterProtocol: public ::testing::Test {
 public:

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/unit/TestApplicationClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestApplicationClient.cpp b/depends/libyarn/test/unit/TestApplicationClient.cpp
index dcfb9f2..d81ac0a 100644
--- a/depends/libyarn/test/unit/TestApplicationClient.cpp
+++ b/depends/libyarn/test/unit/TestApplicationClient.cpp
@@ -23,7 +23,8 @@
 #include "libyarnclient/ApplicationClient.h"
 #include "MockApplicationClientProtocol.h"
 
-using namespace std;
+using std::string;
+using std::list;
 using namespace libyarn;
 using namespace testing;
 using namespace Mock;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/unit/TestApplicationMaster.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestApplicationMaster.cpp b/depends/libyarn/test/unit/TestApplicationMaster.cpp
index 3576e65..ad2f7d4 100644
--- a/depends/libyarn/test/unit/TestApplicationMaster.cpp
+++ b/depends/libyarn/test/unit/TestApplicationMaster.cpp
@@ -23,7 +23,8 @@
 #include "libyarnclient/ApplicationMaster.h"
 #include "MockApplicationMasterProtocol.h"
 
-using namespace std;
+using std::string;
+using std::list;
 using namespace libyarn;
 using namespace testing;
 using namespace Mock;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/unit/TestContainerManagement.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestContainerManagement.cpp b/depends/libyarn/test/unit/TestContainerManagement.cpp
index 27b03d0..ffc3219 100644
--- a/depends/libyarn/test/unit/TestContainerManagement.cpp
+++ b/depends/libyarn/test/unit/TestContainerManagement.cpp
@@ -24,7 +24,9 @@
 #include "MockContainerManagementProtocol.h"
 #include "TestContainerManagementStub.h"
 
-using namespace std;
+using std::map;
+using std::string;
+using std::list;
 using namespace libyarn;
 using namespace testing;
 using namespace Mock;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/unit/TestLibYarnClient.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestLibYarnClient.cpp b/depends/libyarn/test/unit/TestLibYarnClient.cpp
index 0fd9149..f922b5b 100644
--- a/depends/libyarn/test/unit/TestLibYarnClient.cpp
+++ b/depends/libyarn/test/unit/TestLibYarnClient.cpp
@@ -27,7 +27,9 @@
 #include "MockContainerManagement.h"
 #include "TestLibYarnClientStub.h"
 
-using namespace std;
+using std::string;
+using std::list;
+using std::set;
 using namespace libyarn;
 using namespace testing;
 using namespace Mock;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b0ddaea7/depends/libyarn/test/unit/TestLibYarnClientC.cpp
----------------------------------------------------------------------
diff --git a/depends/libyarn/test/unit/TestLibYarnClientC.cpp b/depends/libyarn/test/unit/TestLibYarnClientC.cpp
index 7b083f6..09dbe1c 100644
--- a/depends/libyarn/test/unit/TestLibYarnClientC.cpp
+++ b/depends/libyarn/test/unit/TestLibYarnClientC.cpp
@@ -23,7 +23,7 @@
 #include "libyarnclient/LibYarnClientC.h"
 #include "MockLibYarnClient.h"
 
-using namespace std;
+using std::string;
 using namespace libyarn;
 using namespace testing;
 using namespace Mock;


Mime
View raw message