Git Product home page Git Product logo

hive-xml-serde-vtd's Introduction

VTD Processor for Apache Hive XML SerDe

Using VTD-XML based processor instead of default JDK DOM XPath processor can provide significant performance gains. See http://vtd-xml.sourceforge.net/

Use the following DDL to create Apache Hive table, note the "xml.processor.class" for VTD-XML processor,

CREATE [EXTERNAL] TABLE <table_name> (<column_specifications>)
ROW FORMAT SERDE "com.ibm.spss.hive.serde2.xml.XmlSerDe"
WITH SERDEPROPERTIES (
"xml.processor.class"="com.ximpleware.hive.serde2.xml.vtd.XmlProcessor",
"column.xpath.<column_name>"="<xpath_query>",
... ["xml.map.specification.<element_name>"="<map_specification>"
...
])
STORED AS
INPUTFORMAT "com.ibm.spss.hive.serde2.xml.XmlInputFormat"
OUTPUTFORMAT "org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat"
[LOCATION "<data_location>"]
TBLPROPERTIES (
"xmlinput.start"="<start_tag ",
"xmlinput.end"="<end_tag>"
);

See https://github.com/dvasilen/Hive-XML-SerDe for further details.

Dependency: vtd-xml-2.11.0.jar

http://search.maven.org/#search%7Cga%7C1%7Cvtd-xml

Important notice : License

VTD-XML use a dual GPLv2/commercial license.

This is the reason why Hive-XML-SerDe-VTD is a separate project licensed under GPLv2 instead of being integrated into core Hive-XML-SerDe, that is Apache 2 licensed.

So please be aware that if you use this module :

  • either your whole Hive-XML-SerDe based project become GPLv2,
  • or you have to purchase a commercial license from Ximpleware.

hive-xml-serde-vtd's People

Contributors

dvasilen avatar

Watchers

Rohan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.