Video Stream Processor 环境配置

1. 环境配置

参考前面的几篇博客:
Spark 安装.md
kafka安装.md
zookeeper安装.md
注意:
Check “processed.output.dir” property in “stream-processor.properties” file. Create and set directory path for this property.
Set “stream-processor.log” file path in “log4j.properties” file.
这两步根据自己需要修改。

2. Make sure Zookeepr and Kafka servers are up and running.

  1. 启动Zookeeper服务器
    执行
zkServer.cmd

Video Stream Processor 环境配置_第1张图片

  1. 启动kafka 服务器
    进入kafka安装目录,执行
kafka-server-start.bat .\config\server.properties

Video Stream Processor 环境配置_第2张图片
完成启动

3. Run “mvn clean” command to install opencv-320.jar in local maven repository

mvn clean 

4. Execute below command to start the Video Stream Processor" application

mvn clean package exec:java -Dexec.mainClass="com.iot.video.app.spark.processor.VideoStreamProcessor"

你可能感兴趣的:(大数据,spark)