Installing the Hive JDBC on Clients
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.
- 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
$ sudo yum install hive-jdbc
- On SLES
$ sudo zypper install hive-jdbc
- On Ubuntu or Debian systems:
$ sudo apt-get install hive-jdbc
- On Red-Hat-compatible systems:
- 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.
|<< Using the Hive Schema Tool||Setting HADOOP_MAPRED_HOME >>|