Connecting to Hive using JDBC client

I wanted to try out connecting to Hive using a JDBC driver, so i followed these steps. You can download the Maven project from this location
  1. First start the HiveServer by executing hive --service hiveserver command
  2. Make sure that Hive is running by executing netstat --tnlp | grep 10000
  3. Now use the following Java code for connecting and executing simple select query on Hive

1 comment: