Support Questions

Find answers, ask questions, and share your expertise

Phoenix timezone not changed

avatar

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!

1 ACCEPTED SOLUTION

avatar
Explorer

Could you please check if you use sqlline.py instead of Squirrel SQL is the problem occurs?

View solution in original post

9 REPLIES 9

avatar
Explorer

Could you please check if you use sqlline.py instead of Squirrel SQL is the problem occurs?

avatar
@jgub

yup, it looks like sqlline.py works. Then maybe Squirrel SQL has the problem?

avatar
Explorer

Yes, I think it will be something related to the Squirrel SQL timezone settings.

avatar
Explorer

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?

avatar

Hmm It doesn't work on Mac OS. You meant MacOS/squirrel-sql.sh right?

avatar

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'.

avatar
Explorer

avatar

I've been noticed them and also considered timestamp, but am finding more clearer solution : ) Thanks anyways.

avatar
Explorer

Could you link or summarize it here for further reference? 🙂