Member since
06-22-2017
2
Posts
1
Kudos Received
0
Solutions
06-29-2017
07:14 PM
1 Kudo
BTW, I increased the "Binary column length" in the ODBC connection's advanced options, and now I am getting another error "[Hortonworks][Hardy] (71) Failed to establish connection with unknown error." It seems, for some reason, the server dropped the connection, but only for files >30 MB?
... View more
06-22-2017
08:42 PM
Hi folks, I was working on using C# to pull binary content from Hive over ODBC, but ran into an exception when the BLOB size is over 30MB. The query was straightforward and retrieves one record with BLOB content. Any thoughts? Thank you. DbDataReader dr = cmd.ExecuteReader();
while (dr.Read()) // Exception happened here when the BLOB content is over 30MB
{
if (dr != null)
{
report.id = dr.GetInt32(0);
report.date = Convert.ToDateTime(dr.GetString(1));
report.content = Convert.FromBase64String(handleBase64Length(dr.GetString(2)));
}
}
-$exception{"ERROR [HY000] [Hortonworks][Hardy] (35) Error from server: error code: '0' error message: 'Invalid OperationHandle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=18795eba-6e6f-4a66-930a-1da6a5ed4521]'."}System.Data.Odbc.OdbcException
... View more
Labels:
- Labels:
-
Apache Hive