spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ayan Mukherjee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-28522) Pass dynamic parameters to custom file input format
Date Sat, 27 Jul 2019 15:23:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-28522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894478#comment-16894478
] 

Ayan Mukherjee commented on SPARK-28522:
----------------------------------------

Please share an example.

> Pass dynamic parameters to custom file input format
> ---------------------------------------------------
>
>                 Key: SPARK-28522
>                 URL: https://issues.apache.org/jira/browse/SPARK-28522
>             Project: Spark
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: 2.3.0
>            Reporter: Ayan Mukherjee
>            Priority: Major
>
> 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")



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message