create table test_db.ez( StatusCode string, StatusDesc string, ConfidenceIndex string, Messages array>> , ProcessSummary struct < TransactionID:string, ProductVersion:string, RequestDate:string, ProcessingTime:string ,FileSize:string , ExtractionTechnique:string >, ProcessDetails struct < LOBCd:string , FilesReceivedCnt:string, PagesReceivedCnt:string, PagesProcessedCnt:string ,FormsProcessedCnt:string, Forms:array>>>, ReturnPayLoad array >>>> ) row format serde 'com.ibm.spss.hive.serde2.xml.XmlSerDe' with serdeproperties ( "column.xpath.StatusCode" = "/FormServerResponse/Status/StatusCode/text()" ,"column.xpath.StatusDesc" = "/FormServerResponse/Status/StatusDesc/text()" ,"column.xpath.ConfidenceIndex" = "/FormServerResponse/Status/ConfidenceIndex/text()" ,"column.xpath.Messages" = "/FormServerResponse/Status/Messages/Message" ,"column.xpath.ProcessSummary" = " /FormServerResponse/ProcessSummary/*" ,"column.xpath.ProcessDetails" = "/FormServerResponse/ProcessDetails/*" ,"column.xpath.ReturnPayLoad" = "/FormServerResponse/ReturnPayLoad/ACORD/SignonRq" ) stored as inputformat 'com.ibm.spss.hive.serde2.xml.XmlInputFormat' outputformat 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat' location '/apps/hive/warehouse/Looped' tblproperties ( "xmlinput.start" = "" ,"xmlinput.end" = "" );