I have a task to query in hive db from ruby code. I plan to use rbhive gem, but I cannot get documentation from it how to pass username, password, db name, etc. when connected to the hive server.
Here is my code:
res = RBHive.connect('host_address', 10_000) do |connection|
connection.fetch 'show databases;'
end
It just shows:
Connecting to host_server on port 10000
Executing Hive Query: show databases;
and he hangs there endlessly.
source
share