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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...