scalding icon indicating copy to clipboard operation
scalding copied to clipboard

scald.rb (with current develop branch) without fat jars and without scalding modules; remote cluster execution failure

Open ljrittle opened this issue 12 years ago • 2 comments

Greetings, I found that in order to use scald.rb to send a job built without fat jars (e.g. a tutorial without any scalding module dependencies) to a remote CDH4.5 cluster, I had to apply this patch:

diff --git a/scalding-core/src/main/scala/com/twitter/scalding/Job.scala b/scald index 4c20e42..8b02b6e 100644 --- a/scalding-core/src/main/scala/com/twitter/scalding/Job.scala +++ b/scalding-core/src/main/scala/com/twitter/scalding/Job.scala @@ -204,7 +204,7 @@ class Job(val args : Args) extends FieldConversions with jav "scalding.version" -> scaldingVersion, "cascading.app.name" -> name, "cascading.app.id" -> name,

  •    "cascading.app.appjar.class" -> getClass,
    
  •    //"cascading.app.appjar.class" -> getClass,
     "scalding.flow.class.name" -> getClass.getName,
     "scalding.flow.class.signature" -> classIdentifier,
     "scalding.job.args" -> args.toString,
    

(One sees the same: java.io.IOException: Split class cascading.tap.hadoop.io.MultiInputSplit not found that was reported to cause this configuration line to be placed.)

This line was recently added in #762 . I am not suggesting it should be changed back. However, there is a dragon here. The root issue (at least for CDH4.5) appears to me to be that there is no correct answer known at the time scalding is compiled if both fat and non-fat jars may be used later.

Teaching scald.rb to always create and push a fat jar (composed of scalding-core, any required scalding modules, the compiled per-job.scala) in :hdfs mode in all cases might be a good idea (and it would surely reduce the learning curve for new users, which may or may not be a project goal). However, making a fat jar for each job has at least one issue: overhead.

Any ideas?

ljrittle avatar Feb 11 '14 00:02 ljrittle

Another party found and the issue and reverted the line change noted above.

ljrittle avatar Mar 08 '14 06:03 ljrittle

Indeed :/ Since the fat jar work flow is more common, we opted for that. That said: I think it'd be great to take your experience with this workflow and add to the wiki on how to make it work.

jcoveney avatar Mar 08 '14 20:03 jcoveney