运维101

作者: 开水的杯子 | 来源:发表于2017-01-17 05:16 被阅读44次

Rundeck

一般经常要跑的job,如果需求比cron复杂,便用这个跑。

http://rundeck.org/docs/index.html
http://rundeck.org/docs/administration/index.html
http://rundeck.org/docs/manual/index.html

比较有用的Bash指令

lsof -i :4443

用这个判定4443port上的听众是何程序。

df

用这个来判定硬盘上剩余多少空间。

df

Filesystem    512-blocks      Used Available Capacity  iused   ifree %iused  Mounted on
/dev/disk1     234610688 206268368  27830320    89% 25847544 3478790   88%   /
devfs                657       657         0   100%     1138       0  100%   /dev
map -hosts             0         0         0   100%        0       0  100%   /net
map auto_home          0         0         0   100%        0       0  100%   /home

判定某regex的所有文件大小之和

hdfs dfs -ls path/prefix-* | awk '{s+= $3} END {print s}'

ls -lGrt
用这个来一眼看到本文件夹里最近更新的文件是谁,各个文件都是什么大小。

ls -lGrt
total 16
-rw-r--r--  1 root  staff  12 Jan 16 13:14 test1
-rw-r--r--  1 root  staff   9 Jan 16 13:14 test2
​```

Change newlines to commas, and quote the words. 

cat [filename.txt] | tr '\n' ', ' | sed 's/,/","/g'


Reverse search bash history: 
`ctrl+r`

Compare 2 files: 

function compare {
comm <(sort "$1") <(sort "$2")
}


Convert excel to csv: 

ls *.xls | while read t; do xlsx $t | tail -n +2 > $t.sth.csv; done


Find a file in the current directory with the name "something". 
` find . -name "something" `

You can suppress hadoop logs by editing the `hadoop-env.sh` or `log4j.properties` files within `/etc/hadoop/conf`. However, I haven't quite found how to do it for a single command. 

http://hadooptutorial.info/suppress-warning-messages-in-hadoop/

相关文章

  • 运维101

    Rundeck 一般经常要跑的job,如果需求比cron复杂,便用这个跑。 http://rundeck.org/...

  • Linux运维发展与学习路线笔记

    1.云计算运维、大数据运维、运维开发、应用运维、系统运维架构师、Linux系统运维。 2.20-35K:两年以上L...

  • 01_1_Linux云计算岗位的发展前景

    Linux运维岗位:Linux系统运维工程师、应用运维工程师、运维开发工程师、云计算运维工程师、大数据运维工程师、...

  • 也谈运维

    运维分三个层次:设备运维、架构运维和业务运维。设备运维是指维护操作系统和网络环境,例如保持系统更新;架构运维是指维...

  • 运维

    1.运维是什么? 运维可以是什么?全栈?开发? 运维(Operation and maintenance)运维是一...

  • Hadoop相关文章索引(2)——Hadoop运维主题

    hadoop运维笔记1 Hadoop集群日常运维 Hadoop运维经验杂谈 Hadoop运维笔记 之 调整hdfs...

  • zabbix如何导出Excel电子表格运行报表

    运维报告的编写、巡检报告编制、运维资产统计、运维性能报告编写等均是运维人员的常态化工作之一。如何高效的编写运维报告...

  • 运维思索:运维规范如何生成?

    运维框架 运维思考:运维管理与运维自动化[http://mp.weixin.qq.com/s?__biz=MzA4...

  • Linux云计算岗位的发展前景笔记

    liunx岗位: liunx系统运维工程师、应用运维工程师,运维开发工程师,大数据运维工程师,云计算运维工程师,系...

  • 2018-11-22

    运维的相关概念 1.运维的概念 首先从运维的基本概念了解,运维指的是互联网运维,通常属于技术部门,...

网友评论

      本文标题:运维101

      本文链接:https://www.haomeiwen.com/subject/ozczvttx.html