I have installed rbhive
gem(0.6.0) in ruby 1.9 and I am getting this error when I am trying to run the following piece of code in irb:
res = RBHive.tcli_connect('172.16.1.52', :port => 9_999) do |connection| <br>
connection.fetch('SHOW TABLES')<br>
end<br>
Thrift::ApplicationException: Thrift::ApplicationException from /usr/lib64/ruby/gems/1.9.1/gems/thrift-0.9.0/lib/thrift/client.rb:58:in `handle_exception'
from /usr/lib64/ruby/gems/1.9.1/gems/thrift-0.9.0/lib/thrift/client.rb:46:in `receive_message'
from /usr/lib64/ruby/gems/1.9.1/gems/rbhive-0.6.0/lib/thrift/t_c_l_i_service.rb:26:in `recv_OpenSession'
from /usr/lib64/ruby/gems/1.9.1/gems/rbhive-0.6.0/lib/thrift/t_c_l_i_service.rb:18:in `OpenSession'
from /usr/lib64/ruby/gems/1.9.1/gems/rbhive-0.6.0/lib/rbhive/t_c_l_i_connection.rb:155:in `open_session'
from /usr/lib64/ruby/gems/1.9.1/gems/rbhive-0.6.0/lib/rbhive/t_c_l_i_connection.rb:55:in `tcli_connect'
from (irb):9
from /usr/bin/irb:12:in `<main>'
I am trying to do this in irb console. I am not sure what I am doing wrong in this.
Can anyone help me to resolve this issue?
Thanks, Soham