2023-10-01ãã1ã¶æéã®è¨äºä¸è¦§
â ã¯ããã« Airflow ã§ãTask éã§å¤ãåã渡ãéã«å¿ è¦ãª XComs ã«ã¤ã㦠å¤ã触ãããã¨ã«ãªããããªã®ã§ãã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãXComs ãï¼ãé¢é£ããAPI ï¼ï¼xcom_push ï¼ï¼xcom_pull ãï¼ããµã³ãã« ä¾ï¼ï¼Airflow v1 ä¾ï¼ï¼Airflow v2 ãï¼ãXComs â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2021/10/04/230703 ã§ãS3 Sensorãåãæ±ã£ãã Apache Airflow ã® Sensor (ã»ã³ãµ) èªä½ãæ±ããã¨ã«ãªã£ãã®ã§ ã¡ã¢ãã ç®æ¬¡ ãï¼ãSensor ãï¼ã主ãªSensor ï¼ï¼ExternalTaskSensor ï¼ï¼FileSensor â¦
â ã¯ããã« Scalaã§é«éé¢æ°ï¼ããããããããï¼ãç¥ãæ©ä¼ããã£ãã Pythonã§ãfunctoolsã¢ã¸ã¥ã¼ã«ã§æ±ããã¨ã®ãã¨ãªã®ã§ ã¡ã¢ã£ã¦ã¿ãã ç®æ¬¡ ãï¼ãé«éé¢æ° (Higher-Order Functions) ãï¼ãfunctools ãï¼ãcache ï¼ï¼@cache ï¼ï¼@cached_property â¦
â ã¯ããã« MWAA Local 㧠AWSã«ç¹ããããã«ããå¿ è¦ãã§ããã®ã§ã¡ã¢ã ãã¨ãå人çãªãã¨ã§ä½æ¥ãç°¡åã«ãªãããã« MWAA Local ãã¡ããã£ã¨æ¹é ãã ç®æ¬¡ ãï¼ãMWAA Local 㧠AWSã«ç¹ããããã«ããã«ã¯ Caseï¼ï¼docker/config/.env.localrunner ã«è¿½â¦
â ã¯ããã« Python 㧠Snowflake ã® éåæã¯ã¨ãªãå®è¡ãããã¨ã«ãªã£ãã®ã§ ãããæ©ã«Pythonç¨Snowflakeã³ãã¯ã¿ãå¦ãã§ã¿ã ç®æ¬¡ ãï¼ãPythonç¨Snowflakeã³ãã¯ã¿ ãï¼ãç°å¢è¨å® ãï¼ãåæã¯ã¨ãªå®è¡ ï¼ï¼ãµã³ãã« ï¼ï¼é¢é£ããAPI ãï¼ãéåæã¯ã¨â¦
â ã¯ããã« å°ãã¿ã Apache Kafkaã§DB/Schemaãåãæ¿ããæ¹æ³ã«ã¤ãã¦ã¡ã¢ã ãï¼ãKafkaã§DB/Schemaãåãæ¿ããã«ã¯ * Topic ã [DB].[Schema].[Table] ã®ããã«ãã ãï¼ãå½±é¿ããç¹ ï¼ï¼Kafkaã®è¨å® topics # topics=db_name # ä¿®æ£å # topics=[DB].â¦
â ã¯ããã« bashã«ããæååç½®æãã¡ã¢ã ãï¼ãbashã«ããæååç½®æ ãã¼ã¹ã«ã¯ã 以ä¸ã®é¢é£è¨äºã§æ±ã£ã sedã³ãã³ããªã© ã§ã¯ãªãæ¹æ³ãbashã«ããæååç½®æãã使ã£ã¦ãã awkã³ãã³ã https://dk521123.hatenablog.com/entry/2019/11/22/223043 sedâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/10/22/220717 ã§Kafka / Kafka connect ãè¨å®ããã®ã§ ç°¡æçã«ãkafka-python ã使ã£ã¦ãHello worldããã£ã¦ã¿ã ç®æ¬¡ ãï¼ãåææ¡ä»¶ ãï¼ãç°å¢è¨å® ãï¼ãããã¥ã¡ã³ã ãï¼ããµã³ãã« ä¾ï¼ï¼Pâ¦
â ã¯ããã« å°ãã¿ï¼æ¬å½ã«ã¡ã¢ï¼ã Kafka ã® ãªã¢ã¼ããããã°ã«ã¤ãã¦è§¦ããã®ã§ãã¡ã¢ã ãï¼ãç°å¢å¤æ° https://github.com/ppatierno/kafka-connect-amqp/blob/master/README.md#debugging export KAFKA_DEBUG=y export DEBUG_SUSPEND_FLAG=y https://gâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/04/23/235534 https://dk521123.hatenablog.com/entry/2023/04/24/153846 ã§ãKafkaã®ç°å¢æ§ç¯ãè¡ã https://dk521123.hatenablog.com/entry/2023/08/11/220921 ã§ãKafka Connectã®ç°å¢æ§ç¯ãDockeâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2021/11/05/233309 https://dk521123.hatenablog.com/entry/2021/11/07/132014 ã®ç¶ãã AWS MWAAã使ããã¨ã«ãªãã éçºç°å¢ã¨ãã¦ãMWAA Local (aws-mwaa-local-runner)ã 使ããã¨ã«ãªãã¨ã®ãã¨ãªã®â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2019/10/12/075251 ããã®ååã æååæä½ã«ã¤ãã¦ãã¡ã¢ã ç®æ¬¡ ãï¼ãç½®æ / é¤å» ï¼ï¼replace ï¼ï¼removeprefix / removesuffix (From Python3.9) ãï¼ãåå² ï¼ï¼split ï¼ï¼rsplit ãï¼ãé£çµ ï¼ï¼jâ¦
â ã¯ããã« ãã¼ã«ã«ç°å¢ã®Kafkaã§ã¯ã¾ã£ããã©ãã«ã«ã¤ã㦠ã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãä»åã®æè¨ ãï¼ãã¨ã©ã¼ãDataException: JsonConverter with schemas.enable requiresããçºçãã ãï¼ãã¨ã©ã¼ãSQLException: No suitable driver found for ...ãâ¦
â ã¯ããã« æ¥åã§ãkafka-consumer-groups.sh ã使ã£ãã®ã§ Consumer ã Consumer Group ã«ã¤ãã¦ã å¾ã ã«ã§ã¯ãããã¾ã¨ãã¦ã¿ã ç®æ¬¡ ãï¼ãConsumer (Subscriber) ãï¼ãConsumer Group ãï¼ãKafka Command-Line Interface (CLI) Tools ï¼ï¼kafka-consâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2015/01/26/000000 ã§ãAntã«ã¦patch ãå½ã¦ããã¨ã大æã«ãã£ãã Linuxã³ãã³ãã§ãããã¨ã«ãªã£ãã®ã§ãã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãdiffã³ãã³ãï¼å·®åãã¡ã¤ã«ä½ææ¹æ³ ï¼ï¼ãªãã·ã§ã³ ãï¼ãpatchã³ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/01/24/000000 ã§è¿°ã¹ãéããScala ã«ã¯ã break / continue ãåºæ¬ä½¿ç¨ããªãã ããã§ã©ãããããçºãã ç®æ¬¡ ãï¼ãbreak / continue ã®ä»£æ¿æ¡ ï¼ï¼break ã®ä»£æ¿æ¡ ï¼ï¼continue ã®ä»£æ¿æ¡ ãï¼ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2020/06/17/173717 https://dk521123.hatenablog.com/entry/2020/07/15/162459 ã®ç¶ãã Lake Formation + Athena ã®ãã¼ã¿ã¢ã¯ã»ã¹èª¿æ»ã®ä¸ç°ã§ AWA Athena ï¼ã¢ããï¼ã«é¢é£ããAWS CLI ã使ã£ãã®ã§ ã¡â¦
â ã¯ããã« Scalaã®ã¢ã¸ã¥ã¼ã«ãJARãã¡ã¤ã«åã㦠JAVAããå ¥ã£ã¦ããªãç°å¢ã§å®è¡ããã£ã¦ãã¨ããã£ã¦ã㦠æå¤ã¨æéåã£ãã®ã§ãã¡ã¢ã ç®æ¬¡ ãï¼ãåææ¡ä»¶ ï¼ï¼sbt å«ã Scala ç°å¢ ï¼ï¼sbtãã©ã°ã¤ã³ãsbt-assemblyã ãï¼ãJARä½æ ï¼ï¼ä½æã³ãã³â¦
â ã¯ããã« ä»åã¯ãScala ã§ä¹±æ°ãã©ã³ãã æååã«ã¤ãã¦ã¾ã¨ãã¦ã¿ã ç®æ¬¡ ãï¼ãUUID ä¾ï¼ï¼java.util.UUID ãï¼ãä¹±æ° ä¾ï¼ï¼scala.util.Random ãï¼ãUUID ä¾ï¼ï¼java.util.UUID * Javaã®UUIDã使ã => çµå±ããããä¸çªããã©ããªã => 以ä¸ã®é¢é£è¨â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/03/03/000000 ã§ãScala ã® ã¡ã½ãã ã«ã¤ãã¦æ±ã£ãã ä»åã¯ãScala ã® é¢æ° ã«ã¤ãã¦æ±ãã ç®æ¬¡ ãï¼ãé¢æ° (Function) ãï¼ãç¨èªæ´ç ï¼ï¼ç¡åé¢æ° / å¿åé¢æ° / é¢æ°ãªãã©ã« (Function literâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/03/16/012034 https://dk521123.hatenablog.com/entry/2023/04/04/000733 ã®ç¶ãã ä»åã¯ãScala 㧠TOMLãã¡ã¤ã«ã®æ±ãã«ã¤ãã¦ã¾ã¨ãã TOML https://dk521123.hatenablog.com/entry/2023/04/25/1â¦
â ã¯ããã« ã¯ã©ã¹å³ãæ¸ãããã«UMLetã使ãå§ããã®ã§ã¡ã¢ ç®æ¬¡ ãï¼ãUML Sequence Diagram Online Tool ãï¼ãUMLet ãï¼ãDraw.io ãï¼ãMiro ãï¼ãUML Sequence Diagram Online Tool * 以ä¸ã®ãµã¤ãã«ã¢ã¯ã»ã¹ããã¨ã·ã¼ã±ã³ã¹å³ãä½æã§ãã https:/â¦
â ã¯ããã« Scala ã® ä¾å¤å¦çã«ã¤ãã¦æ±ãã åºæ¬ãJavaã«è¿ãããScalaç¹æã®æ©è½ãããã ãªããOption / Either ã«ã¤ãã¦ã¯ã以ä¸ã®é¢é£è¨äºãåç §ã®ã㨠Scala ï½ åºæ¬ç·¨ / Optionå ï½ https://dk521123.hatenablog.com/entry/2023/03/09/000000 Scalaâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/10/03/212007 ã®ç¶ãã Flinkã«ãã Lake Formationã¨ã®æ¥ç¶ã ChatGPT ã§ãµã³ãã«ã³ã¼ãåºãã¦ããã£ããï¼ï¼ ç®æ¬¡ ãï¼ãTable API & SQL ï¼ï¼Table API ï¼ï¼SQL ï¼ï¼Catalogs ãï¼ãæºå - ä¾åã©â¦
â ã¯ããã« Flinkã«ãã Lake Formationã¨ã®æ¥ç¶ã調ã¹ãéã« DataStream API ãåè£ã«æãã£ãã®ã§èª¿ã¹ã¦ã¿ã ç®æ¬¡ ãï¼ãDataStream API ï¼ï¼å ¬å¼ããã¥ã¡ã³ã ï¼ï¼ä¸è¬ãµã¤ã ãï¼ãæºå - ä¾åã©ã¤ãã©ãª - ï¼ï¼sbt ãï¼ããµã³ãã« ä¾ï¼ï¼Hello World ãâ¦
â ã¯ããã« WSL + Python æã§ã®ãã©ãã«ã«ã¤ãã¦ã¾ã¨ãã ãï¼ãã¨ã©ã¼ãbad interpreterãã表示 pip install ãããã¨ããéã«ã¨ã©ã¼ãbad interpreterã ï¼ï¼ã¨ã©ã¼å 容 bash: /mnt/c/Users/user/.pyenv/pyenv-win/shims/pip: /bin/sh^M: bad interpreteâ¦