you should get the Configuration from the Hdfs mode (call mode and pattern match).

If you are doing cascading local, this more tricky. For now, just through an exception I think.