[
https://issues.apache.org/jira/browse/PIG-5177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894557#comment-15894557
]
Adam Szita commented on PIG-5177:
---------------------------------
[~kellyzly] can you take a look? In [^PIG-5177.1.patch] I'm using
SparkFiles.get to retrieve the path of the script files (as they were
previously added using sc().addFiles()).
This seems like a nice solution although I think I have to incorporate
reflection to be able to use SparkFiles safely (I guess it would throw
ClassDefNotFound on clusters without Spark). Can you think of a better approach?
> Scripting fails with Spark exec type
> ------------------------------------
>
> Key: PIG-5177
> URL: https://issues.apache.org/jira/browse/PIG-5177
> Project: Pig
> Issue Type: Sub-task
> Components: spark
> Reporter: Adam Szita
> Assignee: Adam Szita
> Fix For: spark-branch
>
> Attachments: PIG-5177.0.patch, PIG-5177.1.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)