<?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: Pull Cluster Tags in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/48972#M28439</link>
    <description>&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I ended up using the code below to get a list of the tags for the cluster my notebook is running on. I only found this property thanks to another forum post (&lt;A href="https://learn.microsoft.com/en-us/answers/questions/375591/azure-spark-configuration-(environment)-documentat?comment=question#newest-question-comment" target="_blank"&gt;Azure Spark Configuration (Environment) Documentation - Microsoft Q&amp;amp;A&lt;/A&gt;).&lt;BR /&gt;&lt;STRONG&gt;cluster_tags = spark.conf.get("spark.databricks.clusterUsageTags.clusterAllTags")&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;It would be nice if there was some type of documentation for this type of stuff somewhere because it seems to not exists and this is the only way to get environment properties. I am also looking for a way to get tags from my Azure resource group from the cluster level through a notebook. Does anyone know if this is possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cluster_tags = spark.conf.get(&lt;/SPAN&gt;&lt;SPAN&gt;"spark.databricks.clusterUsageTags.clusterAllTags"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 18:41:35 GMT</pubDate>
    <dc:creator>DatBoi</dc:creator>
    <dc:date>2023-10-11T18:41:35Z</dc:date>
    <item>
      <title>Pull Cluster Tags</title>
      <link>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/19216#M12857</link>
      <description>&lt;P&gt;Does anybody know any in-notebook or JAR code to pull cluster tags from the runtime environment? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like... &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.notebook.entry_point.getDbutils().notebook().getContext().tags().apply('user')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but for the cluster name?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:45:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/19216#M12857</guid>
      <dc:creator>User16765131552</dc:creator>
      <dc:date>2021-06-25T17:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Cluster Tags</title>
      <link>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/19217#M12858</link>
      <description>&lt;P&gt;Turns out this is super easy! Cluster name and other customer tags are part of the Spark Conf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2468i3F51AA9D0073A243/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:46:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/19217#M12858</guid>
      <dc:creator>User16765131552</dc:creator>
      <dc:date>2021-06-25T17:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Cluster Tags</title>
      <link>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/48971#M28438</link>
      <description>&lt;P&gt;Did you find any documentation for spark.conf.get properties? I am trying to get some metadata about the environment my notebook is running in (specifically cluster custom tags)? But cannot find any information beside a couple of forum posts.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 18:37:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/48971#M28438</guid>
      <dc:creator>DatBoi</dc:creator>
      <dc:date>2023-10-11T18:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Cluster Tags</title>
      <link>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/48972#M28439</link>
      <description>&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I ended up using the code below to get a list of the tags for the cluster my notebook is running on. I only found this property thanks to another forum post (&lt;A href="https://learn.microsoft.com/en-us/answers/questions/375591/azure-spark-configuration-(environment)-documentat?comment=question#newest-question-comment" target="_blank"&gt;Azure Spark Configuration (Environment) Documentation - Microsoft Q&amp;amp;A&lt;/A&gt;).&lt;BR /&gt;&lt;STRONG&gt;cluster_tags = spark.conf.get("spark.databricks.clusterUsageTags.clusterAllTags")&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;It would be nice if there was some type of documentation for this type of stuff somewhere because it seems to not exists and this is the only way to get environment properties. I am also looking for a way to get tags from my Azure resource group from the cluster level through a notebook. Does anyone know if this is possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cluster_tags = spark.conf.get(&lt;/SPAN&gt;&lt;SPAN&gt;"spark.databricks.clusterUsageTags.clusterAllTags"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 18:41:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pull-cluster-tags/m-p/48972#M28439</guid>
      <dc:creator>DatBoi</dc:creator>
      <dc:date>2023-10-11T18:41:35Z</dc:date>
    </item>
  </channel>
</rss>

