我正在尝试使用低于版本
的Rails执行Cassandra的简单示例红宝石:
bin:C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe 版本:ruby 1.9.3p125(2012-02-16)[i386-mingw32]
轨
bin:C:/RailsInstaller/Ruby1.9.2/bin/rails.bat版本:
Rails 3.2.11
我收到以下错误:
C:\ Sites \ blog> rake cequel:keyspace:create --trace **调用cequel:keyspace:create(first_time) **调用环境(first_time) **执行环境 ** 执行cequel:keyspace:创建rake中止! Errno :: EBADF:错误的文件描述符 C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/io/io_r eactor.rb:393:in
write_nonblock' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/io/io_r eactor.rb:393:in
unblock' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/io/io_r eactor.rb:235:在connect' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cassandra-driver-1.2.0/lib/ cassandra/cluster/connector.rb:119:in
do_connect'中 C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cassandra-driver-1.2.0/lib/ cassandra / cluster / connector.rb:47:inconnect' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cassandra-driver-1.2.0/lib/ cassandra/cluster/control_connection.rb:633:in
connect_to_host' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cassandra-driver-1.2.0/lib/ 卡桑德拉/集群/ control_connection.rb:575:在 connect_async中的connect_to_first_available' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cassandra-driver-1.2.0/lib/ cassandra/cluster/control_connection.rb:61:in
阻止 C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future。 rb:413:在flat_map中的call' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future. rb:413:in
块中 C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future。 rb:745:在call' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future. rb:745:in
call_listener'中 C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future。 rb:784:每个block in resolve' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future. rb:783:in
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future。 rb:783:在resolve' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/future. rb:30:in
履行' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ione-1.2.1/lib/ione/io/io_r eactor.rb:155:在`block in start'任务中:TOP => cequel:密钥空间:创建
请帮助我理解这个错误!
我试图更新cassandra-driver,但它不允许我这样做。
答案 0 :(得分:0)
病毒,我无法重现您所看到的错误消息。无论如何,我已经将Rails,Ruby和Cassandra更新到他们最新的稳定版本。更新的README.md可以在以下位置找到:
另外,我已经更新了README.md中的要求。接下来,您似乎正在使用Windows,但我建议您在尝试分步教程时使用基于Unix的操作系统,如Mac OS X或Linux。