文章目录
一,zookeeper
##zookeeper:##
zkServer.sh start
zkCli.sh start
// 关闭:
zkServer.sh stop
zkCli.sh stop
二,hadoop
##hadoop:##
start-dfs.sh
start-yarn.sh
mr-jobhistory-daemon.sh start historyserver
## 关闭:
stop-dfs.sh
stop-yarn.sh
mr-jobhistory-daemon.sh stop historyserver
三,mysql
##Mysql:##
service mysqld start
systemctl start mysql[d]
## 关闭:
service mysqld stop
## 设置mysql开机启动
chkconfig mysqld on
四,hive
##hive:##
nohup hive --service metastore & >> nohup.out
nohup hive --service hiveserver2 & >> hiveserver2.out
beeline
!connect jdbc:hive2://node03:10000
关闭:
ps -ef | grep hive
kill -9 pid
五,kafka
##kafka:##
前台:
cd /export/servers/kafka_2.11-0.10.0.0
bin/kafka-server-start.sh config/server.properties
后台:
cd /export/servers/kafka_2.11-0.10.0.0
nohup bin/kafka-server-start.sh config/server.properties 2>&1 &
停止:
cd /export/servers/kafka_2.11-0.10.0.0
bin/kafka-server-stop.sh
消费数据:
bin/kafka-console-consumer.sh --zookeeper node01:2181 --from-beginning --topic vehicledata-dev
生产数据:
bin/kafka-console-producer.sh --broker-list node01:9092 --topic vehicledata-dev
删除topic:
./bin/kafka-topics.sh --delete --zookeeper node01:2181 --topic vehicledata-dev
bin/zkCli.sh -server node01:2181
rmr /brokers/topics/vehicledata-dev
六,hbase
##hbase:##
start-hbase.sh
hbase-daemon.sh start thrift
七,phoenix
##phoenix:##
/export/servers/apache-phoenix-5.0.0-HBase-2.0-bin/bin/sqlline.py
八,zeppelin
##zeppelin:##
/export/servers/zeppelin-0.8.0-bin-all/bin/zeppelin-daemon.sh start
/export/servers/zeppelin-0.8.0-bin-all/bin/zeppelin-daemon.sh stop
九,redis
##redis:##
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf
十,superset
##superset:##
/export/servers/superset-start.sh
十一,mongo
##mongo:##
/export/servers/mongodb-linux-x86_64-rhel70-3.4.24/bin/mongod &
停止
/export/servers/mongodb-linux-x86_64-rhel70-3.4.24/bin/mongod --shutdown
查看mongodb端口号
netstat -ntulp | grep 27017
查看mongdb数据库
find / -name "mongod.lock"
十一,flink
##flink:##
start-cluster.sh
十二,dolphinscheduler
##dolphinscheduler##
##后台服务##
$DOLPHINSCHEDULER_HOME/start-all.sh
##前台服务##
systemctl start nginx