Page 1 of 1

Hive Connector Stage and isjdbc.config file set up

Posted: Fri Apr 07, 2017 3:30 pm
by TNZL_BI
Hi All,

We have recently connected to the Hive database from DataStage using the ODBC Connector Stage. However we are having issues when we are trying to use the Hive Connector stage. I am not exactly sure as to how to set up the isjdbc.config file . I have read the documentation however I am still not clear as to what do I need to put in the File Class and File Path. Do I need to install any hive related Jar files on the DSEngine Linux server ??

Any information here will be really appreciated . Many Thanks

Re: Hive Connector Stage and isjdbc.config file set up

Posted: Sun Apr 09, 2017 8:13 pm
by TNZL_BI
Hi All ,

I have finally managed to connect using the hive connector . I managed to locate the jar file for Hive which was the ISHive.jar file under the ASBNode/lib directory in datastage.

The contents of the config file is as follows :-

-bash-4.2$ cat isjdbc.config
CLASSPATH=/opt/IBM/InformationServer/ASBNode/lib/java/IShive.jar
CLASS_NAMES=org.apache.hadoop.hive.jdbc.HiveDriver

Reading data is working fine however when I write data into Hive I am getting the following error

FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

Any ideas as to what might be the reason for this

Posted: Mon Apr 10, 2017 7:43 am
by chulett
Have you contacted support for any of this?

Posted: Sun Apr 23, 2017 5:02 am
by TNZL_BI
Hi Chulett

Thanks for your response. This issue is now fixed . I contacted the Hadoop administration team and realized there was some patching activity because of which this issue was cropping.

The new problem now is that the performance of the Hive connector stage is pathetic. Opened a case with IBM.. will give all the details if I hear anything positive

Posted: Wed Aug 09, 2017 8:39 am
by rkashyap
TNZL_BI wrote:The new problem now is that the performance of the Hive connector stage is pathetic. Opened a case with IBM.. will give all the details if I hear anything positive
What did IBM suggest? Did it help?

Posted: Wed Nov 22, 2017 5:09 am
by skathaitrooney
Hi TNZL_BI , one qusetion.
Since you are using the driver supplied by IBM (IShive.jar), are you sure the CLASS_NAMES=org.apache.hadoop.hive.jdbc.HiveDriver
and not com.ibm.isf.jdbc.hive.HiveDriver ?