随笔分类 -  shell

摘要:cpu信息 dmidecode -t processor # dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0400, DMI type 4, 42 bytes Processor Informa 阅读全文
posted @ 2021-12-13 11:18 Mr-Sorry 阅读(346) 评论(0) 推荐(0)
摘要:./bin/spark-sql -e "select count(1),count(distinct ip),substr(url,0,44) from tongji_log where domain ='xxx.com' and ds ='20170303' group by substr(url 阅读全文
posted @ 2017-04-18 16:36 Mr-Sorry 阅读(1521) 评论(0) 推荐(0)
摘要:spark提交jar包时候会传到所有节点work文件夹,提交的jar包占用主从服务器空间很大, 所以有两种办法: 1.将jar包传到hdfs(hdfs没玩熟,以后研究) 2.jar包传到主节点,同步到从节点 找了一下资料inotify可以监听文件,但是使用时会有重复通知,引起多次重复同步, 此脚本使 阅读全文
posted @ 2017-04-11 11:13 Mr-Sorry 阅读(326) 评论(1) 推荐(0)