thrift::applicationexception:节俭::applicationexception

lvmkulzt  于 2021-06-28  发布在  Hive
关注(0)|答案(0)|浏览(263)

我已安装 rbhive ruby 1.9中的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控制台中执行此操作。我不确定我在这件事上做错了什么。
有人能帮我解决这个问题吗?
谢谢,索汉姆

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题