[ 
https://issues.apache.org/jira/browse/FALCON-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Suresh Srinivas updated FALCON-405:
-----------------------------------

    Attachment: FALCON-405.patch

The resons for failure is, startup.properties configurations, such as 
{{*.config.store.uri=file://${falcon.home}/data/${falcon.app.type}-store}} rely 
on just replacing values from system.properties to form the URI. This works in 
Linux with backslashes with well formed URI. Example - 
{{file:///home/falcon/data/}}. On windows this results in malformed URI - 
{{file://D:\falcon\home\data}}. The right URI format is 
{{file:///D:/falcon/home/data}}.

Here is a simple patch that recognized malformed URI on Windows OS and fixes 
the URI.

This has been extensively tested both on deployed configuration and as part of 
unit tests on windows.

> Falcon service and unit tests fail due to URISyntaxException
> ------------------------------------------------------------
>
>                 Key: FALCON-405
>                 URL: https://issues.apache.org/jira/browse/FALCON-405
>             Project: Falcon
>          Issue Type: Sub-task
>            Reporter: Suresh Srinivas
>            Assignee: Suresh Srinivas
>         Attachments: FALCON-405.patch
>
>
> java.net.URISyntaxException: Illegal character in authority at index 7: 
> file://D:\w\falcon\common/target/store
>       at java.net.URI$Parser.fail(URI.java:2827)
>       at java.net.URI$Parser.parseAuthority(URI.java:3165)
>       at java.net.URI$Parser.parseHierarchical(URI.java:3076)
>       at java.net.URI$Parser.parse(URI.java:3032)
>       at java.net.URI.<init>(URI.java:595)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to