You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Bankim Bhavsar (Code Review)" <ge...@cloudera.org> on 2021/12/15 22:17:06 UTC
[kudu-CR] [thirdparty] Add jwt-cpp to thirdparty build
Bankim Bhavsar has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18103
Change subject: [thirdparty] Add jwt-cpp to thirdparty build
......................................................................
[thirdparty] Add jwt-cpp to thirdparty build
This is a header only library require for adding JWT support
to kudu server.
https://github.com/Thalhammer/jwt-cpp/
Version 0.5.1 is used which is a recent stable version.
This is the same library used by Impala for its
JWT implementation.
jwt-cpp specifies a min OpenSSL version of 1.0.2
but doesn't seem to use any specific features from that version
as the project started with that version.
Tested build of thirdparty with OpenSSL 1.0.1 on CentOS7.3
and MacOS 10.15.7 with OpenSSL 1.1.1
Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
---
M CMakeLists.txt
A cmake_modules/FindJwtCpp.cmake
M thirdparty/build-definitions.sh
M thirdparty/build-thirdparty.sh
M thirdparty/download-thirdparty.sh
A thirdparty/patches/jwt-cpp-openssl-1.0.1.patch
M thirdparty/vars.sh
7 files changed, 89 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/03/18103/1
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 1
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
[kudu-CR] [thirdparty] add jwt-cpp to thirdparty build
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/18103 )
Change subject: [thirdparty] add jwt-cpp to thirdparty build
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 2
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 26 Jan 2022 21:53:36 +0000
Gerrit-HasComments: No
[kudu-CR] [thirdparty] add jwt-cpp to thirdparty build
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/18103 )
Change subject: [thirdparty] add jwt-cpp to thirdparty build
......................................................................
Patch Set 2: Verified+1
unrelated test failures in:
* ParameterizedAddMasterTest.TestAddMasterSysCatalogCopy/2
* DisableWriteWhenExceedingQuotaTest.TestDisableWritePrivilegeWhenExceedingSizeQuota
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 2
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 26 Jan 2022 22:00:55 +0000
Gerrit-HasComments: No
[kudu-CR] [thirdparty] Add jwt-cpp to thirdparty build
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/18103 )
Change subject: [thirdparty] Add jwt-cpp to thirdparty build
......................................................................
Patch Set 1:
(4 comments)
http://gerrit.cloudera.org:8080/#/c/18103/1//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/18103/1//COMMIT_MSG@9
PS1, Line 9: require
nit: required
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-definitions.sh
File thirdparty/build-definitions.sh:
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-definitions.sh@1138
PS1, Line 1138: "$OPENSSL_ROOT_DIR" \
This looks a bit strange: why not to pass all what's necessary in this context via EXTRA_CXXFLAGS?
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-thirdparty.sh
File thirdparty/build-thirdparty.sh:
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-thirdparty.sh@181
PS1, Line 181: OPENSSL_ROOT_DIR="-DOPENSSL_ROOT_DIR=$homebrew_openssl_dir"
This isn't a good naming for a variable: at least, OPENSSL_ROOT_DIR is supposed to point to a location, not be a flag or something (at least that's how it's used in the top-level CMakeLists.txt). Why not to add corresponding -D... into the EXTRA_CXXFLAGS?
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/patches/jwt-cpp-openssl-1.0.1.patch
File thirdparty/patches/jwt-cpp-openssl-1.0.1.patch:
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/patches/jwt-cpp-openssl-1.0.1.patch@18
PS1, Line 18: +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
: +
It turns out this piece isn't necessary if building with C++11-cabaple compiler. At least, that worked for me fine without this line if using devtoolset on CentOS6.6
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 1
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 15 Dec 2021 22:54:35 +0000
Gerrit-HasComments: Yes
[kudu-CR] [thirdparty] add jwt-cpp to thirdparty build
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/18103 )
Change subject: [thirdparty] add jwt-cpp to thirdparty build
......................................................................
Patch Set 1:
(5 comments)
http://gerrit.cloudera.org:8080/#/c/18103/1//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/18103/1//COMMIT_MSG@9
PS1, Line 9: require
> nit: required
Done
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-definitions.sh
File thirdparty/build-definitions.sh:
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-definitions.sh@1129
PS1, Line 1129: -
> nit: use underscore
Done
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-definitions.sh@1138
PS1, Line 1138: "$OPENSSL_ROOT_DIR" \
> This looks a bit strange: why not to pass all what's necessary in this cont
Done
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-thirdparty.sh
File thirdparty/build-thirdparty.sh:
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-thirdparty.sh@181
PS1, Line 181: OPENSSL_ROOT_DIR="-DOPENSSL_ROOT_DIR=$homebrew_openssl_dir"
> This isn't a good naming for a variable: at least, OPENSSL_ROOT_DIR is supp
Done
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/patches/jwt-cpp-openssl-1.0.1.patch
File thirdparty/patches/jwt-cpp-openssl-1.0.1.patch:
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/patches/jwt-cpp-openssl-1.0.1.patch@18
PS1, Line 18: +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
: +
> It turns out this piece isn't necessary if building with C++11-cabaple comp
Done
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 1
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 26 Jan 2022 21:25:35 +0000
Gerrit-HasComments: Yes
[kudu-CR] [thirdparty] add jwt-cpp to thirdparty build
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/18103 )
Change subject: [thirdparty] add jwt-cpp to thirdparty build
......................................................................
[thirdparty] add jwt-cpp to thirdparty build
This is a header-only library implementing the JWT functionality.
This is the same library used by Impala for its JWT implementation, but
in Kudu we are using a snapshot which is close to 0.6.0-rc2 and contains
an extra changelist [2] to avoid patching jwt-cpp upstream source code.
[1] https://github.com/Thalhammer/jwt-cpp
[2] https://github.com/Thalhammer/jwt-cpp/commit/97c8782605570c45b15183a270b39d16323068e8
Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Reviewed-on: http://gerrit.cloudera.org:8080/18103
Reviewed-by: Andrew Wong <aw...@cloudera.com>
Tested-by: Alexey Serbin <as...@cloudera.com>
---
M CMakeLists.txt
A cmake_modules/FindJwtCpp.cmake
M thirdparty/build-definitions.sh
M thirdparty/build-thirdparty.sh
M thirdparty/download-thirdparty.sh
M thirdparty/vars.sh
6 files changed, 64 insertions(+), 0 deletions(-)
Approvals:
Andrew Wong: Looks good to me, approved
Alexey Serbin: Verified
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 3
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] [thirdparty] add jwt-cpp to thirdparty build
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has uploaded a new patch set (#2) to the change originally created by Bankim Bhavsar. ( http://gerrit.cloudera.org:8080/18103 )
Change subject: [thirdparty] add jwt-cpp to thirdparty build
......................................................................
[thirdparty] add jwt-cpp to thirdparty build
This is a header-only library implementing the JWT functionality.
This is the same library used by Impala for its JWT implementation, but
in Kudu we are using a snapshot which is close to 0.6.0-rc2 and contains
an extra changelist [2] to avoid patching jwt-cpp upstream source code.
[1] https://github.com/Thalhammer/jwt-cpp
[2] https://github.com/Thalhammer/jwt-cpp/commit/97c8782605570c45b15183a270b39d16323068e8
Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
---
M CMakeLists.txt
A cmake_modules/FindJwtCpp.cmake
M thirdparty/build-definitions.sh
M thirdparty/build-thirdparty.sh
M thirdparty/download-thirdparty.sh
M thirdparty/vars.sh
6 files changed, 64 insertions(+), 0 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/03/18103/2
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 2
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] [thirdparty] add jwt-cpp to thirdparty build
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has removed a vote on this change.
Change subject: [thirdparty] add jwt-cpp to thirdparty build
......................................................................
Removed Verified-1 by Kudu Jenkins (120)
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 2
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] [thirdparty] Add jwt-cpp to thirdparty build
Posted by "Attila Bukor (Code Review)" <ge...@cloudera.org>.
Attila Bukor has posted comments on this change. ( http://gerrit.cloudera.org:8080/18103 )
Change subject: [thirdparty] Add jwt-cpp to thirdparty build
......................................................................
Patch Set 1:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-definitions.sh
File thirdparty/build-definitions.sh:
http://gerrit.cloudera.org:8080/#/c/18103/1/thirdparty/build-definitions.sh@1129
PS1, Line 1129: -
nit: use underscore
--
To view, visit http://gerrit.cloudera.org:8080/18103
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idab887e1e0c44e9ebe6897defec8238c020cccbb
Gerrit-Change-Number: 18103
Gerrit-PatchSet: 1
Gerrit-Owner: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Thu, 16 Dec 2021 19:41:32 +0000
Gerrit-HasComments: Yes