How to use rbhive gem and query hive
That may be surprising, but with Hive 1.0.0 I managed to connect using
RBHive.tcli_connect('host', 10000, {transport: :sasl, sasl_params:{}}) do |connection|
Please use
options = { username: 'username', password: 'password' }RBHive.tcli_connect('host', 'port', { transport: :sasl, sasl_params: options}) do |connection| results = connection.execute "SHOW DATABASES"end