03 2024 档案

摘要:由于linux的tar命令不支持批量解压,所以很多网友编写了好多支持批量解压的shell命令,收集了一下,供大家分享: 第一:使用for遍历压缩文件,使用tar命令逐个解压 for tar in *.tar.gz; do tar xvzf $tar; done for tar in *.tar.bz 阅读全文
posted @ 2024-03-22 11:16 业余砖家 阅读(1674) 评论(0) 推荐(0) 编辑
摘要:1、system.cluster 该表记录可用的集群以及其中的服务器信息。 cluster (String) — 集群名称。shard_num (UInt32) — 集群分片数,从1开始。shard_weight (UInt32) — 写入数据时分片的相对权重。replica_num (UInt32 阅读全文
posted @ 2024-03-20 14:56 业余砖家 阅读(215) 评论(0) 推荐(0) 编辑
摘要:1.停止ClickHouse服务 sudo service clickhouse-server stop 2.删除所有的数据和日志文件 sudo rm -rf /var/lib/clickhouse/ sudo rm -rf /var/log/clickhouse-server/ 3.如果你使用的是 阅读全文
posted @ 2024-03-19 10:23 业余砖家 阅读(518) 评论(0) 推荐(0) 编辑
摘要:一、任务占用资源计算 executor占用CPU = executor_instances * executor_cores * 10 * 0.8(0.1核) executor占用内存 = executor_instances * (executor.memory + max(executor.me 阅读全文
posted @ 2024-03-15 18:51 业余砖家 阅读(896) 评论(0) 推荐(0) 编辑
摘要:背景说明 Spark SQL 还包括一个数据源,该数据源可以使用 JDBC 从其他数据库读取数据。这 功能应优先于使用 JdbcRDD。 这是因为返回了结果 作为 DataFrame,它们可以很容易地在 Spark SQL 中处理或与其他数据源联接。 JDBC 数据源也更易于从 Java 或 Pyt 阅读全文
posted @ 2024-03-14 23:28 业余砖家 阅读(1009) 评论(0) 推荐(0) 编辑
摘要:安装方式1 wget http://python-distribute.org/distribute_setup.py sudo python distribute_setup.py wget https://github.com/pypa/pip/raw/master/contrib/get-pi 阅读全文
posted @ 2024-03-07 18:18 业余砖家 阅读(65) 评论(0) 推荐(0) 编辑
摘要:要在MySQL中开启二进制日志(Binlog),可以按照以下步骤操作: 打开 MySQL 配置文件 my.cnf。该文件通常位于 /etc/my.cnf、/etc/mysql/my.cnf 或者 /usr/local/mysql/my.cnf。 查找并编辑 [mysqld] 部分的内容。如果没有这个 阅读全文
posted @ 2024-03-01 17:42 业余砖家 阅读(715) 评论(0) 推荐(0) 编辑
摘要:Trino安装使用及权限控制 https://blog.csdn.net/shy_snow/article/details/130523338 阅读全文
posted @ 2024-03-01 15:32 业余砖家 阅读(65) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示