GP查询外部表报错

GP查询外部表报错: 
2014-06-19 09:00:59 ERROR ERROR MSG:[unixODBC]Error while executing the query (non-fatal);
ERROR:  connection with gpfdist failed for gpfdist://etl:8082/gp_data/VIP_LOCK_CT_LIST_0833.txt. effective url: http://139.36.107.140:8082/gp_data/VIP_LOCK_CT_LIST_0833.txt. error code = 115 (Operation now in progress) (url.c:258)  (seg4 slice1 sdw3-1:50001 pid=2651);

GOOGLE用不了,百度经过翻查找在: http://blog.sina.com.cn/s/blog_79d599dc0100qfgz.html上找到一篇相似的错误。
但因对GP不熟,看得不明不白,不知道讲什么。

重新在操作系统中,一行行看帮助文档:
[gpadmin@etl gp_data]$ gpfdist --help | more 

解决方法 :
 查看gpfdist状态:
[gpadmin@etl gp_data]$ gpfdist -v
[2014-06-19 14:32:44] [INTERNAL ERROR gpfdist.c:1555] cannot create socket on port 8080
          ... exiting
端口使用不正常 !!

查看端口使用情况:
 [gpadmin@etl gp_data]$ netstat -anp|grep 8080
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      24145/gpfdist       
就是gpfdist 在用 ,为什么不行?

试着用8082端口打开试试:
 [gpadmin@etl gp_data]$ gpfdist -d /home/gpadmin -p 8082 &
创建测试外部表:
CREATE EXTERNAL TABLE mi_boss.fb_test_ext(
id1 NUMERIC,id2 NUMERIC,id3 NUMERIC
) LOCATION ('gpfdist://etl:8082/gp_data/fb_test.txt')
FORMAT 'TEXT' (DELIMITER ','  NULL '' FILL MISSING FIELDS ESCAPE 'OFF' )  

再次查询外部表,可以正常查询数据了!

如何停止不正常的gpfdist服务呢?帮助文档讲得很详细: 
 To stop gpfdist when it is running in the background:
--First find its process id:
ps ax | grep gpfdist 
  OR on Solaris
ps -ef | grep gpfdist
--Then kill the process, for example:
kill 3456

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27135177/viewspace-1193680/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27135177/viewspace-1193680/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值