TEZ-1852. Get examples to work in Local Mode. Contributed by Prakash
Ramachandran.