Minions初始化手册✋
kill所有进程
启动zooKeeper
zookeeper>bin ./zkServer.sh start
- 启动Kafka(后台)
kafka> bin/kafka-server-start.sh -daemon $KAFKA_HOME/config/server.properties
- 启动两个flume
- 对接Python产生的伪日志
- 对接前端埋点的数据
1 | //页面浏览日志 agent |
- 启动Hadoop
- DataNode
- SecondaryNameNode
- NameNode
1 | hadoop/sbin> ./start-dfs.sh |
- 启动HBase
- HMaster
- HRegionServer
bin> ./start-hbase.sh
1 | ./hbase shell |
- 启动spark作业
- MyStreamingApp : 统计访问量
- KafKaStreamingApp : 处理前端埋点数据(hello_ladygaga_topic)
1 | spark-submit --master local[5] --jars $(echo /home/hadoop/app/hbase-1.2.0-cdh5.7.0/lib/*.jar | tr ' ' ',') --class com.chaoyue.spark.project.scala.MyStreamingApp --packages org.apache.spark:spark-streaming-kafka-0-8_2.11:2.2.0 /home/hadoop/lib/sparktrain-1.0.jar hadoop000:2181 test streamingtopic 1 |
- 启动Springboot后端和react前端