This is the documentation for Cloudera 5.2.x.
Documentation for other versions is available at Cloudera Documentation.

Installing the Hive JDBC on Clients

If you want to install only the JDBC on your Hive clients, proceed as follows.
  Note:

The CDH 5.2 Hive JDBC driver is not wire-compatible with the CDH 5.1 version of HiveServer2. Make sure you upgrade Hive clients and all other Hive hosts in tandem: the server first, and then the clients.

  1. Install the package (it is included in CDH packaging). Use one of the following commands, depending on the target operating system:
    • On Red-Hat-compatible systems:
      $ sudo yum install hive-jdbc
    • On SLES systems:
      $ sudo zypper install hive-jdbc
    • On Ubuntu or Debian systems:
      $ sudo apt-get install hive-jdbc
  2. Add /usr/lib/hive/lib/*.jar and /usr/lib/hadoop/*.jar to your classpath.

You are now ready to run your JDBC client. For more information see the Hive Client document.