在处理使用基本身份验证的代理服务器后面的远程工程时,您需要在 Talend Studio 中完成一些特定设置,以支持与远程 Talend Administration Center 的安全连接。
注: 本文档同时提供 HTTP 和 HTTPS 代理服务器的设置。您可以基于代理服务器的类型做出您自己的选择。
过程
-
在 Talend Studio 中,从菜单中选择 ,以打开 Preferences (首选项) 窗口,展开 节点,并定义您的代理设置。
或者,如果您在使用
Talend CommandLine,则通过向 Studio 安装目录根目录下的
.ini 文件添加以下行来设置代理:
-Dhttp.proxySet=true
-Dhttp.proxyHost=<proxy_server_host>
-Dhttp.proxyPort=<proxy_server_port>
-Dhttp.nonProxyHosts=localhost
-Dhttp.proxyUser=<proxy_server_user>
-Dhttp.proxyPassword=<proxy_server_password>
-Dhttps.proxyHost=<proxy_server_host>
-Dhttps.proxyPort=<proxy_server_port>
-Dhttps.proxyUser=<proxy_server_user>
-Dhttps.proxyPassword=<proxy_server_password>
-
根据您是要处理 SVN 还是 Git 工程,执行以下操作:
-
如果您需要处理 SVN 工程,则在 ~/.subversion/servers 文件中定义以下属性:
http-proxy-host = <proxy_server_host>
http-proxy-port = <proxy_server_port>
http-proxy-username = <proxy_server_username>
http-proxy-password = <proxy_server_password>
-
如果您需要处理 Git 工程,则按如下方式更新 .gitconfig 文件:
git config --global http.proxy http://<git_username>:<git_password>@<proxy_server_host>
git config --global https.proxy http://<git_username>:<git_password>@<proxy_server_host>
结果
重新启动
Talend Studio 后,您将能通过使用基本身份验证的代理服务器连接到
Talend Administration Center。