06 2023 档案
摘要:查看各节点磁盘使用情况 hdfs dfsadmin -report | grep -E "Name:|DFS Used%:" 集群平衡 mv balance.sh /home/hdfs/ su hdfs vim balance.sh chmod +x balance.sh ls hdfs dfsad
阅读全文
摘要:-- clickhouse 输出库中表结构 -- 输出所有表名 clickhouse client --host 1xx.xxx.xx.xx --user xx_xx --password xxxx --multiquery --query="use default;show tables;"> d
阅读全文
摘要:-- hive 输出库中表结构 -- 输出所有表名 hive -e "use xx;show tables;" > tables.txt vim echo_table.sh -- 输出所有表结构 #!/bin/bash echo 'use xx;' >> tablesDDL.sql cat tabl
阅读全文
摘要:clickhouse-client --host=xx.xxx.xx.xx --user=xxxxxxx --password=xxxxxxx -m -d 库名 --query " select b.member_no ,b.phone_number from ( SELECT entity_id
阅读全文