How to: |
The following components are needed to use the adapter for Hadoop/Hive:
The location of Java must be specified in an environment variable.
If you are using Linux, add a line to your profile with the location where Java is installed. For example:
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0
If you have JDK installed:
export JAVA_HOME=/usr/lib/jvm/jdk-1.8.0
If you are using Windows, right-click Computer and select Properties. If using Windows 10, click Settings in the Start menu and search for Environment. Click Edit the system environment variables to open the System Properties dialog box. Click the Advanced tab and click Environment Variables. Add the locations to your PATH variable. For example:
C:\Program Files\Java\jdk8\bin\server;C:\Program Files\Java\jdk8\bin;
If you are using the Cloudera/Simba JDBC driver, download the driver as described in step 3 below.
The location of the Hadoop and Hive jar files must be specified to the server. If you are running the server on a node or an edge node of your Hadoop cluster, you can specify their location. If you are running the server on another system, copy the files listed below to some location on your system and specify their location.
This can be done in the system CLASSPATH or in the DataMigrator or WebFOCUS Reporting Server IBI_CLASSPATH variable as follows:
or
From the Data Management Console, expand the Workspace folder.
The Java Services Configuration page opens.
In the IBI_CLASSPATH box, enter the full location of the Hive and Hadoop files shown below, where hive_home is where Hive is installed and hadoop_home is where Hadoop is installed. You must type them explicitly and cannot use $HIVE_HOME. The file names must be entered one per line.
If you are installing the adapter on a different system than where Hadoop and Hive are installed, copy the jar files to a location on that system.
C:\jdbc\hive-jdbc-<version>-standalone.jar
For Apache Hive:
Enter the full path to the location of the JDBC client jar on your system:
hive-jdbc-<version>-standalone.jar
The following jar files may also be required when using the HTPP transport, connecting to a Kerberos enabled cluster, or using HBase as a source.
hadoop-common.jar hadoop-auth.jar
For Cloudera/Simba:
This downloads a file called hive_jdbc_2.5.20.zip, which contains two .zip files. (Note that these numbers will change with each new release.) Unzip the Cloudera_HiveJDBC41_2.5.20.nnnn.zip to a location on your system.
Note: The 41 in the file name indicates JDBC 4.1, which supports Java 1.7 or later.
These 15 jar files comprise the Cloudera/Simba JDBC driver. Add the names of all of them to your CLASSPATH or IBI_CLASSPATH, as described above in this step.
WebFOCUS | |
Feedback |