Browse Source

Updated the installation instructions

Change-Id: Ib9aba7c745b535f341537c9a77a2e9b045001b17
Tong Li 3 years ago
parent
commit
0f9b0e8e57
3 changed files with 18 additions and 18 deletions
  1. 15
    15
      README.md
  2. 2
    2
      etc/kiloeyes.conf
  3. 1
    1
      requirements.txt

+ 15
- 15
README.md View File

@@ -13,23 +13,18 @@ by python setup tools, they will have to be installed manually. These components
13 13
 python setup tools, python-dev, python-pip and gunicorn. Follow the steps below to
14 14
 install dependencies:
15 15
 
16
-The typical process of installing setup tools is to download the tar.gz file
17
-then tar -xvf and run python setup.py install, you can also reference this page:
16
+Install python setuptools::
18 17
 
19
-    https://pypi.python.org/pypi/setuptools
18
+    wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
20 19
 
21
-To install python-dev and pip, run the following command:
20
+Install python-dev, pip and pastedeploy, run the following command:
22 21
 
23
-    sudo apt-get install python-dev python-pip
22
+    sudo apt-get install python-dev python-pip python-pastedeploy
24 23
 
25
-To install gunicorn, run the following command:
26
-
27
-    sudo pip install gunicorn==19.1.0
28
-    
29
-Kiloeyes depends on Kafka and ElasticSearch, both requires Java. If you do not
30
-already have Java, Kafka and ElasticSearch running, you will have to install
31
-them. Please refer to respective document on how to install Java, Kafka and
32
-ElasticSearch::
24
+Kiloeyes depends on Kafka and ElasticSearch, both requires Java. At the end of
25
+this document in the all-in-one section, you can find detailed instructions on
26
+how to install each of them. Please refer to respective document on how to
27
+install Java, Kafka and ElasticSearch if you want to know more::
33 28
 
34 29
     http://www.java.com
35 30
     http://kafka.apache.org/documentation.html#introduction
@@ -43,8 +38,13 @@ Get the source code::
43 38
 
44 39
 Go to the root directory of the project and run the following command:
45 40
 
41
+    sudo pip install -r requirements.txt
46 42
     sudo python setup.py install
47 43
 
44
+Create a log directory::
45
+
46
+    sudo mkdir -p /var/log/kiloeyes
47
+
48 48
 If Kiloeyes installs successfully, you can then make changes to the following
49 49
 two files to reflect your system settings, such as Kafka server locations::
50 50
 
@@ -56,11 +56,11 @@ up various services by following these instructions.
56 56
 
57 57
 To start the API server, run the following command:
58 58
 
59
-    Running the server in foreground mode
59
+    Run the server in foreground mode
60 60
     gunicorn -k eventlet --worker-connections=2000 --backlog=1000
61 61
              --paste /etc/kiloeyes/kiloeyes.ini
62 62
 
63
-    Running the server as daemons
63
+    Run the server as daemons
64 64
     gunicorn -k eventlet --worker-connections=2000 --backlog=1000
65 65
              --paste /etc/kiloeyes/kiloeyes.ini -D
66 66
 

+ 2
- 2
etc/kiloeyes.conf View File

@@ -51,7 +51,7 @@ start_date = 2015-01-01
51 51
 #for example:
52 52
 #uri = 10.100.41.114:9092,10.100.41.115:9092,10.100.41.116:9092
53 53
 
54
-uri = 192.168.1.191:9092
54
+uri = localhost:9092
55 55
 
56 56
 #consumer group name
57 57
 group = datapoints_group
@@ -78,6 +78,6 @@ compact = False
78 78
 partitions = 0
79 79
 
80 80
 [es_conn]
81
-uri = http://192.168.1.191:9200
81
+uri = http://localhost:9200
82 82
 time_id = timestamp
83 83
 drop_data = False

+ 1
- 1
requirements.txt View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 falcon==0.1.9
7
-gunicorn>=19.1.0,<=19.2.1
7
+gunicorn==19.1.0
8 8
 iso8601>=0.1.9
9 9
 kafka-python>=0.8.1
10 10
 oslo.config>=1.11.0

Loading…
Cancel
Save