问题
Can anyone help me with the gpload utility in greenplum? I am doing this for the first time, I have created the control file as per the help command, but getting some gpfdist connection error. Is there any reference material on gpload utility or some examples I can refer to?
I getting below error while using gpload:
2013-05-21 09:34:20|INFO|started gpfdist -p 9096 -P 9097 -f "gpload.test.txt" -t 30
"2013-05-21 09:34:23|ERROR|ERROR: connection with gpfdist failed for gpfdist://<host-ip>:9096/gpload.test.txt. effective url: http://<host-ip>:9096/gpload.test.txt. (seg43 slice1 sdw8:40001 pid=19336)"
I tried doing few changes but still the problem persist. Thanks in advance, Sunny
回答1:
The key is to recognize that gpload does the following:
- starts gpfdist on the listening on port where you are running gpload.
- creates an external table with the location specified as gpfdist://:/filename
- executes the following or similar sql insert into select * from ;
This causes the segments to connect to the server where gpload is running. This requires that the localhost specified in the gpload config file can be contacted by the segments.
Try to ping the server where gpload is running from one of the segments.
Please send a copy of the .yml file if you need additional assistance.
You can email me at: LWalstad@goPivotal.com
来源:https://stackoverflow.com/questions/16671639/gpload-utility-in-greenplum