numTasks could be empty (old version of Hadoop probably), so just wrap it in a Try and pattern match accordingly
Running Scalding unit tests failed conf casting and threw a ClassCastException. Since I don't care about profiling unit tests, instance check effectively turns the profiling off. It may be nice to inform the user that this is happening in the else block, but I didn't want to insert a println.
Two fixes to get the example running for me:
numTasks
could be empty (old version of Hadoop probably), so just wrap it in a Try and pattern match accordinglyconf
casting and threw a ClassCastException. Since I don't care about profiling unit tests, instance check effectively turns the profiling off. It may be nice to inform the user that this is happening in the else block, but I didn't want to insert a println.