TEZ-1852. Get examples to work in Local Mode. Contributed by Prakash
Ramachandran.
(cherry picked from commit 14cc02db29bdce0c6cac5bba301875b472b7e8f5)