[
https://issues.apache.org/jira/browse/CASSANDRA-7398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031568#comment-14031568
]
Lyuben Todorov commented on CASSANDRA-7398:
-------------------------------------------
A possible approach that avoids the exception and the second try / catch might
be checking if the environment is windows using {{!FBUtilities.isUnix();}} and
then checking if the string supplied contains the _file:///_ prefix. If the
prefix is not present warn the user that they are on windows and so they need
to have it, modify the url and avoid having to carry out try-catches after an
exception is thrown.
> Using the -Dcassandra.config VM param needs a "file:///" prefix for the
> supplied URL
> ------------------------------------------------------------------------------------
>
> Key: CASSANDRA-7398
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7398
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Environment: Cassandra 2.1.0-rc1-SNAPSHOT, Win 7
> Reporter: Marco Tulio Avila CerĂ³n
> Priority: Minor
> Labels: lhf, patch
> Fix For: 2.1 rc1
>
> Attachments: CASSANDRA-7398_prefix.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> The parameter in the VM options -Dcassandra.config= needs file:///
> Allow the user to have optional "file:///" when loading the config file from
> the filesystem
--
This message was sent by Atlassian JIRA
(v6.2#6252)