Thank you for reply .but I tried below solution with mapred.job.queuename which is was unable to set ,but I set that in connection string after ‘? ‘,which was working for me .
From: Prasad Mujumdar [mailto:pras...@cloudera.com] Sent: Friday, October 10, 2014 10:28 PM To: user@hive.apache.org Subject: Re: HIveserver jdbc set configurations You can execute a 'set property=value' statements using Statement.execute(). Such change will only be visible in the current session. thanks Prasad On Fri, Oct 10, 2014 at 4:11 AM, Navdeep Agrawal <navdeep_agra...@symantec.com<mailto:navdeep_agra...@symantec.com>> wrote: Hi, I am connecting to hive server2 through jdbc and want to set some properties like mapreduce.queuename;hive.compute.query.using.stats; how can I achieve that through java . Thanks, Navdeep