You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by Margus Roo <ma...@roo.ee> on 2016/02/16 16:15:45 UTC

Can not create feed via Falcon web GUI

Hi

I have Falcon 0.6.1.2.3 from HDP-2.3
I created new feed via web - 
http://margus.roo.ee/wp-content/uploads/2016/02/Screen-Shot-2016-02-16-at-17.05.31.png
And cot XML:
<feed xmlns='uri:falcon:feed:0.1' name='margusja-demo'>
   <frequency>hours(1)</frequency>
   <timezone>UTC</timezone>
   <clusters>
     <cluster name='Cluster2' type='source'>
       <validity start='2016-02-15T16:50Z' end='2016-02-24T16:50Z'/>
       <retention limit='hours(1)' action='delete'/>
       <table uri='null'/>
     </cluster>
   </clusters>
   <table uri='catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}'/>
   <ACL owner='margusja' group='users' permission='0755'/>
   <schema location='hcat' provider='hcat'/>
   <properties>
     <property/>
   </properties>
</feed>

As you can see there is one extra <table uri='null'/>

And firebug console gives me:
Error: b.feed.clusters.cluster[0].locations is undefined 
n@http://hadoopnn2:15000/js/main.min.js:771:20 
a.saveEntity@http://hadoopnn:15000/js/main.min.js:794:39 
fb.prototype.functionCall/<@http://hadoopnn2:15000/js/vendor.min.js:207:110 
Ac[c]</<.compile/</</f@http://hadoopnn2:15000/js/vendor.min.js:236:195 
Me/this.$get</k.prototype.$eval@http://hadoopnn2:15000/js/vendor.min.js:134:116 
Me/this.$get</k.prototype.$apply@http://hadoopnn2:15000/js/vendor.min.js:134:330 
Ac[c]</<.compile/</<@http://hadoopnn2:15000/js/vendor.min.js:236:245 
m.event.dispatch@http://hadoopnn2:15000/js/vendor.min.js:6:8384 
m.event.add/r.handle@http://hadoopnn2:15000/js/vendor.min.js:6:5122
	

...on ra(b,a){if("__defineGetter__"===b||"__defineSetter__"===b||"__lookupGetter__"...



If I'll modify XML in command line:
<feed xmlns='uri:falcon:feed:0.1' name='margusja-demo'>
   <frequency>hours(1)</frequency>
   <timezone>UTC</timezone>
   <clusters>
     <cluster name='Cluster2' type='source'>
       <validity start='2016-02-15T16:50Z' end='2016-02-24T16:50Z'/>
       <retention limit='hours(1)' action='delete'/>
     </cluster>
   </clusters>
   <table uri='catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}'/>
   <ACL owner='margusja' group='users' permission='0755'/>
   <schema location='hcat' provider='hcat'/>
</feed>

Then I can submit it using falcon command line.
But if I use web GUI and I am trying to edit XML via Falcon web GUI then 
after saving it (using Finish button) it changes my modifications back.

-- 
Margus (margusja) Roo
http://margus.roo.ee
skype: margusja
+372 51 48 780


Re: Can not create feed via Falcon web GUI

Posted by Venkat Ranganathan <vr...@hortonworks.com>.
> This new UI is in HDP2.3 but not yet shipped on apache falcon branch. I¹ve filed a bug report internally.

Ying, the new UI is part of Falcon 0.8.  We should also file an apache JIRA.   Will take care of that.

Marcus, for your case, in the next clusters tab, you can effectively provide the same URI for the cluster also as a workaround. 


Venkat


On 2/16/16, 12:11 PM, "Ying Zheng" <yz...@hortonworks.com> wrote:

>Thank you for reporting this bug, Margus. It looks the UI takes the
>default table URI 
>('catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}') instead of
>the one in the cluster specification ('null¹). Therefore, when you delete
>Œnull¹ uri, the UI doesn¹t find any change in the feed summary and so
>doesn¹t save your changes.
>
>This new UI is in HDP2.3 but not yet shipped on apache falcon branch. I¹ve
>filed a bug report internally. In the future, if you have any questions
>regarding HDP2.3, you can ask questions here:
>https://community.hortonworks.com/. Thank you!
>
>Cheers,
>Ying
>
>
>On 2/16/16, 7:15 AM, "Margus Roo" <ma...@roo.ee> wrote:
>
>>Hi
>>
>>I have Falcon 0.6.1.2.3 from HDP-2.3
>>I created new feed via web -
>>http://margus.roo.ee/wp-content/uploads/2016/02/Screen-Shot-2016-02-16-at-
>>17.05.31.png
>>And cot XML:
>><feed xmlns='uri:falcon:feed:0.1' name='margusja-demo'>
>>   <frequency>hours(1)</frequency>
>>   <timezone>UTC</timezone>
>>   <clusters>
>>     <cluster name='Cluster2' type='source'>
>>       <validity start='2016-02-15T16:50Z' end='2016-02-24T16:50Z'/>
>>       <retention limit='hours(1)' action='delete'/>
>>       <table uri='null'/>
>>     </cluster>
>>   </clusters>
>>   <table 
>>uri='catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}'/>
>>   <ACL owner='margusja' group='users' permission='0755'/>
>>   <schema location='hcat' provider='hcat'/>
>>   <properties>
>>     <property/>
>>   </properties>
>></feed>
>>
>>As you can see there is one extra <table uri='null'/>
>>
>>And firebug console gives me:
>>Error: b.feed.clusters.cluster[0].locations is undefined
>>n@http://hadoopnn2:15000/js/main.min.js:771:20
>>a.saveEntity@http://hadoopnn:15000/js/main.min.js:794:39
>>fb.prototype.functionCall/<@http://hadoopnn2:15000/js/vendor.min.js:207:11
>>0 
>>Ac[c]</<.compile/</</f@http://hadoopnn2:15000/js/vendor.min.js:236:195
>>Me/this.$get</k.prototype.$eval@http://hadoopnn2:15000/js/vendor.min.js:13
>>4:116 
>>Me/this.$get</k.prototype.$apply@http://hadoopnn2:15000/js/vendor.min.js:1
>>34:330 
>>Ac[c]</<.compile/</<@http://hadoopnn2:15000/js/vendor.min.js:236:245
>>m.event.dispatch@http://hadoopnn2:15000/js/vendor.min.js:6:8384
>>m.event.add/r.handle@http://hadoopnn2:15000/js/vendor.min.js:6:5122
>>	
>>
>>...on 
>>ra(b,a){if("__defineGetter__"===b||"__defineSetter__"===b||"__lookupGetter
>>__"...
>>
>>
>>
>>If I'll modify XML in command line:
>><feed xmlns='uri:falcon:feed:0.1' name='margusja-demo'>
>>   <frequency>hours(1)</frequency>
>>   <timezone>UTC</timezone>
>>   <clusters>
>>     <cluster name='Cluster2' type='source'>
>>       <validity start='2016-02-15T16:50Z' end='2016-02-24T16:50Z'/>
>>       <retention limit='hours(1)' action='delete'/>
>>     </cluster>
>>   </clusters>
>>   <table 
>>uri='catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}'/>
>>   <ACL owner='margusja' group='users' permission='0755'/>
>>   <schema location='hcat' provider='hcat'/>
>></feed>
>>
>>Then I can submit it using falcon command line.
>>But if I use web GUI and I am trying to edit XML via Falcon web GUI then
>>after saving it (using Finish button) it changes my modifications back.
>>
>>-- 
>>Margus (margusja) Roo
>>http://margus.roo.ee
>>skype: margusja
>>+372 51 48 780
>>
>
>

Re: Can not create feed via Falcon web GUI

Posted by Ying Zheng <yz...@hortonworks.com>.
Thank you for reporting this bug, Margus. It looks the UI takes the
default table URI 
('catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}') instead of
the one in the cluster specification ('null¹). Therefore, when you delete
Œnull¹ uri, the UI doesn¹t find any change in the feed summary and so
doesn¹t save your changes.

This new UI is in HDP2.3 but not yet shipped on apache falcon branch. I¹ve
filed a bug report internally. In the future, if you have any questions
regarding HDP2.3, you can ask questions here:
https://community.hortonworks.com/. Thank you!

Cheers,
Ying


On 2/16/16, 7:15 AM, "Margus Roo" <ma...@roo.ee> wrote:

>Hi
>
>I have Falcon 0.6.1.2.3 from HDP-2.3
>I created new feed via web -
>http://margus.roo.ee/wp-content/uploads/2016/02/Screen-Shot-2016-02-16-at-
>17.05.31.png
>And cot XML:
><feed xmlns='uri:falcon:feed:0.1' name='margusja-demo'>
>   <frequency>hours(1)</frequency>
>   <timezone>UTC</timezone>
>   <clusters>
>     <cluster name='Cluster2' type='source'>
>       <validity start='2016-02-15T16:50Z' end='2016-02-24T16:50Z'/>
>       <retention limit='hours(1)' action='delete'/>
>       <table uri='null'/>
>     </cluster>
>   </clusters>
>   <table 
>uri='catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}'/>
>   <ACL owner='margusja' group='users' permission='0755'/>
>   <schema location='hcat' provider='hcat'/>
>   <properties>
>     <property/>
>   </properties>
></feed>
>
>As you can see there is one extra <table uri='null'/>
>
>And firebug console gives me:
>Error: b.feed.clusters.cluster[0].locations is undefined
>n@http://hadoopnn2:15000/js/main.min.js:771:20
>a.saveEntity@http://hadoopnn:15000/js/main.min.js:794:39
>fb.prototype.functionCall/<@http://hadoopnn2:15000/js/vendor.min.js:207:11
>0 
>Ac[c]</<.compile/</</f@http://hadoopnn2:15000/js/vendor.min.js:236:195
>Me/this.$get</k.prototype.$eval@http://hadoopnn2:15000/js/vendor.min.js:13
>4:116 
>Me/this.$get</k.prototype.$apply@http://hadoopnn2:15000/js/vendor.min.js:1
>34:330 
>Ac[c]</<.compile/</<@http://hadoopnn2:15000/js/vendor.min.js:236:245
>m.event.dispatch@http://hadoopnn2:15000/js/vendor.min.js:6:8384
>m.event.add/r.handle@http://hadoopnn2:15000/js/vendor.min.js:6:5122
>	
>
>...on 
>ra(b,a){if("__defineGetter__"===b||"__defineSetter__"===b||"__lookupGetter
>__"...
>
>
>
>If I'll modify XML in command line:
><feed xmlns='uri:falcon:feed:0.1' name='margusja-demo'>
>   <frequency>hours(1)</frequency>
>   <timezone>UTC</timezone>
>   <clusters>
>     <cluster name='Cluster2' type='source'>
>       <validity start='2016-02-15T16:50Z' end='2016-02-24T16:50Z'/>
>       <retention limit='hours(1)' action='delete'/>
>     </cluster>
>   </clusters>
>   <table 
>uri='catalog:default:falcon1#feed_date=${YEAR}-${MONTH}-${DAY}'/>
>   <ACL owner='margusja' group='users' permission='0755'/>
>   <schema location='hcat' provider='hcat'/>
></feed>
>
>Then I can submit it using falcon command line.
>But if I use web GUI and I am trying to edit XML via Falcon web GUI then
>after saving it (using Finish button) it changes my modifications back.
>
>-- 
>Margus (margusja) Roo
>http://margus.roo.ee
>skype: margusja
>+372 51 48 780
>