出现错误:

WARN component.AbstractLifeCycle: FAILED SelectChannelConnector@0.0.0.0:4040: java.net.BindException: Address already in use


可以考虑使用以下配置解决:

--conf spark.ui.port=your_port