Closed fion8828 closed 11 years ago
Hm, that's strange. What version of Impala are you running?
Hey, Thanks for your reply. I solved the problem. It's because I didn't open all the ports that are needed for impala. Now I could do query. oh yeah. :)
Awesome! Glad it worked out.
Hi All,
First time get in touch with Impala-ruby gem. I connected to Impala and try to SELECT * FROM tab2, it threw me errors. Here's what I typed in Ruby shell: irb(main):016:0> conn.query('select * from tab2') Here are the errors I got: IOError: closed stream from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/thrift-0.9.0/lib/thrift/transport/socket.rb:63:in'
write' from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/thrift-0.9.0/lib/thrift/transport/buffered_transport.rb:101:in
flush' from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/thrift-0.9.0/lib/thrift/client.rb:41:insend_message' from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/impala-0.1.5/lib/impala/protocol/beeswax_service.rb:23:in
send_query' from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/impala-0.1.5/lib/impala/protocol/beeswax_service.rb:18:inquery' from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/impala-0.1.5/lib/impala/connection.rb:86:in
send_query' from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/impala-0.1.5/lib/impala/connection.rb:62:inexecute' from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/impala-0.1.5/lib/impala/connection.rb:52:in
query' from (irb):16 from /opt/boxen/rbenv/versions/1.9.3/bin/irb:12:in `Anyone have idea on how to fix those errors? Thanks in advance.
Fiona