- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Changing timezone in Phoenix Query Server
- Labels:
-
Apache HBase
-
Apache Phoenix
Created ‎07-28-2016 01:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
Sorry for a newbie question, but I just want to ask on how to change timezone on Phoenix.
Right now, by default it is set to GMT, and would like to change it to GMT+8.
Already tried to use this param below to Hbase, custom hbase-site.
phoenix.query.dateFormatTimeZone=GMT+08:00
But, still no luck.
Thanks in advance!
Best regards,
MD
Created ‎07-28-2016 10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Michael Dennis "MD" Uanang : You can check here http://stackoverflow.com/questions/14326308/how-to-include-hbase-site-xml-in-the-classpath to ensure hbase-site.xml changes are picked.
Alternately, if you are using ambari, you could add the property in the hbase service. Go to HBASE -> Configs ->
Custom hbase-site. Add the property phoenix.query.dateFormatTimeZone with value GMT+08:00. You may have to restart dependent services.
Created ‎07-28-2016 08:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can you check, updated configuration(hbase-site.xml) should be in the classpath of phoenix query server also?
Created ‎07-28-2016 10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Michael Dennis "MD" Uanang : You can check here http://stackoverflow.com/questions/14326308/how-to-include-hbase-site-xml-in-the-classpath to ensure hbase-site.xml changes are picked.
Alternately, if you are using ambari, you could add the property in the hbase service. Go to HBASE -> Configs ->
Custom hbase-site. Add the property phoenix.query.dateFormatTimeZone with value GMT+08:00. You may have to restart dependent services.
Created ‎08-02-2016 01:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @sbhat
Created ‎02-21-2017 12:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anyone did follow this answer and still got the same issue?
I added custom hbase-site in Ambari, but timezone wasn't changed. 😞
Created ‎08-01-2016 08:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might be able to change this in the client itself using the "timeZone" option in the Phoenix Thin Driver's JDBC URL:
http://calcite.apache.org/avatica/docs/client_reference.html#timeZone
Created ‎08-02-2016 01:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Josh Elser
