Minghui Zhu has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19041
Change subject: IMPALA-11235: Support Pluggable Authentication for Impala ...................................................................... IMPALA-11235: Support Pluggable Authentication for Impala When impala is accessed through the Standard JDBC Interface, I would like to authenticate through a Unix command that return code indicates whether the authenticate succeeded. The username and password are taken as the first and second arguments to the command. eg. command: bash /opt/impala/authz.sh /opt/impala/authz.sh: if [ $# -ne 2 ]; then exit 1 fi grep --quiet $1::$2 /opt/impala/passwd /opt/impala/passwd: user1::a1b1 user2::c1d1 Just run this script for authentication at `ImpalaServer::OpenSession`: // cmd = "bash /opt/impala/authz.sh user1 a1b1" impala::RunShellProcess(cmd, &msg, true, {"JAVA_TOOL_OPTIONS"}) Change-Id: I14f4cf647d419330166acf41d2dfb33c01008e18 --- M be/src/rpc/auth-provider.h M be/src/rpc/authentication.cc M be/src/transport/THttpServer.cpp M be/src/transport/THttpServer.h A bin/plugin_for_test.sh A fe/src/test/java/org/apache/impala/customcluster/PluginHS2Test.java A fe/src/test/java/org/apache/impala/customcluster/PluginImpalaShellTest.java A fe/src/test/java/org/apache/impala/customcluster/PluginImpylaHttpTest.java A fe/src/test/java/org/apache/impala/customcluster/PluginJdbcTest.java A fe/src/test/java/org/apache/impala/testutil/PluginUtil.java M shell/ImpalaHttpClient.py M shell/impala_client.py M shell/impala_shell.py M shell/option_parser.py M tests/shell/test_shell_commandline.py 15 files changed, 1,210 insertions(+), 28 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/19041/1 -- To view, visit http://gerrit.cloudera.org:8080/19041 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I14f4cf647d419330166acf41d2dfb33c01008e18 Gerrit-Change-Number: 19041 Gerrit-PatchSet: 1 Gerrit-Owner: Minghui Zhu <huihui.cod...@gmail.com>