[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lefty Leverenz updated HIVE-5867: - Labels: (was: TODOC2.2) > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Fix For: 2.2.0 > > Attachments: HIVE-5867.1.patch, HIVE-5867.2.patch, HIVE-5867.3 .patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lefty Leverenz updated HIVE-5867: - Labels: TODOC2.2 (was: ) > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Labels: TODOC2.2 > Fix For: 2.2.0 > > Attachments: HIVE-5867.1.patch, HIVE-5867.2.patch, HIVE-5867.3 .patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ferdinand Xu updated HIVE-5867: --- Resolution: Fixed Fix Version/s: 2.2.0 Status: Resolved (was: Patch Available) Committed to the master. Thanks Jianguo for the contribution. > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Fix For: 2.2.0 > > Attachments: HIVE-5867.1.patch, HIVE-5867.2.patch, HIVE-5867.3 .patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jianguo Tian updated HIVE-5867: --- Attachment: HIVE-5867.3 .patch > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Attachments: HIVE-5867.1.patch, HIVE-5867.2.patch, HIVE-5867.3 .patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jianguo Tian updated HIVE-5867: --- Attachment: HIVE-5867.2.patch > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Attachments: HIVE-5867.1.patch, HIVE-5867.2.patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jianguo Tian updated HIVE-5867: --- Status: Patch Available (was: Open) > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Attachments: HIVE-5867.1.patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jianguo Tian updated HIVE-5867: --- Attachment: HIVE-5867.1.patch > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Attachments: HIVE-5867.1.patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jianguo Tian updated HIVE-5867: --- Attachment: (was: HIVE-5867.1.patch) > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-5867) JDBC driver and beeline should support executing an initial SQL script
[ https://issues.apache.org/jira/browse/HIVE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jianguo Tian updated HIVE-5867: --- Attachment: HIVE-5867.1.patch > JDBC driver and beeline should support executing an initial SQL script > -- > > Key: HIVE-5867 > URL: https://issues.apache.org/jira/browse/HIVE-5867 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC >Reporter: Prasad Mujumdar >Assignee: Jianguo Tian > Attachments: HIVE-5867.1.patch > > > HiveCLI support the .hiverc script that is executed at the start of the > session. This is helpful for things like registering UDFs, session specific > configs etc. > This functionality is missing for beeline and JDBC clients. It would be > useful for JDBC driver to support an init script with SQL statements that's > automatically executed after connection. The script path can be specified via > JDBC connection URL. For example > {noformat} > jdbc:hive2://localhost:1/default;initScript=/home/user1/scripts/init.sql > {noformat} > This can be added to Beeline's command line option like "-i > /home/user1/scripts/init.sql" > To help transition from HiveCLI to Beeline, we can keep the default init > script as $HOME/.hiverc -- This message was sent by Atlassian JIRA (v6.3.4#6332)