Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Feed : Unable to submit a feed with custom properties .It throws Error

Solved Go to solution

Feed : Unable to submit a feed with custom properties .It throws Error

New Contributor

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>

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Feed : Unable to submit a feed with custom properties .It throws Error

Super Guru
@sindhu penugonda

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.

View solution in original post

2 REPLIES 2
Highlighted

Re: Feed : Unable to submit a feed with custom properties .It throws Error

Super Guru
@sindhu penugonda

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.

View solution in original post

Highlighted

Re: Feed : Unable to submit a feed with custom properties .It throws Error

New Contributor

@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.

Don't have an account?
Coming from Hortonworks? Activate your account here