Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems sending query to server #46

Open
edersonm opened this issue Apr 7, 2016 · 2 comments
Open

Problems sending query to server #46

edersonm opened this issue Apr 7, 2016 · 2 comments

Comments

@edersonm
Copy link

edersonm commented Apr 7, 2016

I'm facing some issues with RBHive to connect to Hive 1.1(CDH 5.5).

When connecting using the following:

 :server: localhost
:port: 10000
:options:
  :hive_version: 13
  :transport: :sasl
  :sasl_params:
    :username: test
    :password: tttt

I'm receiving:
org.apache.hive.service.cli.HiveSQLException: Invalid OperationHandle: OperationHandle [opType=EXECUTE_STATEMENT...
on Hiveserver logs and "No operation state found for handles - has the session been closed?" on client side
I opened RbHive gem code and the return for


 response = @client.GetOperationStatus(
        Hive2::Thrift::TGetOperationStatusReq.new(operationHandle: prepare_operation_handle(handles))
      )

is nil.

Does anyone know a workaround for this?

Thanks in advance!

Question also on stackoverflow: http://stackoverflow.com/questions/36484318/rbhive-problems-sending-query-to-server

@dariusgm
Copy link

I think you are messing up with the Hive Versions. Your call refers to hive2 and in your setup you mention you are using hive 1.1

@edersonm
Copy link
Author

actually, it relates to Hive Server 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants