cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Does Databricks support proxy for BigQuery?

109005
New Contributor III

Hi team, we tried to use the proxy options for BigQuery Spark connector as mentioned in this documentation. However, we keep getting "connect timed out" error. The proxy host is working on our end. This made us wonder if by chance Databricks does not support proxies?

Please do confirm.

6 REPLIES 6

Prabakar
Databricks Employee
Databricks Employee

Hi @Ayushi Pandeyโ€‹ Databricks supports proxies. could you please share the error stack?

109005
New Contributor III

Sure thing. Below is the error stack:

com.google.cloud.spark.bigquery.repackaged.com.google.cloud.bigquery.BigQueryException: Connect to 10.128.0.4:3128 [/10.128.0.4] failed: connect timed out

---------------------------------------------------------------------------

Py4JJavaError Traceback (most recent call last)

<command-215529791339289> in <module>

1 spark.conf.set("proxyAddress", "http://10.128.0.4:3128")

----> 2 df = spark.read.format("bigquery").load("connectivity.product")

/databricks/spark/python/pyspark/sql/readwriter.py in load(self, path, format, schema, **options)

156 self.options(**options)

157 if isinstance(path, str):

--> 158 return self._df(self._jreader.load(path))

159 elif path is not None:

160 if type(path) != list:

/databricks/spark/python/lib/py4j-0.10.9.1-src.zip/py4j/java_gateway.py in __call__(self, *args)

1302

1303 answer = self.gateway_client.send_command(command)

-> 1304 return_value = get_return_value(

1305 answer, self.gateway_client, self.target_id, self.name)

1306

/databricks/spark/python/pyspark/sql/utils.py in deco(*a, **kw)

jose_gonzalez
Databricks Employee
Databricks Employee

Are you using community edition? or you are testing from your own workspace?

109005
New Contributor III

My own workspace.

Vidula
Honored Contributor

Hi @Ayushi Pandeyโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

109005
New Contributor III

Hi, no this issue was not resolved unfortunately.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group