1.大数据软件:
hadoop
hdfs
zookeeper(zk)
elasticsearch(es)
spark
kafka
kibana
flink
flume
storm
yarn
rabbitmq
MapReduce
hive
HBase
~~~
zookeeper:
1.查看版本:
sh zkServer.sh version
2.查看角色:
for i in `cat zoo.cfg| grep -i server| awk -F '=' '{print $2}' |awk -F ':' '{print $1}'`; do echo === $i === &&echo mntr | nc $i 2181 | grep zk_server_state;done
~~
elasticsearch:
3.查看健康状态:
curl http://esip:9200/_cat/health?v
4.查看节点:
curl http://esip:9200/_cat/nodes?v
5.查看集群使用的磁盘空间信息:
curl http://esip:9200/_cat/allocation?v
6.查看索引:
curl http://esip:9200/_cat/indices?v
7.查看分片:
curl http://esip:9200/_cat/shards?v
8.查看集群状态:
curl -Ss http://esip:9200/_cluster/health?pretty| grep -i status
要是green,证明集群状态正常。
~~
kafka:
查看kafka的数据:
9./kafka-topics.sh --zookeeper x.x.x.x:2181 --describe --topic $topic_name
10.查看kafka主题:
./kafka-topics.sh --zookeeper x.x.x.x:2181 --list
11.查看kafka消费者:
./kafka-consumer-groups.sh --zookeeper x.x.x.x:2181 --list
12.查看kafka的broker:
./zookeeper-shell.sh x.x.x.x:2181 ls /brokers/ids
./zookeeper-shell.sh x.x.x.x:2181 get /brokers/ids/N
13.查看topic的写入偏移量:
./kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list x.x.x.x:9092 --topic $topic_name --time -1
14.列出所有消费者组的信息:
sh kafka-consumer-groups.sh --bootstrap-server x.x.x.x:9092 --list
~~~
消息队列rabbitmq:
15.查看集群状态:
rabbitmqctl cluster_status
日出时候
鼓励的话语:生命,不是按年龄顺序离场,而是随时都可以落幕。所以我们要过好的,不是一辈子,而是每一天!