From 33a7947245ac2c3201510e1020a8ca54fdcad406 Mon Sep 17 00:00:00 2001 From: Gautham Banasandra Date: Sat, 23 Jul 2022 10:26:49 +0530 Subject: [PATCH 1/4] HADOOP-18357. Retarget solution file to VS2019 * This PR retargets the Visual Studio solution and vcxproj files to use the latest version of Visual Studio (2019 as of this writing). --- .../src/main/native/native.vcxproj | 30 +++++++++---------- .../src/main/native/native.vcxproj.filters | 25 ++++++++++------ .../src/main/winutils/libwinutils.vcxproj | 8 +++-- .../src/main/winutils/winutils.vcxproj | 8 +++-- 4 files changed, 40 insertions(+), 31 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj index 36b560305b36a..b1a040d9b96bf 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj +++ b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj @@ -1,5 +1,4 @@ - - @@ -39,12 +37,14 @@ false true Unicode + v142 DynamicLibrary false true Unicode + v142 @@ -79,9 +79,7 @@ true - + @@ -142,16 +140,16 @@ /D HADOOP_ISAL_LIBRARY=L\"isa-l.dll\" - - - - - - - - - - + + + + + + + + + + @@ -169,4 +167,4 @@ - + \ No newline at end of file diff --git a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj.filters b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj.filters index 2c94f4311e561..ab71e3ab0e784 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj.filters +++ b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj.filters @@ -1,5 +1,4 @@  - - @@ -48,19 +46,16 @@ Source Files - - Source Files - - + Source Files - + Source Files - + Source Files - + Source Files @@ -86,5 +81,17 @@ Header Files + + Header Files + + + Header Files + + + Header Files + + + Header Files + \ No newline at end of file diff --git a/hadoop-common-project/hadoop-common/src/main/winutils/libwinutils.vcxproj b/hadoop-common-project/hadoop-common/src/main/winutils/libwinutils.vcxproj index 3c958e03312e1..95c9d3241baf3 100644 --- a/hadoop-common-project/hadoop-common/src/main/winutils/libwinutils.vcxproj +++ b/hadoop-common-project/hadoop-common/src/main/winutils/libwinutils.vcxproj @@ -1,5 +1,4 @@  - - @@ -46,23 +44,27 @@ StaticLibrary true Unicode + v142 StaticLibrary true Unicode + v142 StaticLibrary false true Unicode + v142 StaticLibrary false true Unicode + v142 @@ -188,4 +190,4 @@ - + \ No newline at end of file diff --git a/hadoop-common-project/hadoop-common/src/main/winutils/winutils.vcxproj b/hadoop-common-project/hadoop-common/src/main/winutils/winutils.vcxproj index 76a74147e1f3b..f937f5a81ffbd 100644 --- a/hadoop-common-project/hadoop-common/src/main/winutils/winutils.vcxproj +++ b/hadoop-common-project/hadoop-common/src/main/winutils/winutils.vcxproj @@ -1,5 +1,4 @@  - - @@ -46,17 +44,20 @@ Application true Unicode + v142 Application true Unicode + v142 Application false true Unicode + v142 @@ -64,6 +65,7 @@ false true Unicode + v142 @@ -207,4 +209,4 @@ - + \ No newline at end of file From 8093b32f3147a537658e47f24ea907d34c8d122e Mon Sep 17 00:00:00 2001 From: Gautham Banasandra Date: Sun, 24 Jul 2022 00:18:14 +0530 Subject: [PATCH 2/4] Run CI --- .../src/main/native/libhdfspp/tests/configuration_test.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc index 00662cd2b59e4..f3329ba5617e0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc @@ -568,7 +568,6 @@ TEST(ConfigurationTest, TestUriConversions) { } - int main(int argc, char *argv[]) { /* * The following line must be executed to initialize Google Mock From 62f6e669e24cc1f85776ee12ed67d5ac5d5f8c3a Mon Sep 17 00:00:00 2001 From: Gautham Banasandra Date: Sun, 24 Jul 2022 00:18:23 +0530 Subject: [PATCH 3/4] Revert "Run CI" This reverts commit 8093b32f3147a537658e47f24ea907d34c8d122e. --- .../src/main/native/libhdfspp/tests/configuration_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc index f3329ba5617e0..00662cd2b59e4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/configuration_test.cc @@ -568,6 +568,7 @@ TEST(ConfigurationTest, TestUriConversions) { } + int main(int argc, char *argv[]) { /* * The following line must be executed to initialize Google Mock From 8d02105f440983dccb3596fe71a971503188b53e Mon Sep 17 00:00:00 2001 From: Gautham Banasandra Date: Mon, 25 Jul 2022 11:14:25 +0530 Subject: [PATCH 4/4] Undo formatting changes --- .../src/main/native/native.vcxproj | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj index b1a040d9b96bf..3cabf1811bbf1 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj +++ b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj @@ -79,7 +79,9 @@ true - + @@ -140,16 +142,16 @@ /D HADOOP_ISAL_LIBRARY=L\"isa-l.dll\" - - - - - - - - - - + + + + + + + + + +