Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 07-05-2017 10:22 PM
I'm unable to submit feed for retention with or without properties from Falcon Webui. It throws below error. Could you please help me to fix this issue.
ERROR: Bad Request;javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 16; cvc-complex-type.2.1: Element 'property' must have no character or element information item [children], because the type's content type is empty.]
CausedBy: null
My sample feed:
<feed xmlns='uri:falcon:feed:0.1'name='hcat-in-web'description='input'>
<groups>hcatinputnew2</groups>
<frequency>minutes(15)</frequency>
<timezone>UTC</timezone>
<clusters>
<cluster name='hcat-local' type='source'>
<validity start='2013-01-01T00:00Z'end='2030-01-01T00:00Z'/>
<retention limit='hours(2)' action='delete'/>
<table uri='catalog:abc:abc_table#cpd_mnth_id=2017*);cpd_dt=${YEAR}-${MONTH}-${DAY}'/>
</cluster>
</clusters>
<table uri='catalog:abc:abc_table#cpd_mnth_id=2017*);cpd_dt=${YEAR}-${MONTH}-${DAY}'/>
<ACL owner='falcon' group='hadoop'permission='0755'/>
<schema location='/schema/log/log.format.csv' provider='csv'/>
<properties>
<property name='queueName'value='default'>
</property>
<property name='jobPriority'value='NORMAL'>
</property>
<property name='parallel'value='3'>
</property>
<property name='maxMaps'value='8'>
</property>
</properties>
</feed>
Created 07-05-2017 11:34 PM
Can you please try below feed def? I have edited it and corrected.
I think you should mention customer properties like below.
Ref - https://falcon.apache.org/EntitySpecification.html
<feed xmlns='uri:falcon:feed:0.1'name='hcat-in-web'description='input'>
<groups>hcatinputnew2</groups>
<frequency>minutes(15)</frequency>
<timezone>UTC</timezone>
<clusters>
<cluster name='hcat-local' type='source'>
<validity start='2013-01-01T00:00Z'end='2030-01-01T00:00Z'/>
<retention limit='hours(2)' action='delete'/>
<table uri='catalog:abc:abc_table#cpd_mnth_id=2017*);cpd_dt=${YEAR}-${MONTH}-${DAY}'/>
</cluster>
</clusters>
<table uri='catalog:abc:abc_table#cpd_mnth_id=2017*);cpd_dt=${YEAR}-${MONTH}-${DAY}'/>
<ACL owner='falcon' group='hadoop'permission='0755'/>
<schema location='/schema/log/log.format.csv' provider='csv'/>
<properties>
<property name="queueName" value="default"/>
<property name="jobPriority" value="NORMAL"/>
<property name="parallel" value="3"/>
<property name="maxMaps" value="8"/>
</properties>
</feed>Hope this helps!
Please mark this answer as accepted if it helped.
Created 07-05-2017 11:34 PM
Can you please try below feed def? I have edited it and corrected.
I think you should mention customer properties like below.
Ref - https://falcon.apache.org/EntitySpecification.html
<feed xmlns='uri:falcon:feed:0.1'name='hcat-in-web'description='input'>
<groups>hcatinputnew2</groups>
<frequency>minutes(15)</frequency>
<timezone>UTC</timezone>
<clusters>
<cluster name='hcat-local' type='source'>
<validity start='2013-01-01T00:00Z'end='2030-01-01T00:00Z'/>
<retention limit='hours(2)' action='delete'/>
<table uri='catalog:abc:abc_table#cpd_mnth_id=2017*);cpd_dt=${YEAR}-${MONTH}-${DAY}'/>
</cluster>
</clusters>
<table uri='catalog:abc:abc_table#cpd_mnth_id=2017*);cpd_dt=${YEAR}-${MONTH}-${DAY}'/>
<ACL owner='falcon' group='hadoop'permission='0755'/>
<schema location='/schema/log/log.format.csv' provider='csv'/>
<properties>
<property name="queueName" value="default"/>
<property name="jobPriority" value="NORMAL"/>
<property name="parallel" value="3"/>
<property name="maxMaps" value="8"/>
</properties>
</feed>Hope this helps!
Please mark this answer as accepted if it helped.
Created 07-06-2017 02:19 AM
@Kuldeep Kulkarni Thanks for the immediate response.
Yeah this helps however , when you try to define the feed from Falcon Web UI by default the property is taken as <property> </property> .Even if we try to edit the XML , it won't save.This can be done only from command line. If you tried from Web UI , please let me know. Thanks.