摘要: 查看各节点磁盘使用情况 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 阅读全文
posted @ 2023-06-27 10:53 star521 阅读(148) 评论(0) 推荐(0) 编辑
摘要: -- clickhouse 输出库中表结构 -- 输出所有表名 clickhouse client --host 1xx.xxx.xx.xx --user xx_xx --password xxxx --multiquery --query="use default;show tables;"> d 阅读全文
posted @ 2023-06-27 10:48 star521 阅读(742) 评论(0) 推荐(0) 编辑
摘要: -- hive 输出库中表结构 -- 输出所有表名 hive -e "use xx;show tables;" > tables.txt vim echo_table.sh -- 输出所有表结构 #!/bin/bash echo 'use xx;' >> tablesDDL.sql cat tabl 阅读全文
posted @ 2023-06-27 10:45 star521 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2023-06-27 10:38 star521 阅读(182) 评论(0) 推荐(0) 编辑