John Marinelli John Marinelli - 3 months ago 12x
Ruby Question

How can I connect to Amazon EMR Hive via Ruby?

I'd like to connect to an AWS EMR Hive instance from Ruby. I've found, 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')

And Hive listens to port 10000 for Hive 0.13.1 version. Check this link if you want to connect to different version.