I'd like to connect to an AWS EMR Hive instance from Ruby. I've found https://github.com/forward3d/rbhive, but am not sure if the server address is the same as the Hadoop server address, and also am not sure of the port on which Hive is listening on.
For AWS EMR Hive this is the way you connect to default version.
RBHive.tcli_connect('<AWS-EMR-IP>', 10_000) do |connection| connection.fetch('SHOW TABLES') end
And Hive listens to port 10000 for Hive 0.13.1 version. Check this link if you want to connect to different version.