Extending IBM Big SQL
You can extend the capability of Big SQL by adding certain JAR files.
About this task
You can use Java™ packages that are available from the web,
or Java packages that you create to extend the functions of
Big SQL. You extend
Big SQL by adding
JAR files to the appropriate paths. Big SQL includes a useful
custom SerDe (Serializer/Deserializer) extension for processing JSON data, which can be used to
transform a JSON record into something that Big SQL can process. To use
this SerDe, specify the ROW FORMAT SERDE option in the CREATE TABLE syntax. For
example:
CREATE EXTERNAL HADOOP TABLE bigsql.example_json (
col1 int
col2 date
) ROW FORMAT SERDE 'com.ibm.biginsights.bigsql.serde.JSONSerDe';In
addition to this custom JSONSerDe, which has been provided already, you can add or
create your own custom SerDe or download it from the web.When you add a JAR file to Big SQL, the JAR file is available to the Big SQL JVM and the MapReduce JVMs.