岚天逸见

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 78 下一页

2023年8月15日 #

chatGPT用C++写的HMAC-SHA256函数

摘要: 以下内容全为 chatGPT 生成: ```cpp #include #include #include #include std::string hmac_sha256(const std::string &key, const std::string &data) { unsigned char 阅读全文

posted @ 2023-08-15 15:58 岚天逸见 阅读(385) 评论(0) 推荐(0)

2023年7月27日 #

C++不同标准兼容性问题集

摘要: * **特化模板兼容性** 下列代码在 c++17 及之前都是可以的,但从 c++20 开始编译报语法错误: ```cpp // g++ -g -std=c++20 -o x x.cpp;./x #include #include template struct X { X(type t) { th 阅读全文

posted @ 2023-07-27 09:42 岚天逸见 阅读(107) 评论(0) 推荐(0)

2023年7月25日 #

使用gcc-13.1.0编译安装thrift-0.18.1

摘要: 执行 configure 生成 Makefile,排除掉不需要的语言支持和测试等: ```bash ./configure --prefix=/usr/local/thrift-0.18.1 --with-boost=/usr/local/boost --with-libevent=/usr/loc 阅读全文

posted @ 2023-07-25 17:07 岚天逸见 阅读(105) 评论(0) 推荐(0)

2023年7月24日 #

一键编译和安装 gcc 脚本

摘要: 直接执行即可,执行前需要确保机器上的 wget、gunzip、bunzip2、cmake 可用。 一键编译和安装 gcc 脚本:[install_gcc_tool.sh](https://github.com/eyjian/libmooon/blob/master/shell/install_gcc 阅读全文

posted @ 2023-07-24 19:29 岚天逸见 阅读(188) 评论(0) 推荐(0)

mpc库问题导致gcc编译失败

摘要: 使用 mpc-1.3.0 编译 gcc-13.1.0,执行 gcc 的 configure 时遇到如下错误: ``` checking for the correct version of gmp.h... yes checking for the correct version of mpfr.h 阅读全文

posted @ 2023-07-24 15:24 岚天逸见 阅读(534) 评论(0) 推荐(0)

2023年7月13日 #

librdkafka的rdk:broker-1线程cpu百分百问题分析

摘要: 问题调用栈: ``` (gdb) bt #0 0x000000000068307c in rd_kafka_q_pop_serve (rkq=0x1ff31a0, timeout_ms=, version=version@entry=0, cb_type=cb_type@entry=RD_KAFKA 阅读全文

posted @ 2023-07-13 16:59 岚天逸见 阅读(156) 评论(0) 推荐(0)

2023年5月31日 #

Hudi表创建时HDFS上的变化

摘要: SparkSQL 建 Hudi 表语句: ```sql CREATE TABLE t71 ( ds BIGINT, ut STRING, pk BIGINT, f0 BIGINT, f1 BIGINT, f2 BIGINT, f3 BIGINT, f4 BIGINT ) USING hudi PAR 阅读全文

posted @ 2023-05-31 17:26 岚天逸见 阅读(201) 评论(0) 推荐(0)

2023年5月30日 #

Hudi表类型和查询类型

摘要: ### 官方参考 [Table & Query Types](https://hudi.apache.org/cn/docs/next/table_types) ### 查询类型 * **快照查询(Snapshot Queries)** 查询最新的数据。 * **增量查询(Incremental Q 阅读全文

posted @ 2023-05-30 12:39 岚天逸见 阅读(193) 评论(0) 推荐(0)

Hudi的OverwriteNonDefaultsWithLatestAvroPayload效果测试

摘要: 设置 Payload 为 OverwriteNonDefaultsWithLatestAvroPayload: ```sql set `hoodie.datasource.write.payload.class`=`org.apache.hudi.common.model.OverwriteNonD 阅读全文

posted @ 2023-05-30 10:44 岚天逸见 阅读(101) 评论(0) 推荐(0)

2023年5月25日 #

Python求前后第n个月函数

摘要: 数据分析常用到: ```python # 求往后第 n 个月 # monthstr 格式:YYYY-MM # # print next_month("2023-05", 1) # 2023-06 # print next_month("2023-05", 6) # 2023-11 # print n 阅读全文

posted @ 2023-05-25 22:24 岚天逸见 阅读(57) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 78 下一页

导航