Thrift :: ApplicationException:Thrift :: ApplicationException

时间:2016-12-12 11:33:24

标签: ruby hive rubygems thrift

我在ruby 1.9中安装了rbhive gem(0.6.0),当我尝试在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>'

我正在尝试在irb控制台中执行此操作。我不确定我在这方面做错了什么。

有人可以帮我解决这个问题吗?

谢谢, Soham

0 个答案:

没有答案