Service ‘sparkDriver’ could not bind on a random free port. You may check whether configuring an appropriate binding address. 에러 해결하기

설치하고 잘 되던 apache spark가 갑자기 terminal에서 pyspark만 쳤는데도 또는 코드 상에서 spark context를 init하기만 해도, Service 'sparkDriver' could not bind on a random free port. You may check whether configuring an appropriate binding address. 와 같은 에러가 날 수가 있는데요,

해결방법은

terminal에서 hostname을 타이핑해서 나오는 이름을 /etc/hosts 파일에 아래와 같이 한 줄 추가해주면 됩니다.

127.0.0.1 <your hostname>

그러고 나서 다시 terminal에서 pyspark라고 치면 정상적으로 작동하는 것을 확인할 수 있습니다 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s