While trying to execute the create table statement in hive getting the below error.
CREATE EXTERNAL TABLE BOOKDATA(
> TITLE VARCHAR(40),
> PRICE INT
> )ROW FORMAT SERDE 'com.ibm.spss.hive.serde2.xml.XmlSerDe'
> WITH SERDEPROPERTIES (
> "column.xpath.TITLE"="/CATALOG/BOOK/TITLE/",
> "column.xpath.PRICE"="/CATALOG/BOOK/PRICE/")
> STORED AS
> INPUTFORMAT 'com.ibm.spss.hive.serde2.xml.XmlInputFormat'
> OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat'
> LOCATION '/sourcedata'
> TBLPROPERTIES (
> "xmlinput.start"="<CATALOG",
> "xmlinput.end"= "</CATALOG>"
> );
FAILED: SemanticException Kann nicht Klasse 'com.ibm.spss.hive.serde2.xml.XmlInputFormat'XmlSerde Fehler in hive
Bitte helfen Sie, wie zu lösen dieses issue.I bin mit hive finden CLI.
Haben Sie das nützliche Glas hinzugefügt? –
Wenn ich jedes Mal auf der Bienenstock-Sitzung hinzufüge, läuft es gut. Wie füge ich es dauerhaft hinzu, so dass, wenn ich die Hive-Sitzung starte, es dieses Jar automatisch aktiviert. (Fyi, ich benutze Mapr Sandbox)? (Ich habe die Option versucht, das serde jar in den lib-Ordner zu stellen und diesen Pfad in hive-site.xml zu referenzieren). –