BentoMLApache Spark

AttributeError in batch inference when using bentoml.batch.run_in_spark

critical
configurationUpdated Mar 24, 2026
How to detect:

AttributeError occurs during batch inference with bentoml.batch.run_in_spark: 'APIMethod' object has no attribute 'input'

Recommended action:

Verify the BentoML API method definition includes proper input specification. Check Spark integration code for correct APIMethod usage. Review batch inference configuration to ensure compatibility with Spark runner.