This is the documentation for CDH 5.1.0.
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.

  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.