在使Mongo BI Connector(mongosqld)工作/配置(link)时遇到问题
我在亚马逊linux ec2盒子上运行它。我能够通过mongo连接到mongo服务器,我能够从mongodrdl
但是当我尝试通过连接器远程连接时,我收到以下错误:
从108.20.YYY.XXX:53793接受连接,但无法初始化:无法连接到MongoDB:没有可用的服务器:服务器选择失败:超出上下文截止日期
我尝试了一堆配置,都给出了类似的错误。所以现在我已将执行简化为:
mongosqld --schema=schema.drdl --addr=0.0.0.0:3307
[ec2-user@ip-10-0-0-147 elt]$ mongosqld --schema=schema.drdl --addr=0.0.0.0:3307
2017-11-29T03:27:36.147+0000 I CONTROL [initandlisten] mongosqld starting: version=v2.3.1 pid=24455 host=ip-10-0-0-147
2017-11-29T03:27:36.147+0000 I CONTROL [initandlisten] git version: fa3535342a4c5abe36e3cc28a2ecf72864dfc6fe
2017-11-29T03:27:36.147+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
2017-11-29T03:27:36.147+0000 I CONTROL [initandlisten] options: {schema: {path: "schema.drdl"}, net: {bindIp: [0.0.0.0]}}
2017-11-29T03:27:36.147+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for mongosqld.
2017-11-29T03:27:36.147+0000 I CONTROL [initandlisten]
2017-11-29T03:27:36.159+0000 I NETWORK [initandlisten] waiting for connections at [::]:3307
2017-11-29T03:27:36.159+0000 I NETWORK [initandlisten] waiting for connections at /tmp/mysql.sock
2017-11-29T03:27:56.199+0000 E NETWORK [initandlisten] connection accepted from 108.20.YYY.XXX:53793, but could not initialize: unable to connect to MongoDB: no servers available: server selection failed: context deadline exceeded
注意:当所有服务都在同一台机器上时,我的端到端工作。
任何人都可以轻松一点吗?!
谢谢!