greenplum 启用gpfdist后无效,测试下载400错误

mimimiracle
  • 2
新手上路,请多包涵

1.GP软件4.3.15,系统centos6.9
2.在master测试gpfdist启用外部表功能
3.$ gpfdist -d /data/loderfile/ -p 8080 -l /home/gpadmin/log &
4.
[gpadmin@mdw loderfile]$ 2017-07-26 07:03:40 5526 INFO Before opening listening sockets - following listening sockets are available:
2017-07-26 07:03:40 5526 INFO IPV6 socket: [::]:8080
2017-07-26 07:03:40 5526 INFO IPV4 socket: 0.0.0.0:8080
2017-07-26 07:03:40 5526 INFO Trying to open listening socket:
2017-07-26 07:03:40 5526 INFO IPV6 socket: [::]:8080
2017-07-26 07:03:40 5526 INFO Opening listening socket succeeded
2017-07-26 07:03:40 5526 INFO Trying to open listening socket:
2017-07-26 07:03:40 5526 INFO IPV4 socket: 0.0.0.0:8080
Serving HTTP on port 8080, directory /data/loderfile
开启正常

5.使用WGET 下载文件测试报错
[gpadmin@mdw ~]$ wget http://mdw:8080/aaa
--2017-07-26 07:07:06-- http://mdw:8080/aaa
Resolving mdw... 10.0.0.121
Connecting to mdw|10.0.0.121|:8080... connected.
HTTP request sent, awaiting response... 400 invalid request (no gp-proto)
2017-07-26 07:07:06 ERROR 400: invalid request (no gp-proto).

6.查看日志
2017-07-26 07:07:06 5526 INFO [0:5:0:7] request headers:
2017-07-26 07:07:06 5526 INFO [0:5:0:7] User-Agent:Wget/1.12 (linux-gnu)
2017-07-26 07:07:06 5526 INFO [0:5:0:7] Accept:/
2017-07-26 07:07:06 5526 INFO [0:5:0:7] Host:mdw:8080
2017-07-26 07:07:06 5526 INFO [0:5:0:7] Connection:Keep-Alive
2017-07-26 07:07:06 5526 WARN [0:5:0:7] reject invalid request from ::ffff:10.0.0.121 [GET /aaa] - no X-GP-PROTO
2017-07-26 07:07:06 5526 WARN [0:5:0:7] HTTP ERROR: ::ffff:10.0.0.121 - 400 invalid request (no gp-proto)

求解这是怎么回事??

回复
阅读 3.2k
2 个回答
study_gp
  • 1
新手上路,请多包涵

您好,请问下你的greenplum是在官网上下载的吗?我为什么注册后,在官网上无法下载呢?

晓_mini
  • 5
新手上路,请多包涵

你用的是gpfdist启动的服务;用wget http://IP:PORT当然有问题
如果用http协议启动,那么访问文件是没问题的

这个不影响你的外部表的使用

宣传栏