Created 05-27-2016 12:14 PM
Created 05-27-2016 03:01 PM
In sqoop-action 0.2 elements inside "action" must appear in a specific order (called xs:sequence below): job-tracker, name-node, prepare, job-xml comes here, etc. minOccurs=0 means that an element is optional. minOccurs=1 means that an element is required. Full details here.
<xs:sequence> <xs:element name="job-tracker" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="name-node" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="prepare" type="sqoop:PREPARE" minOccurs="0" maxOccurs="1"/> <xs:element name="job-xml" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="configuration" type="sqoop:CONFIGURATION" minOccurs="0" maxOccurs="1"/> <xs:choice> <xs:element name="command" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="arg" type="xs:string" minOccurs="1" maxOccurs="unbounded"/> </xs:choice> <xs:element name="file" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="archive" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence>
Created 05-27-2016 12:22 PM
Can you please share the workflow.xml file?
Created 05-27-2016 03:01 PM
In sqoop-action 0.2 elements inside "action" must appear in a specific order (called xs:sequence below): job-tracker, name-node, prepare, job-xml comes here, etc. minOccurs=0 means that an element is optional. minOccurs=1 means that an element is required. Full details here.
<xs:sequence> <xs:element name="job-tracker" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="name-node" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="prepare" type="sqoop:PREPARE" minOccurs="0" maxOccurs="1"/> <xs:element name="job-xml" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="configuration" type="sqoop:CONFIGURATION" minOccurs="0" maxOccurs="1"/> <xs:choice> <xs:element name="command" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="arg" type="xs:string" minOccurs="1" maxOccurs="unbounded"/> </xs:choice> <xs:element name="file" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="archive" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence>
Created 05-30-2016 06:04 AM
Thanks @Predrag Minovic