<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error writing data to Google Bigquery in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29848#M21549</link>
    <description>&lt;P&gt;Thanks @Kaniz Fatma​&amp;nbsp;  for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the steps mentioned in the thread, But  I got the same error&lt;/P&gt;&lt;P&gt;OException: Error getting access token from metadata server at:&amp;nbsp;&lt;A href="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" alt="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" target="_blank"&gt;http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Caused by: HttpResponseException: 404 Not Found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note I am able to read data from Bigquery table, But not able to write data.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 06:13:16 GMT</pubDate>
    <dc:creator>udays22222</dc:creator>
    <dc:date>2022-10-03T06:13:16Z</dc:date>
    <item>
      <title>Error writing data to Google Bigquery</title>
      <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29846#M21547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am able to read data from a Bigquery table ,But am getting error writing data to a table in Bigquery&lt;/P&gt;&lt;P&gt;Followed instuctions in this document.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloud.google.com/bigquery/docs/connect-databricks#:~:text=To%20write%20to%20BigQuery%2C%20the,to%20the%20Cloud%20Storage%20Browser.&amp;amp;text=Click%20Create%20bucket%20to%20open,to%20write%20data%20to%20BigQuery." alt="https://cloud.google.com/bigquery/docs/connect-databricks#:~:text=To%20write%20to%20BigQuery%2C%20the,to%20the%20Cloud%20Storage%20Browser.&amp;amp;text=Click%20Create%20bucket%20to%20open,to%20write%20data%20to%20BigQuery." target="_blank"&gt;Connecting Databricks to BigQuery&amp;nbsp;|&amp;nbsp;Google Cloud&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%scala&lt;/P&gt;&lt;P&gt;import scala.io.Source&lt;/P&gt;&lt;P&gt;val contentCred = "/dbfs/FileStore/keys/uday_123.json"&lt;/P&gt;&lt;P&gt;val jsonBytes = Source.fromFile(contentCred).getLines.mkString&lt;/P&gt;&lt;P&gt;&amp;nbsp;myEvents.write.format("bigquery").mode("overwrite").option("temporaryGcsBucket", "databricks-bq-789")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.option("credentials", new String(java.util.Base64.getEncoder.encode(jsonBytes.getBytes)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.option("parentProject", "uday-***")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.option("project", "uday-***")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.option("table","uday-***.uday_testdata.employee1")&lt;/P&gt;&lt;P&gt;&amp;nbsp;.save()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IOException: Error getting access token from metadata server at: &lt;A href="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" target="test_blank"&gt;http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Caused by: HttpResponseException: 404 Not Found&lt;/P&gt;&lt;P&gt;GET &lt;A href="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" target="test_blank"&gt;http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;PRE&gt;&lt;CODE&gt;ResourceNotFound&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;    The specified resource does not exist.&lt;/P&gt;&lt;P&gt;    'computeMetadata' isn't a valid resource name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 19:25:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29846#M21547</guid>
      <dc:creator>udays22222</dc:creator>
      <dc:date>2022-09-30T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error writing data to Google Bigquery</title>
      <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29848#M21549</link>
      <description>&lt;P&gt;Thanks @Kaniz Fatma​&amp;nbsp;  for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the steps mentioned in the thread, But  I got the same error&lt;/P&gt;&lt;P&gt;OException: Error getting access token from metadata server at:&amp;nbsp;&lt;A href="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" alt="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" target="_blank"&gt;http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Caused by: HttpResponseException: 404 Not Found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note I am able to read data from Bigquery table, But not able to write data.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 06:13:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29848#M21549</guid>
      <dc:creator>udays22222</dc:creator>
      <dc:date>2022-10-03T06:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error writing data to Google Bigquery</title>
      <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29849#M21550</link>
      <description>&lt;P&gt;Could anyone reply on solution for this error&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 06:12:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29849#M21550</guid>
      <dc:creator>udays22222</dc:creator>
      <dc:date>2022-10-04T06:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error writing data to Google Bigquery</title>
      <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29850#M21551</link>
      <description>&lt;P&gt;Hi @uday s​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've encountered this issue earlier this week. Could you please ensure that your cluster configuration is correct? I was able to write to the BigQuery tables after following Step 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/data/data-sources/google/bigquery.html#step-2-set-up-databricks" target="test_blank"&gt;https://docs.databricks.com/data/data-sources/google/bigquery.html#step-2-set-up-databricks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works! &lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:40:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29850#M21551</guid>
      <dc:creator>Cedric</dc:creator>
      <dc:date>2022-10-07T15:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error writing data to Google Bigquery</title>
      <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29851#M21552</link>
      <description>&lt;P&gt;Hi @uday s​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 06:05:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29851#M21552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-23T06:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error writing data to Google Bigquery</title>
      <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29852#M21553</link>
      <description>&lt;P&gt;I've the same issue. I can read a BigQuery table.&lt;/P&gt;&lt;P&gt;But when I'm trying to save data into bigquery :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IOException: Error getting access token from metadata server at: &lt;A href="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" alt="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" target="_blank"&gt;http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Caused by: HttpResponseException: 404 Not Found&lt;/P&gt;&lt;P&gt;GET &lt;A href="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" alt="http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token" target="_blank"&gt;http://***.***.***.***/computeMetadata/v1/instance/service-accounts/default/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance&amp;quot;" target="test_blank"&gt;http://www.w3.org/2001/XMLSchema-instance"&lt;/A&gt;; xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" alt="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;PRE&gt;&lt;CODE&gt;ResourceNotFound&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;The specified resource does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'computeMetadata' isn't a valid resource name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 18:38:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/29852#M21553</guid>
      <dc:creator>pierre</dc:creator>
      <dc:date>2023-02-10T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error writing data to Google Bigquery</title>
      <link>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/102109#M40968</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/67721"&gt;@udays22222&lt;/a&gt;&amp;nbsp;did you find any solution on this one? I face the same problem when I use Shared (Access mode) cluster. I can read but I cannot write with the error you mentioned.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 17:27:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-writing-data-to-google-bigquery/m-p/102109#M40968</guid>
      <dc:creator>GeoPer</dc:creator>
      <dc:date>2024-12-13T17:27:36Z</dc:date>
    </item>
  </channel>
</rss>

