trying solution as from http://mail-archives.apache.org/mod_mbox/incubator-spark-user/201406.mbox/%3CCAAqHrfF2aCzDGc28Pi39MDMPwP+Teze9EiTrMvwnxCxD2qanMQ@mail.gmail.com%3E