You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Felix Hill (JIRA)" <ji...@apache.org> on 2017/05/31 14:16:04 UTC

[jira] [Created] (TINKERPOP-1683) AbstractHadoopGraphComputer on Windows

Felix Hill created TINKERPOP-1683:
-------------------------------------

             Summary: AbstractHadoopGraphComputer on Windows
                 Key: TINKERPOP-1683
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1683
             Project: TinkerPop
          Issue Type: Bug
          Components: hadoop
    Affects Versions: 3.3.0
         Environment: Windows
            Reporter: Felix Hill
            Priority: Trivial


AbstractHadoopGraphComputer splits *HADOOP_GREMLIN_LIBS* in a wrong way if ; is the File.pathSeparator (on windows).
Here, the produced PATH_PATTERN splits a path at each character not at each seperator.

{code:title=AbstractHadoopGraphComputer.java|borderStyle=solid}
private final static Pattern PATH_PATTERN =
            Pattern.compile(File.pathSeparator.equals(":") ? "([^:]|://)+" : ("[^" + File.pathSeparator + "]"));


final Matcher matcher = PATH_PATTERN.matcher(hadoopGremlinLibs);
                    while (matcher.find()) {
                        final String path = matcher.group();
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)