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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...