Correct usage:
'arg': ['-param_file', '/path/to/param.file']
Explanation: By passing the value in arg,
'arg': {'-param_file': '/path/to/param.file'}
webhcat generates "-param_file" for the command prompt. Pig throws the following error
ERROR org.apache.pig.Main - ERROR 2999: Unexpected internal error. Can not create a Path from a null string
Using a comma instead of the colon operator passes the path to file as a second argument. webhcat will generate "-param_file" "/path/to/param.file"
P.S: I am using Requests library on python to make the REST calls