Where is proxy configuration to allow bq tool to connect to the internet?nt

不想你离开。 提交于 2020-01-05 04:17:06

问题


I get a failure when trying to authenticate using the bq tool. The reason is because it can't reach out to the googleapis.com domain. I needs to go through a proxy, but I am unsure of where that needs to be setup.

thanks for the help.


回答1:


I don't think the BigQuery tool currently has support for proxy servers. The underlying httplib2 library does have support, but you'd need to modify the code of the bq client to use it.

ie, here: http://code.google.com/p/google-bigquery-tools/source/browse/bq/bigquery_client.py#321

You should be able to pass parameters like this: httplib2.Http(proxy_info = httplib2.ProxyInfo(socks.PROXY_TYPE_SOCKS5, 'localhost', 1080))

More info here: http://code.google.com/p/httplib2/wiki/Examples

I'm looking into whether we (Google) can add proxy support natively. Ideally the httplib2 library would also look for an environment variable or similar to determine proxy settings. I've pinged the author on that.



来源:https://stackoverflow.com/questions/11906757/where-is-proxy-configuration-to-allow-bq-tool-to-connect-to-the-internetnt

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