Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 02-21-2017 12:53 PM
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
Could you please check if you use sqlline.py instead of Squirrel SQL is the problem occurs?
Created 02-21-2017 01:00 PM
Could you please check if you use sqlline.py instead of Squirrel SQL is the problem occurs?
Created 02-21-2017 01:18 PM
yup, it looks like sqlline.py works. Then maybe Squirrel SQL has the problem?
Created 02-21-2017 02:21 PM
Yes, I think it will be something related to the Squirrel SQL timezone settings.
Created 02-21-2017 02:28 PM
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
Hmm It doesn't work on Mac OS. You meant MacOS/squirrel-sql.sh right?
Created 02-21-2017 02:33 PM
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
Created 02-22-2017 01:39 PM
I've been noticed them and also considered timestamp, but am finding more clearer solution : ) Thanks anyways.
Created 02-23-2017 08:48 AM
Could you link or summarize it here for further reference? 🙂