Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Setting timezone jvm parameter for hadoop jobs

avatar
New Contributor

Hi,

I'm trying to set default timezone jvm property for running hadoop jobs. I looked at the following property

SET mapred.child.java.opts=-Duser.timezone=GMT

I have this set in my hadoop config. But, I still see the jobs picking up local timezone for processing.

Is there any additional configuration required for hadoop processes? Thanks for the inputs.

2 REPLIES 2

avatar
Super Guru
@Kanagha Kumar

The value looks right. Please take a look at the following link for more details:

https://community.hortonworks.com/questions/53450/how-do-you-change-the-timezone-for-the-hdp-cluster...

avatar
New Contributor

Thank you. I'm still not seeing default timezone set to GMT inside apache pig process.

I believe the following properties need to be set for Hadoop 2.x versions

mapreduce.map.java.opts and

mapreduce.reduce.java.opts

and mapred.child.java.opts for < 2.x versions.