All Apps and Add-ons

Hunk 6.3.0 doesn’t seem to work with Hive (version 0.13) with Char(N) definitions

tsunamii
Path Finder

We realized recently that our Hunk 6.3.0 doesn’t seem to work with Hive (version 0.13) with Char(N) definitions.

0 Karma
1 Solution

splunkIT
Splunk Employee
Splunk Employee

Based on this link: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types
Char is only supported in version 0.13 and after
String is supported in earlier versions

As you can see from this link Hunk support Hive version 0.12 or before: http://docs.splunk.com/Documentation/Hunk/6.3.2/Hunk/ConfigureHivepreprocessor

The workaround - modify the Hunk property "vix.env.HUNK_THIRDPARTY_JARS" in your virtual index provider page by pointing all hive related jars to the ones defined in your HIVE_HOME/lib:

  • replace the .jar files under $SPLUNK_HOME/bin/jars/thirdparty/hive with that of yours. For example, these are my MapR hive .jar file I will be using:

hive-exec-0.13.0-mapr-1504.jar
hive-metastore-0.13.0-mapr-1504.jar
hive-serde-0.13.0-mapr-1504.jar

  • update the vix.env.HUNK_THIRDPARTY_JARS parameter values to reflect the new .jar files so Hunk can use them:

    $SPLUNK_HOME/bin/jars/thirdparty/hive/hive-exec-0.13.0-mapr-1504.jar,$SPLUNK_HOME/bin/jars/thirdparty/hive/hive-metastore-0.13.0-mapr-1504.jar,$SPLUNK_HOME/bin/jars/thirdparty/hive/hive-serde-0.13.0-mapr-1504.jar

View solution in original post

0 Karma

splunkIT
Splunk Employee
Splunk Employee

Based on this link: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types
Char is only supported in version 0.13 and after
String is supported in earlier versions

As you can see from this link Hunk support Hive version 0.12 or before: http://docs.splunk.com/Documentation/Hunk/6.3.2/Hunk/ConfigureHivepreprocessor

The workaround - modify the Hunk property "vix.env.HUNK_THIRDPARTY_JARS" in your virtual index provider page by pointing all hive related jars to the ones defined in your HIVE_HOME/lib:

  • replace the .jar files under $SPLUNK_HOME/bin/jars/thirdparty/hive with that of yours. For example, these are my MapR hive .jar file I will be using:

hive-exec-0.13.0-mapr-1504.jar
hive-metastore-0.13.0-mapr-1504.jar
hive-serde-0.13.0-mapr-1504.jar

  • update the vix.env.HUNK_THIRDPARTY_JARS parameter values to reflect the new .jar files so Hunk can use them:

    $SPLUNK_HOME/bin/jars/thirdparty/hive/hive-exec-0.13.0-mapr-1504.jar,$SPLUNK_HOME/bin/jars/thirdparty/hive/hive-metastore-0.13.0-mapr-1504.jar,$SPLUNK_HOME/bin/jars/thirdparty/hive/hive-serde-0.13.0-mapr-1504.jar

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...