首页 > 大数据 > 数据挖掘 > gpfdist故障诊断
|
1、gpfdist在运行时由segment instance访问,因此必须确保gp segment可以具有访问gpfdist的网络,gpfdist服务是简单的web服务,可以使用下面的命令来测试其连接性:
wget http://gpfdist_hostname:port/filename 如: [gpadmin@sdw2 ~]$ wget http://etl:8082/gp_data/BILL.JJW_YXHD_YF_MOBILE_ECC_0832.txt
--2014-06-24 11:34:09-- http://etl:8082/gp_data/BILL.JJW_YXHD_YF_MOBILE_ECC_0832.txt
正在解析主机 etl... 134.34.147.145
Connecting to etl|134.34.147.145|:8082... 已连接。
已发出 HTTP 请求,正在等待回应... 200 ok
长度:未指定 [text/plain]
Saving to: `BILL.JJW_YXHD_YF_MOBILE_ECC_0832.txt'
[ <=> ] 16,890 --.-K/s in 0s
2014-06-24 11:34:09 (175 MB/s) - `BILL.JJW_YXHD_YF_MOBILE_ECC_0832.txt' saved [16890]
2、确认gpfdist服务已启动
[gpadmin@etl ~]$ ps ax | grep gpfdist
12993 pts/4 S+ 0:00 grep gpfdist
14133 ? S 0:01 gpfdist -d /home/gpadmin -p 8082
[gpadmin@etl ~]$ netstat -apn | grep 8082
3、确定其端口使用情况
(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:8082 0.0.0.0:* LISTEN 14133/gpfdist
|
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27135177/viewspace-1193685/ ,如需转载,请注明出处,否则将追究法律责任。