When running MSQ queries we are not seeing any iss...
# troubleshooting
a
When running MSQ queries we are not seeing any issues in various stages, including
exportResults
, but notice that files exported to s3 have truncated rows. When same MSQ queries are configured to export results locally, we are able to see all rows in all files. Below are druid properties configured for MSQ setup. Please check and provide pointers to fix the issue. Thanks in advance
Copy code
druid.extensions.loadList:  '["/opt/druid/extensions/maha-druid-lookups","/opt/druid/extensions/druid-datasketches", "/opt/druid/extensions/druid-avro-extensions","/opt/druid/extensions/druid-s3-extensions", "/opt/druid/extensions/mysql-metadata-storage", "/opt/druid/extensions/druid-kafka-indexing-service","/opt/druid/extensions/druid-orc-extensions","/opt/druid/extensions/druid-multi-stage-query","/opt/druid/extensions/statsd-emitter"]'
  "druid.msq.intermediate.storage.enable": "true",
  "druid.msq.intermediate.storage.type": "s3",
  "druid.msq.intermediate.storage.bucket": "{{aws_account_id}}-demand-reporting-druid-prod-{{ aws_region}}",
  "druid.msq.intermediate.storage.prefix": "reports",
  druid.msq.intermediate.storage.tempDir: '/data/msq'
  druid.export.storage.s3.tempLocalDir: '/tmp/msq'
  druid.export.storage.s3.allowedExportPaths: '["s3://demand-reporting-asyncreports-druid-prod/export/"]'
  druid.export.storage.s3.chunkSize: 500MiB
j
Your generated task logs should have more information on what is happening when truncation is occurring. Post any relevant WARN or ERROR messages for the export phase here. Have you tried increasing the chunkSize temporarily from 500MiB to 1GB?
a
Thanks @Jae Calanog will try. I am using druid 29v and I came across this PR, https://github.com/apache/druid/pull/16381 there is issue of overwriting s3 export files due to some bug with extension. Could this be reason for truncation, and only way to fix it is upgrading to version > 30
k
yup.
Or you could maintain your own fork which is not scalable in the long run.
a
Didn’t get, could you please explain
@Jae Calanog @Karan Kumar is there way for us to use msq extension belonging to 30v and above with Druid 29v. I see extension has dependencies on Druid 30v, but is there way we can install extension and modify https://mvnrepository.com/artifact/org.apache.druid.extensions/druid-multi-stage-query/30.0.0
k
That is very risky
What I maant is you fork the druid repo and then backport specific changes to Druid 29 branch then build your own druid
Its much easier to upgrade tbh
a
any breaking changes when moving from druid 29v to 30v @Karan Kumar. Thanks in advance
k
You can find that in the release notes. If you are upgrading, upgrade to the latest Druid 34 which will sort you out for another few years.