Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 具有Ruby(ROR)集成的配置单元不工作_Ruby On Rails_Ruby_Hive_Rbhive - Fatal编程技术网

Ruby on rails 具有Ruby(ROR)集成的配置单元不工作

Ruby 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')

我已经安装了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')
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'