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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...