make spark local sample work