You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/10/29 15:49:00 UTC
[jira] [Commented] (ARROW-10418) [C++] Arrow::HiveServer2 client
returns No Data to read on openSession
[ https://issues.apache.org/jira/browse/ARROW-10418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17222973#comment-17222973 ]
Wes McKinney commented on ARROW-10418:
--------------------------------------
This code hasn't been maintained since I originally migrated it from cloudera/hs2client, but I would like to see a database connector library develop in the Arrow project and for this code to be supported at some point
> [C++] Arrow::HiveServer2 client returns No Data to read on openSession
> ----------------------------------------------------------------------
>
> Key: ARROW-10418
> URL: https://issues.apache.org/jira/browse/ARROW-10418
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Environment: RHEL 7.6,
> g++ 9
> apache thrift 0.13
> Reporter: vivek kumar
> Priority: Major
>
> when connecting to hiveserver2 using the thrift c++
>
> following code returns :: "Failed to open session: no data to read"
> // Open a session.
> std::string user = "user";
> hs2::HS2ClientConfig config;
> std::unique_ptr<Session> session;
> status = service->OpenSession(user, config, &session);
> if (!status.ok()) {
> std::cout << "Failed to open session: " << status.ToString();
> ABORT_NOT_OK(session->Close());
> ABORT_NOT_OK(service->Close());
> return 1;
> }
>
> The connection is success though.
> do we need to pass any other arguments in the config to open session.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)