Lab Support for Beeline issue


#1

I am connecting to beeline but unable to use the any databases.Please try to solve this error as soon as possible
plz find error below error

0: jdbc:hive2://> use sai;
OK
20/03/14 04:50:33 [Thread-13]: WARN thrift.ThriftCLIService: Error fetching resu lts:
org.apache.hive.service.cli.HiveSQLException: Couldn’t find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier ()=b694edf0-d482-4fe3-ae05-1f91f07a6687]
at org.apache.hive.service.cli.operation.OperationManager.getOperationLo gRowSet(OperationManager.java:249)
at org.apache.hive.service.cli.session.HiveSessionImpl.fetchResults(Hive SessionImpl.java:786)
at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java:5 20)
at org.apache.hive.service.cli.thrift.ThriftCLIService.FetchResults(Thri ftCLIService.java:709)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hive.jdbc.HiveConnection$SynchronizedHandler.invoke(HiveCo nnection.java:1374)
at com.sun.proxy.$Proxy17.FetchResults(Unknown Source)
at org.apache.hive.jdbc.HiveStatement.getQueryLog(HiveStatement.java:865 )
at org.apache.hive.jdbc.HiveStatement.getQueryLog(HiveStatement.java:836 )
at org.apache.hive.beeline.Commands.showRemainingLogsIfAny(Commands.java :973)
at org.apache.hive.beeline.Commands.access$100(Commands.java:62)
at org.apache.hive.beeline.Commands$1.run(Commands.java:951)
at java.lang.Thread.run(Thread.java:745)
No rows affected (0.257 seconds)
20/03/14 04:50:33 [main]: WARN thrift.ThriftCLIService: Error fetching results:
org.apache.hive.service.cli.HiveSQLException: Couldn’t find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier ()=b694edf0-d482-4fe3-ae05-1f91f07a6687]
at org.apache.hive.service.cli.operation.OperationManager.getOperationLo gRowSet(OperationManager.java:249)
at org.apache.hive.service.cli.session.HiveSessionImpl.fetchResults(Hive SessionImpl.java:786)
at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java:5 20)
at org.apache.hive.service.cli.thrift.ThriftCLIService.FetchResults(Thri ftCLIService.java:709)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hive.jdbc.HiveConnection$SynchronizedHandler.invoke(HiveCo nnection.java:1374)
at com.sun.proxy.$Proxy17.FetchResults(Unknown Source)
at org.apache.hive.jdbc.HiveStatement.getQueryLog(HiveStatement.java:865 )
at org.apache.hive.jdbc.HiveStatement.getQueryLog(HiveStatement.java:836 )
at org.apache.hive.beeline.Commands.showRemainingLogsIfAny(Commands.java :973)
at org.apache.hive.beeline.Commands.execute(Commands.java:909)
at org.apache.hive.beeline.Commands.sql(Commands.java:729)
at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:1000)
at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:835)
at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:793)
at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java :493)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:476)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
at org.apache.hadoop.util.RunJar.main(RunJar.java:148)


#2

First, you need to connect.