gpload utility in greenplum

别来无恙 提交于 2019-12-11 04:22:40

问题


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:

  1. starts gpfdist on the listening on port where you are running gpload.
  2. creates an external table with the location specified as gpfdist://:/filename
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!