[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=762740&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-762740 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 27/Apr/22 06:45 Start Date: 27/Apr/22 06:45 Worklog Time Spent: 10m Work Description: pvary merged PR #3176: URL: https://github.com/apache/hive/pull/3176 Issue Time Tracking --- Worklog Id: (was: 762740) Time Spent: 2h (was: 1h 50m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 2h > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {code} -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=762738&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-762738 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 27/Apr/22 06:44 Start Date: 27/Apr/22 06:44 Worklog Time Spent: 10m Work Description: ming95 commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1110605806 @pvary > HIVE-26114: Fix jdbc connection hivesrerver2 using dfs command with prefix space will cause exception (Shezm reviewed b Peter Vary) It is OK ~ Issue Time Tracking --- Worklog Id: (was: 762738) Time Spent: 1h 50m (was: 1h 40m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 1h 50m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > Re
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=762729&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-762729 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 27/Apr/22 06:31 Start Date: 27/Apr/22 06:31 Worklog Time Spent: 10m Work Description: pvary commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1110596365 @ming95: Any preferred name to use in the commit log? The only full name I have found is `Shezm` It would look like this: > HIVE-26114: Fix jdbc connection hivesrerver2 using dfs command with prefix space will cause exception (Shezm reviewed b Peter Vary) Issue Time Tracking --- Worklog Id: (was: 762729) Time Spent: 1h 40m (was: 1.5h) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748)
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=762714&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-762714 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 27/Apr/22 05:28 Start Date: 27/Apr/22 05:28 Worklog Time Spent: 10m Work Description: ming95 commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1110558680 @pvary Now run green , please merge this pr . thanks ~ Issue Time Tracking --- Worklog Id: (was: 762714) Time Spent: 1.5h (was: 1h 20m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 1.5h > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {code} -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=761622&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-761622 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 25/Apr/22 07:26 Start Date: 25/Apr/22 07:26 Worklog Time Spent: 10m Work Description: pvary commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1108177418 @ming95: Please ping me later if we have further results here. I expect to be busy this week, and forget things 😄 Issue Time Tracking --- Worklog Id: (was: 761622) Time Spent: 1h 20m (was: 1h 10m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {code} -- This
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=761621&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-761621 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 25/Apr/22 07:26 Start Date: 25/Apr/22 07:26 Worklog Time Spent: 10m Work Description: pvary commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1108176377 Also started a flaky test checker for the failed test, to see if it is indeed flaky: http://ci.hive.apache.org/job/hive-flaky-check/559/ Issue Time Tracking --- Worklog Id: (was: 761621) Time Spent: 1h 10m (was: 1h) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {co
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=761620&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-761620 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 25/Apr/22 07:23 Start Date: 25/Apr/22 07:23 Worklog Time Spent: 10m Work Description: pvary commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1108173812 @ming95: You can rerun the tests from the jenkins UI. I restarted them, so if we have a green run, we can merge. Thanks, Peter Issue Time Tracking --- Worklog Id: (was: 761620) Time Spent: 1h (was: 50m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 1h > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {code}
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=757726&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-757726 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 18/Apr/22 00:38 Start Date: 18/Apr/22 00:38 Worklog Time Spent: 10m Work Description: ming95 commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1100983724 @kgyrtkirk Test unstable, please rebuild CI. @pvary @nrg4878 I add a UT, please review again. Thanks ~ Issue Time Tracking --- Worklog Id: (was: 757726) Time Spent: 50m (was: 40m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 50m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {code}
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=756109&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-756109 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 13/Apr/22 00:37 Start Date: 13/Apr/22 00:37 Worklog Time Spent: 10m Work Description: ming95 commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1097429520 @pvary sorry for the late response... I'll add some UTs later. Issue Time Tracking --- Worklog Id: (was: 756109) Time Spent: 40m (was: 0.5h) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 40m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {code} -- This message was sent by Atlassian Jira (v8
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=752716&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-752716 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 05/Apr/22 08:50 Start Date: 05/Apr/22 08:50 Worklog Time Spent: 10m Work Description: pvary commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1088439292 @ming95: Can we have a unit test which fails before the patch, and runs successfully after the patch? Maybe `TestBeeLineDriver`, or `TestBeeLineWithArgs`, or something like them Issue Time Tracking --- Worklog Id: (was: 752716) Time Spent: 0.5h (was: 20m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSe
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=752710&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-752710 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 05/Apr/22 08:40 Start Date: 05/Apr/22 08:40 Worklog Time Spent: 10m Work Description: ming95 commented on PR #3176: URL: https://github.com/apache/hive/pull/3176#issuecomment-1088429808 @deniskuzZ @pvary @sankarh @adesh-rao @zabetak It's a simple bug. could you guys please review the PR? Issue Time Tracking --- Worklog Id: (was: 752710) Time Spent: 20m (was: 10m) > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Labels: pull-request-available > Fix For: 3.2.0 > > Time Spent: 20m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:605) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > But when I execute sql with prefix "\n" it works fine > {code:java} > ResultSet res = stmt.executeQuery("\n select 1"); {code} -- This message was s
[jira] [Work logged] (HIVE-26114) jdbc connection hivesrerver2 using dfs command with prefix space will cause exception
[ https://issues.apache.org/jira/browse/HIVE-26114?focusedWorklogId=752395&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-752395 ] ASF GitHub Bot logged work on HIVE-26114: - Author: ASF GitHub Bot Created on: 04/Apr/22 17:35 Start Date: 04/Apr/22 17:35 Worklog Time Spent: 10m Work Description: ming95 opened a new pull request, #3176: URL: https://github.com/apache/hive/pull/3176 ### What changes were proposed in this pull request? fix hive command Operation bug . ### Why are the changes needed? jdbc connection hivesrerver2 using dfs command with prefix space will cause exception. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? ``` Connection con = DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); Statement stmt = con.createStatement(); // dfs command with prefix space or "\n" ResultSet res = stmt.executeQuery(" dfs -ls /"); //ResultSet res = stmt.executeQuery("\ndfs -ls /"); ``` Issue Time Tracking --- Worklog Id: (was: 752395) Remaining Estimate: 0h Time Spent: 10m > jdbc connection hivesrerver2 using dfs command with prefix space will cause > exception > - > > Key: HIVE-26114 > URL: https://issues.apache.org/jira/browse/HIVE-26114 > Project: Hive > Issue Type: Bug > Components: JDBC >Affects Versions: 2.3.8, 3.1.2 >Reporter: shezm >Assignee: shezm >Priority: Major > Fix For: 3.2.0 > > Time Spent: 10m > Remaining Estimate: 0h > > {code:java} > Connection con = > DriverManager.getConnection("jdbc:hive2://10.214.35.115:1/"); > Statement stmt = con.createStatement(); > // dfs command with prefix space or "\n" > ResultSet res = stmt.executeQuery(" dfs -ls /"); > //ResultSet res = stmt.executeQuery("\ndfs -ls /"); {code} > it will cause exception > {code:java} > Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: > Error while processing statement: null > at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) > at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217) > at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244) > at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:375) > at com.ne.gdc.whitemane.shezm.TestJdbc.main(TestJdbc.java:30) > Caused by: org.apache.hive.service.cli.HiveSQLException: Error while > processing statement: null > at > org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) > at > org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:118) > at org.apache.hive.service.cli.operation.Operation.run(Operation.java:320) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:530) > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:517) > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > at com.sun.proxy.$Proxy43.executeStatementAsync(Unknown Source) > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:310) > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:530) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1437) > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1422) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TU