Created on 06-07-2018 07:30 AM - edited 09-16-2022 06:18 AM
Hi,
When we query Impala using JDBC connection from R or dashboard , it is throwing this error quite often.
org.apache.thrift.transport.TTransportException at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84) at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378) at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69) at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_FetchResults(TCLIService.java:489) at org.apache.hive.service.cli.thrift.TCLIService$Client.FetchResults(TCLIService.java:476) at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:225) at info.urbanek.Rpackage.RJDBC.JDBCResultPull.fetch(JDBCResultPull.java:77)Error in .jcall(rp, "I", "fetch", stride, block) :
java.sql.SQLException: Error retrieving next row
Created 06-07-2018 07:52 AM
Hi @renuka20,
You need to increase the memory. I mean set options for the java parameters.
For example:
options(java.parameters = "-Xmx8048m")
library("RJDBC")
Regards,
Manu.
Created 06-07-2018 11:37 AM
Hi @manuroman
These are the settings used in R for connecting to Impala , but still I am getting the same error.
library("rJava")
.jinit(parameters = c("-Xms6g", "-Xmx20g"))
library("RJDBC")
Do I need to change the settings somewhere else or within R?
Thanks,
Renuka K
Created 06-07-2018 11:08 PM
Created 06-15-2018 08:15 AM
Hi @manuroman,
We are getting this error sometimes and sometimes this doesnt show up for the same query.What might be the issue , any idea?
Thanks,
Renuka