-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rbhive broken on cdh3u4 release/update (Apache Hive 0.7.1-cdh3u4) #2
Comments
Hi Sal, We upgraded one of our Hive servers to CDH3U4 and were able to query it using RBHive. The upgrade does ask if it can install new config files on Ubuntu (not sure what OS you're using). You can check if it's an RBHive issue or a Hive issue by trying out the same query in the Hive CLI on the actual Hive server. If the query works on the Hive CLI then it would be an RBHive issue, otherwise it might be something to do with your Hive installation. Let me know what you find. Thanks. Abs On 27 Jun 2012, at 23:05, Sal Fuentes wrote:
|
I tried the same query in the Hive CLI on the same Hive server the test script connects to with the following results: hive> select state_code from zip_code limit 3; I also tweaked the script and ran it again: bash-3.2$ cat test_rbhive.rb results = RBHive.connect('tron.ev1.yellowpages.com') do |connection| results.each do |data| bash-3.2$ ruby test_rbhive.rb Other information: cat /etc/redhat-release Let me know if there is any other information that will be helpful. |
Hi Sal, Thanks for the update. We're about to upgrade our cluster to the latest release of CDH in the coming days. If we get the same issue with RBHive then we will release a fix. At the moment we are not able to reproduce the problem therefore are not able to diagnose and fix the bug. Unfortunately I'm not able to give you any timeframes on when this will happen but will send you an update when it does. Thanks Abhinay Mehta On 29 Jun 2012, at 18:56, Sal Fuentes wrote:
|
Closed as we can't reproduce. |
I should mention that it was working fine on the cdh3u3 release.
bash-3.2$ cat test_rbhive.rb
require 'rbhive'
results = RBHive.connect('hive.server.address') do |connection|
connection.fetch "select state_code from zip_code"
end
results.each do |data|
puts "data = #{data.inspect}"
end
bash-3.2$ ruby test_rbhive.rb
'Connecting to hive.server.address on port 10000
Executing Hive Query: select state_code from zip_code
/home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/thrift/thrift_hive.rb:26:in
recv_execute': Query returned non-zero code: 10, cause: FAILED: Error in semantic analysis: Unable to fetch table zip_code (HiveServerException) from /home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/thrift/thrift_hive.rb:17:in
execute'from /home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/rbhive/connection.rb:140:in
execute_unsafe' from /home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/rbhive/connection.rb:81:in
block in fetch'from /home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/rbhive/connection.rb:145:in
block in safe' from <internal:prelude>:10:in
synchronize'from /home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/rbhive/connection.rb:145:in
safe' from /home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/rbhive/connection.rb:80:in
fetch' from test_rbhive.rb:4:inblock in <main>' from /home/someuser/.rvm/gems/ruby-1.9.2-p290@somegemset/gems/rbhive-0.2.94/lib/rbhive/connection.rb:14:in
connect'from test_rbhive.rb:3:in `
The text was updated successfully, but these errors were encountered: