전체 글
-
Airflow Slack 연동Airflow 2024. 7. 9. 18:24
Airflow - Slackairflow에서 성공, 실패시 slack으로 알림을 받기 위해 작성한다. 현재 내 잡은 이렇게 되어 있고, 실패시 알림을 받고 있다.task 명과 내가 받은 알림의 task가 다른 예시용이니 참고 바란다.[태스크 상세] 버튼을 누르면 airflow log로 한 번에 이동할 수 있다. 이제부터 airflow - slack 설정하는 방법을 알아보자. Airflow 설정Airflow UI > Admin > Connections 에 들어가 connection을 위한 정보를 입력Webhook Token은 본인이 만든 slack api에서 볼 수 있다. (https://api.slack.com/apps) Slack Alert Classfrom airflow.providers.slack..
-
36. Valid SudokuLeetcode 2024. 4. 13. 16:47
Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the digits 1-9 without repetition. Each column must contain the digits 1-9 without repetition. Each of the nine 3 x 3 sub-boxes of the grid must contain the digits 1-9 without repetition. Note: A Sudoku board (partially filled) could be valid but is not n..
-
35. Search Insert PositionLeetcode 2024. 4. 13. 16:44
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. Example 1: Input: nums = [1,3,5,6], target = 5 Output: 2 Example 2: Input: nums = [1,3,5,6], target = 2 Output: 1 Example 3: Input: nums = [1,3,5,6], target = 7..
-
hadoop MRHADOOP 2022. 10. 17. 14:20
hadoop3 기준으로 설명 1. hadoop MR 실행하기 위한 기본 쉘 파일 ${HADOOP} --config ${HADOOP_CONF_DIR} jar ${JAR_PATH} \ -files "argvs, mapper.py, reducer.py" \ -D mapreduce.job.name="test job" \ -D mapreduce.job.reduces=1 \ -D mapreduce.reduce.memory.mb=40960 \ -D stream.num.map.output.key.fields=1 \ -D stream.map.output.field.separator="\t" \ -D mapreduce.job.output.key.comparator.class=org.apache.hadoop.mapred.l..
-
30. Substring with Concatenation of All WordsLeetcode 2021. 6. 21. 11:33
You are given a string s and an array of strings words of the same length. Return all starting indices of substring(s) in s that is a concatenation of each word in words exactly once, in any order, and without any intervening characters. You can return the answer in any order. Example 1: Input: s = "barfoothefoobarman", words = ["foo","bar"] Output: [0,9] Explanation: Substrings starting at inde..