Added the possibility to use transport client instead of node.
Main advantage of this is to avoid "too many open files" error on hadoop workers.