Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1331

HADOOP_GREMLIN_LIBS can only point to local file system

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-incubating, 3.1.2-incubating
    • Fix Version/s: 3.2.1
    • Component/s: hadoop
    • Labels:
      None

      Description

      These two lines in SparkGraphComputer assume that HADOOP_GREMLIN_LIBS will only contain local file system references (although it seems that the rest of the code could handle DFS references):

      final String[] paths = hadoopGremlinLocalLibs.split(":");
      final FileSystem fs = FileSystem.get(hadoopConfiguration);
      

      If, for example, HADOOP_GREMLIN_LIBS would be set to hdfs:///spark-gremlin-libs:/foo/bar, the split(":") call would obviously separate the file system scheme (hdfs://) from the path (/spark-gremlin-libs).

      Next, FileSystem.get(hadoopConfiguration) will always only return a reference to the FileSystem that is defined as the default file system.

      The same is probably true for GiraphGraphComputer.

        Attachments

          Activity

            People

            • Assignee:
              dkuppitz Daniel Kuppitz
              Reporter:
              dkuppitz Daniel Kuppitz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: