Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12517

No default RDD name for ones created by sc.textFile

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.1, 1.5.0, 1.5.2
    • Fix Version/s: 1.6.1, 2.0.0
    • Component/s: Spark Core
    • Labels:

      Description

      Having a default name for an RDD created from a file is very handy.
      The feature was first added at commit: 7b877b2 but was later removed (probably by mistake) at commit: fc8b581.
      This change sets the default path of RDDs created via sc.textFile(...) to the path argument.

      Here is the symptom:

      Using spark-1.5.2-bin-hadoop2.6:
      scala> sc.textFile("/home/root/.bashrc").name
      res5: String = null

      scala> sc.binaryFiles("/home/root/.bashrc").name
      res6: String = /home/root/.bashrc

      while using Spark 1.3.1:
      scala> sc.textFile("/home/root/.bashrc").name
      res0: String = /home/root/.bashrc

      scala> sc.binaryFiles("/home/root/.bashrc").name
      res1: String = /home/root/.bashrc

        Attachments

          Activity

            People

            • Assignee:
              wyaron yaron weinsberg
              Reporter:
              wyaron yaron weinsberg
              Shepherd:
              Andrew Or
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified