Ruby on rails 具有Ruby(ROR)集成的配置单元不工作
我已经安装了Hive,Hadoop 在Gemfile中添加gemRuby on rails 具有Ruby(ROR)集成的配置单元不工作,ruby-on-rails,ruby,hive,rbhive,Ruby On Rails,Ruby,Hive,Rbhive,我已经安装了Hive,Hadoop 在Gemfile中添加gem gem "rbhive" 开始使用 hive -service hwi 但它抛出异常,每当我执行它时 RBHive.tcli_connect("localhost", 9998, {:hive_version => :cdh5, :transport => :sasl, :sasl_params => {} }) do |connection| connection.fetch('SHOW TABLES')
gem "rbhive"
开始使用
hive -service hwi
但它抛出异常,每当我执行它时
RBHive.tcli_connect("localhost", 9998, {:hive_version => :cdh5, :transport => :sasl, :sasl_params => {} }) do |connection|
connection.fetch('SHOW TABLES')
end
错误
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'