Support Questions

Find answers, ask questions, and share your expertise

Phoenix timezone not changed

avatar
New Member

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
New Member

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
New Member

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

avatar
New Member
@jgub

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

avatar
New Member

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

avatar
New Member

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
New Member

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

avatar
New Member

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
New Member

avatar
New Member

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

avatar
New Member

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