- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Phoenix timezone not changed
- Labels:
-
Apache Ambari
-
Apache Phoenix
Created ‎02-21-2017 12:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have a Spark app which inserts data to HBase, using Phoenix. They're managed inside Ambari. And more, I use Squirrel SQL as Phoenix GUI tool.
I added phoenix.query.dateFormatTimeZone option to custom hbase-site.xml of Ambari, but timezone never be changed. KST, GMT+9:00, ... several format all do not have affect.
-- MODIFIED
But with ./sqlline.py, expected timezone is used.
Thanks in advance!
Created ‎02-21-2017 01:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please check if you use sqlline.py instead of Squirrel SQL is the problem occurs?
Created ‎02-21-2017 01:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please check if you use sqlline.py instead of Squirrel SQL is the problem occurs?
Created ‎02-21-2017 01:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yup, it looks like sqlline.py works. Then maybe Squirrel SQL has the problem?
Created ‎02-21-2017 02:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I think it will be something related to the Squirrel SQL timezone settings.
Created ‎02-21-2017 02:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you try to run Squirell SQL in the changed time zone by setting the "-Duser.timezone=<timezone>" JVM parameter?
On what operating system are you running Squirell SQL?
Created ‎02-21-2017 02:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmm It doesn't work on Mac OS. You meant MacOS/squirrel-sql.sh right?
Created ‎02-21-2017 02:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got it. One more question : is it possible to insert Date of custom timezone to Phoenix? it looks like dateFormatTimeZone is only related to 'select and interpret date', not to 'insert date'.
Created ‎02-22-2017 07:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎02-22-2017 01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been noticed them and also considered timestamp, but am finding more clearer solution : ) Thanks anyways.
Created ‎02-23-2017 08:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you link or summarize it here for further reference? 🙂
