본문 바로가기


Spark

Mac OS 에서 Spark 설치하기

 

 

방법은 홈페이지에서 설치하는 것과 Homebrew 를 사용하는 방법이 있는데 brew 로 설치할 것이다.

 

$ brew install apache-spark
$ spark-shell

혹시나 다음과 같은 에러 발생 시

22/02/08 23:25:27 ERROR SparkContext: Error initializing SparkContext.
java.net.BindException: Can't assign requested address: Service 'sparkDriver' 
failed after 16 retries (on a random free port)! Consider explicitly setting 
the appropriate binding address for the service 'sparkDriver' (for example spark.driver.bindAddress for SparkDriver) to the correct binding address.

 

$ sudo hostname -s 127.0.0.1

를 입력하면 해결된다.

 

 

 

'Spark' 카테고리의 다른 글

[airflow] Mac OS airflow 설치  (0) 2023.01.18