How to test Kafka connectivity from a Databricks notebook

brickster_2018
Databricks Employee
Databricks Employee

My structured streaming job is failing as it's unable to connect to Kafka. I believe the issue is with Spark. How can I isolate if it's a Spark library issue or an actual network issue.