In case you are using MacOs Monterey. They introduce a new feature of airplay receiver which uses port 5000 and 7000. However 7000 is used in pinot server query port by default for Quickstart.
The resolution is to disable this feature in System Preference -> Sharing -> uncheck AirPlay Receiver