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

Thrift::TransportException: Broken pipe #45

Open
dheenaINDIAN opened this issue Dec 30, 2015 · 1 comment
Open

Thrift::TransportException: Broken pipe #45

dheenaINDIAN opened this issue Dec 30, 2015 · 1 comment

Comments

@dheenaINDIAN
Copy link

Hi
I have installed Hadoop, Hive, added gem rbhive
While executing,

RBHive.tcli_connect("localhost", 9998, {:hive_version => :cdh5, :transport => :sasl, :sasl_params => {} }) do |connection|
connection.fetch('SHOW TABLES')
end

I am getting Error

Initializing transport sasl
Connecting to HiveServer2 localhost on port 9998
Thrift::TransportException: Broken pipe
    from /home/dheena/.rvm/gems/ruby-2.2.2/gems/thrift-0.9.3.0/lib/thrift/transport/socket.rb:90:in `rescue in write'
@lloydpick
Copy link
Member

Are you actually using SASL auth? Have you tried just...

RBHive.tcli_connect('localhost', 9998) do |connection|
  connection.fetch('SHOW TABLES')
end

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