[ https://issues.apache.org/jira/browse/CASSANDRA-7398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14040578#comment-14040578 ]
Robert Stupp commented on CASSANDRA-7398: ----------------------------------------- If it helps (and not already done), I can do this tomorrow evening (CEST). But the assumption to prefix "everything" with {{file:///}} (three slashes before drive specification) is wrong. [MSDN|http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx] specifies the URI format: {{ 'file://' <server> '/' <share> '/' <path> }} The 'server' part is only empty for local files that are accessible via a drive-letter-mapping. One quick way out of the dilemma might be this os independent (pseudo) code: {noformat} String configUrl = System.getProperty("cassandra.config"); URL url; try { // try to parse URI URI configURI = new URI(configUrl); url = configURI.toURL(); } catch (UriSyntaxException...) { // wrong URI format - try via file path URI configURI = new File(configUrl).toURI(); url = configURI.toURL(); } {noformat} > 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 > Assignee: Marco Tulio Avila Cerón > Priority: Minor > Labels: lhf, patch > Fix For: 2.1 rc2 > > Attachments: CASSANDRA-7398_prefix_v2.patch, > CASSANDRA-7398_prefix_v3.patch, CASSANDRA-7398_prefix_v4.patch, > trunk-7398_v5.txt, trunk-7398_v6.txt, trunk-7398_v7.txt > > 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)