hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <>
Subject Re: setting job name when issuing a JDBC Hive query
Date Mon, 02 May 2011 20:33:25 GMT
On Mon, May 2, 2011 at 4:29 PM, Zeus Courtois <> wrote:
> Hi,
> I am able to issue Hive queries through the Hive JDBC but I cannot find a
> way to set config parameters nor change the job name.
> Is there a way to pass/modify the HiveConf when issuing a JDBC statement?
> I have tried creating my own Session but had not much success by using:
> org.apache.hadoop.hive.jdbc.JdbcSessionState.JdbcSessionState(HiveConf conf)
> The properties that I set are not taken when the job runs.
> thanks,

You can not easily set a job name because hive overwrites this as it's
job flow runs. A quick trick is adding a quick comment at the front of
the query.

select /* my job name */ col1, from ...

View raw message