<?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>question Re: How to set default time zone/local time for SparkSql on Hue Sessions. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/390052#M247165</link>
    <description>&lt;P&gt;Issue looks like you are hitting&amp;nbsp;&lt;SPAN&gt;CDPD-66940 jira and try to upgrade your CDS3 parcel to latest and it will resolve your issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 06:18:48 GMT</pubDate>
    <dc:creator>RangaReddy</dc:creator>
    <dc:date>2024-07-10T06:18:48Z</dc:date>
    <item>
      <title>How to set default time zone/local time for SparkSql on Hue Sessions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389784#M247081</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am struggling to set the time zone for the sessions on Spark Sql while submitting the query over the HUE.Maybe somebody already has this problem and know how to solve it - I would be grateful for the help.&lt;/P&gt;&lt;DIV class="tab-content"&gt;&lt;DIV class="tab-pane active"&gt;&lt;DIV class="snippet-row"&gt;&lt;DIV class="result-body"&gt;&lt;DIV class="row-fluid table-results"&gt;&lt;DIV&gt;&lt;DIV class="grid-side span12 nomargin"&gt;&lt;DIV class="results sparksql"&gt;&lt;DIV class="dataTables_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="dataTables_wrapper"&gt;&lt;SPAN&gt;So far I checked that:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;on pyspak session running on linux the time zone is the one i want :&lt;/P&gt;&lt;P&gt;spark.conf.get("spark.sql.session.timeZone")&lt;BR /&gt;'Europe/Warsaw'&lt;/P&gt;&lt;P&gt;However then i submit the TIMESTAMP on HUE running query against SparkSql I got the UTC Time Stamp.&lt;/P&gt;&lt;P&gt;SELECT TIMESTAMP 'now';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="tab-content"&gt;&lt;DIV class="tab-pane active"&gt;&lt;DIV class="snippet-row"&gt;&lt;DIV class="snippet-left-bar"&gt;&lt;DIV class="snippet-actions"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="result-body"&gt;&lt;DIV class="row-fluid table-results"&gt;&lt;DIV class="grid-side span12 nomargin"&gt;&lt;DIV class="results sparksql"&gt;&lt;DIV class="dataTables_wrapper"&gt;&lt;DIV class="fixed-header-row"&gt;&lt;DIV&gt;&amp;nbsp; TIMESTAMP '2024-07-02 08:01:06.157849'&amp;nbsp;My current time&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="fixed-first-column"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="fixed-first-cell"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2024-07-02T06:01:06Z&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&amp;nbsp;the UTC TIME&lt;/DIV&gt;&lt;DIV class="dataTables_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="dataTables_wrapper"&gt;I have also added the variable to the&amp;nbsp;spark-defaults.conf file like&amp;nbsp;spark.sql.session.timeZone=Europe/Warsaw&lt;/DIV&gt;&lt;DIV class="dataTables_wrapper"&gt;But after restarting Spark3 and Hue nothing has changed.&lt;/DIV&gt;&lt;DIV class="dataTables_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="dataTables_wrapper"&gt;Thank you for your help in advance.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:29:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389784#M247081</guid>
      <dc:creator>Bartlomiej</dc:creator>
      <dc:date>2026-04-21T06:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default time zone/local time for SparkSql on Hue Sessions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389826#M247095</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109429"&gt;@Bartlomiej&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can change the timezone for Hue using the steps below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="body taskbody"&gt;&lt;OL class="ol steps"&gt;&lt;LI&gt;&lt;SPAN class="ph cmd"&gt;Log in to Clouder Manager as an Administrator.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="ph cmd"&gt;Go to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph menucascade"&gt;&lt;SPAN class="ph uicontrol"&gt;Clusters&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Hue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Configuration&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Time Zone&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and set a desired value.&lt;/SPAN&gt;&lt;DIV class="itemgroup info"&gt;The default value is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;America/Los_Angeles. You can refer to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="xref" href="https://timezonedb.com/time-zones" target="_blank" rel="external noopener"&gt;https://timezonedb.com/time-zones&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for information on the timezones.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="ph cmd"&gt;Click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Save Changes&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="ph cmd"&gt;Restart the Hue service.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="ph cmd"&gt;Let me know if this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jul 2024 09:54:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389826#M247095</guid>
      <dc:creator>tj2007</dc:creator>
      <dc:date>2024-07-03T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default time zone/local time for SparkSql on Hue Sessions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389827#M247096</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this hint. However I have already check that configuration and it was already&amp;nbsp; Europe/Warsaw so the one diesired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There must be&amp;nbsp; somewhere some other place to specify this i think.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 10:06:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389827#M247096</guid>
      <dc:creator>Bartlomiej</dc:creator>
      <dc:date>2024-07-03T10:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default time zone/local time for SparkSql on Hue Sessions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389875#M247104</link>
      <description>&lt;P&gt;I think teh time zone has nothing to do with CURRENT_TIMESTAMP () finally. As teh actually need is to use the CURRENT_TIMESTAMP () or TIMESTAMP 'now' and have the local time as default time of that function in Spark SQL&amp;nbsp; while running the query over the HUE.&lt;/P&gt;&lt;P&gt;Now these function are giving the time 2 h late with means in UTC format and I would like to have by default 2h later or EUROPE/Berlin time for example&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 13:46:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/389875#M247104</guid>
      <dc:creator>Bartlomiej</dc:creator>
      <dc:date>2024-07-04T13:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default time zone/local time for SparkSql on Hue Sessions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/390052#M247165</link>
      <description>&lt;P&gt;Issue looks like you are hitting&amp;nbsp;&lt;SPAN&gt;CDPD-66940 jira and try to upgrade your CDS3 parcel to latest and it will resolve your issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 06:18:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/390052#M247165</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2024-07-10T06:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default time zone/local time for SparkSql on Hue Sessions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/390423#M247261</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109429"&gt;@Bartlomiej&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 00:20:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/390423#M247261</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-07-16T00:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default time zone/local time for SparkSql on Hue Sessions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/394752#M248794</link>
      <description>&lt;P&gt;Yes , upgrading spark to newest SPARK version&amp;nbsp;SPARK3-3.3.2.3.3.7190.5-2-1.p0.54391297 - fixed the issue&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 10:57:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-default-time-zone-local-time-for-SparkSql-on-Hue/m-p/394752#M248794</guid>
      <dc:creator>Bartlomiej</dc:creator>
      <dc:date>2024-10-08T10:57:12Z</dc:date>
    </item>
  </channel>
</rss>

