[ 
https://issues.apache.org/jira/browse/HIVE-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673367#comment-13673367
 ] 

Shreepadma Venugopalan commented on HIVE-4648:
----------------------------------------------

[~harisekhon]: It is possible to set and unset config variables through JDBC 
that can be set/unset through the command line. To do so, you'd need to do an 
execute statement with "set config.var = value". To set the scratch dir, you 
can do the following in JDBC,

{noformat}
statement.execute("set hive.exec.scratchdir = /tmp/mydir");
{noformat}

Note that this property is set for the particular JDBC connection. 
                
> Add ability to set hadoop conf overrides in JDBC for HiveServer2
> ----------------------------------------------------------------
>
>                 Key: HIVE-4648
>                 URL: https://issues.apache.org/jira/browse/HIVE-4648
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2, JDBC
>    Affects Versions: 0.10.0
>            Reporter: Hari Sekhon
>
> It's possible in BeeLine to specify set command overides of hadoop config 
> variables, but I haven't seen any example code of how to do this in JDBC with 
> HiveServer2.
> We need an ability to specify hadoop conf overrides on a per session basis or 
> even half way through the session. See this Hive ticket for some background:
> https://issues.apache.org/jira/browse/HIVE-4644

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to