You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "pavan kumar kolamuri (JIRA)" <ji...@apache.org> on 2015/02/20 12:39:12 UTC
[jira] [Commented] (FALCON-1020) validate command produces
different results when run via prism and server
[ https://issues.apache.org/jira/browse/FALCON-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328834#comment-14328834 ]
pavan kumar kolamuri commented on FALCON-1020:
----------------------------------------------
This is happening because we don't do dry run on Feed Retention in prism validate , but when we validate on server we will do dry run and it is failing since we didn't handle the case when stats/staging is empty. I have submitted patch to handle that, Please review.
> validate command produces different results when run via prism and server
> -------------------------------------------------------------------------
>
> Key: FALCON-1020
> URL: https://issues.apache.org/jira/browse/FALCON-1020
> Project: Falcon
> Issue Type: Bug
> Components: client, feed
> Affects Versions: trunk
> Environment: QA
> Reporter: Karishma Gulati
> Assignee: pavan kumar kolamuri
> Attachments: FALCON-1020.patch
>
>
> For the feed xml:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> Licensed to the Apache Software Foundation (ASF) under one
> or more contributor license agreements. See the NOTICE file
> distributed with this work for additional information
> regarding copyright ownership. The ASF licenses this file
> to you under the Apache License, Version 2.0 (the
> "License"); you may not use this file except in compliance
> with the License. You may obtain a copy of the License at
> http://www.apache.org/licenses/LICENSE-2.0
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
> -->
> <feed description="clicks log" name="raaw-logs16" xmlns="uri:falcon:feed:0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <partitions>
> <partition name="country" />
> <partition name="colo" />
> </partitions>
> <!--
> <groups>online,bi</groups>-->
> <frequency>minutes(20)</frequency>
> <timezone>UTC</timezone>
> <late-arrival cut-off="hours(6)" />
> <clusters>
> <cluster name="corp" type="source">
> <validity start="2009-02-01T00:00Z" end="2099-05-01T00:00Z"
> />
> <retention limit="months(9000)" action="delete" /> <!-- Limit can be in Time or Instances 100, Action ENUM DELETE,ARCHIVE -->
> </cluster>
> </clusters>
> <locations>
> <location type="data" path="/test/input-data/rawLogs/${YEAR}/${MONTH}/${DAY}/${HOUR}/${MINUTE}" />
> <location type="stats" path="" />
> <location type="meta" path="/projects/falcon/clicksMetaData" />
> </locations>
>
> <ACL owner="testuser" group="group" permission="0x755" />
> <schema location="/schema/clicks" provider="protobuf" />
> <properties>
> <property name="field1" value="value1" />
> <property name="field2" value="value2" />
> </properties>
> </feed>
> {code}
> When validate (via api) is run on prism, the feed is successfully validated. However when the same feed is validated via server, it fails with the following error:
> {code}
> <?xml version="1.0" encoding="UTF-8"?><result>
> <status>FAILED</status>
> <message>Can not create a Path from an empty string</message>
> <requestId>499485003@qtp-1777432937-29 - 150b8abd-fc05-450b-af3f-896d83286520</requestId>
> </result>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)