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

Pass dynamic parameters to custom file input format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.3.0
    • None
    • Java API
    • None

    Description

      We have  developed a custom file input format and calling it in pyspark using newAPIHadoopFile option. It appears there is no option to pass parameters dynamically to the custom format.

       

      rdd2 = sc.newAPIHadoopFile("/abcd/efgh/i1.txt", "com.test1.TEST2.TESTInputFormat", "org.apache.hadoop.io.Text", "org.apache.hadoop.io.NullWritable")

      Attachments

        Activity

          People

            Unassigned Unassigned
            ayan2k19 Ayan Mukherjee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: