colinmarc / impala-ruby

an impala client for ruby
MIT License
34 stars 22 forks source link

Invalid method name: 'executeAndWait' (Thrift::ApplicationException) #21

Closed ghost closed 7 years ago

ghost commented 7 years ago

I'm trying to test connecting via kerberos, however, I'm receiving this error:

C:/Ruby21/lib/ruby/gems/2.1.0/gems/thrift-0.9.3.0/lib/thrift/client.rb:67:in `handle_exception': Invalid method name: 'executeAndWait' (Thrift::ApplicationException)

from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thrift-0.9.3.0/lib/thrift/client.rb:55:in 'receive_message'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/impala-0.5.0/lib/impala/protocol/beeswax_service.rb:43:in 'recv_executeAndWait'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/impala-0.5.0/lib/impala/protocol/beeswax_service.rb:35:in 'executeAndWait'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/impala-0.5.0/lib/impala/connection.rb:107:in 'send_query'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/impala-0.5.0/lib/impala/connection.rb:82:in 'execute'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/impala-0.5.0/lib/impala/connection.rb:69:in 'query'
from C:/Users/ejstembler/RubymineProjects/ribu_impala_test/main.rb:6:in 'block in '
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/impala-0.5.0/lib/impala.rb:49:in 'connect'
from C:/Users/ejstembler/RubymineProjects/ribu_impala_test/main.rb:5:in ''
from -e:1:in 'load'
from -e:1:in '
'
ghost commented 7 years ago

Never mind, I saw the comment about using port 21000. Got it to work!