-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme_version.txt
49 lines (38 loc) · 968 Bytes
/
readme_version.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Linux: Ubuntu 16.04
Spark: without2 hadoop 2.4.0
Scala: 2.11.12
kafka: 0.8.2.2
Java: 1.8.0
spark-streaming-kafka: 0-8_2.11-2.4.0
hadoop:2.7.1
Python: 3.5
Flask: 0.12.1
Flask-SocketIO: 2.8.6
kafka-python: 1.3.3
#set up spark
cd /usr/local/spark
./bin/spark-shell --master local[2]
# check topic:
bin/kafka-topics.sh --list --zookeeper localhost:2181
# Set up pycharm:
cd /usr/local/pycharm
./bin/pycharm.sh
# Set up Kafka:
cd /usr/local/kafka
bin/zookeeper-server-start.sh config/zookeeper.properties
cd /usr/local/kafka
bin/kafka-server-start.sh config/server.properties
cd /home/hadoop/PycharmProjects/streaming/scripts
python3 producer.py
cd /home/hadoop/PycharmProjects/streaming/scripts
python3 consumer.py
# set up Hadoop
cd /usr/local/hadoop
./sbin/start-dfs.sh
./sbin/stop-dfs.sh
#startup
cd /usr/local/spark/mycode/kafka
sh startup.sh
## scala
cd /usr/local/spark/mycode/kafka
vim startup.sh