the oracle table has 2 columns in 1st column has normal data and 2nd column contains xml data. which one is the best way to copy a table from oracle to hive with xml data? Please cooperate me
CREATE TABLE F_CATEGORY_XML (recid string, xmlrecord string)
ROW FORMAT SERDE 'oracle.hadoop.xquery.hive.OXMLSerDe'
WITH SERDEPROPERTIES (
"column.xpath.recid"="/row/c1/text()",
"column.xpath.xmlrecord"="/row/c2/text()"
)
STORED AS
INPUTFORMAT 'oracle.hadoop.xquery.hive.OXMLInputFormat'
OUTPUTFORMAT 'oracle.hadoop.xquery.hive.OXMLOutputFormat'
TBLPROPERTIES (
"xmlinput.start"="<row",
"xmlinput.end"="</row>"
);
Error:
FAILED: SemanticException Cannot find class 'oracle.hadoop.xquery.hive.OXMLInputFormat'