Make the number of threads/connections configurable via Pig script