Explore Courses Blog Tutorials Interview Questions
0 votes
in BI by (17.6k points)

We are using TableauSDK (Java) to publish extract into Tableau Server.

Our connection to Tableau server is via proxy. So we just set the java system properties

https.proxyHost, https.proxyPort, http.proxyHost and http.proxyPort.

But it seems the proxy settings done in above java system properties does not take effect. Please help us to configure proxy settings in TableauSDK (Java)

1 Answer

0 votes
by (47.2k points)
  • The Tableau SDK uses a native library under the hood, which integrates with the Java SDK using JNI.

  • The native library supports the standard environment variables for proxy configuration, http_proxy, and https_proxy. You can simply export these environment variables on a Linux, or Mac system,

export http_proxy="http://my.proxy.server:3128" export https_proxy="http://my.proxy.server:3128" java -jar my-application.jar

  • If you are using a proxy server which requires authentication, the SDK exposes a method to set the username and password:

ServerAPI.initialize(); ServerConnection serverConnection = new ServerConnection(); serverConnection.setProxyCredentials("user", "pass"); serverConnection.connect("https://tableau.url", "user", "password", "siteName"); serverConnection.publish("/path/to/extract", "projectName", "dataSourceName", true); // Overwrite Existing

Related questions

0 votes
1 answer
asked Aug 27, 2019 in AWS by yuvraj (19.1k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories