본문 바로가기


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 'spa..
[PS] TwoSum Two Sum 문제 설명 문제는 간단 정수 배열과 target 이 들어오고 배열 중 2개의 요소 합이 target 을 만족하면 두 값의 인덱스를 출력하는 것 조건은 배열안에 무조건 만족하는 솔루션이 하나는 있고 똑같은 요소를 두번 사용하는 경우는 없다는 것 해결 1. 부르트 포스 public int[] twoSumEasy(int[] nums, int target) { for(int i = 0; i < nums.length; i++) { for(int j = i; j < nums.length; j++) { if(i==j) continue; if(nums[i] + nums[j] == target) { return new int[]{i,j}; } } } return new int[]{-1,-1}; } 티스토리..
[EEROR] java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml' 스프링 부트 띄우다가 에러남 고치는 방법 1. lint 체크 http://www.yamllint.com/ 문법이 틀릴 때도 이런게 나올 수 있다고해서 lint 체크를 한다. 2. application.yml 새로만들기 난 이방법으로 해결했다. 끝!