Skip to main content
dvillarreal
Gold ⭐️
May 18, 2016 6:00 AM UTC

Knox queries fail quickly with a 500 error

  • Oct 5, 2026 9:35 AM UTC
  • 2 replies
  • 6314 views
  • Translate All

SYMPTOM: Hive query through knox fails quickly with a a 500 error.

ERROR: You will find something like this in the gateway-audit.log

dispatch|uri|http://<hostname>:10000/cliservice?doAs=dav|success|Response status: 500

ROOT CAUSE: Size of query being sent is larger than default replayBufferSize.

RESOLUTION: Change your topology to contain the following parameter in the service that is having the issue.

<param><name>replayBufferSize</name><value>16</value></param>

For example if I had this issue in hive it would look something like:

<service>
<role>HIVE</role>
<url>$HTTP_SCHEME://$HIVE_HOST:10001/cliservice</url>
<param><name>replayBufferSize</name><value>16</value></param>
</service>

The Value of the replayBufferSize is in KB and has a default of 8KB. Make sure the value is larger than your largest query size in order to get past this issue.

2 replies

xw0927
Silver ⭐️⭐️
Oct 24, 2016 9:46 PM UTC

I'm having same issue, how do you check size of query?

Translate
dvillarreal
Gold ⭐️
Oct 25, 2016 6:26 AM UTC

Hi Jennie, You can just pull the query out to a file and check how big the file is.

Translate