@@ -20,21 +20,30 @@ videos on [coursera](http://coursera.org).
20
20
(it will error out ridiculously with an ` IndexMissingException ` from
21
21
elasticsearch if you don't do this!);
22
22
23
+ ### Testing dockerized cloujera inside Vagrant VM
23
24
24
- ## Testing uberjar inside Vagrant
25
+ ``` bash
26
+ $ vagrant ssh
27
+ $ cd /vagrant
28
+ $ ./scripts/deploy.sh
29
+ ```
30
+
31
+ ** NOTE:** the address to access the dockerized cloujera is
32
+ ` http://127.0.0.1:8081 ` (see ` Vagrantfile ` )
33
+
34
+
35
+ ### Testing uberjar inside Vagrant
25
36
26
37
``` bash
27
38
$ vagrant ssh
28
39
$ cd /vagrant
29
40
$ source ./scripts/prod-env.sh
30
- $ ./scripts/deploy.sh
41
+ $ lein uberjar
42
+ $ java -jar ./target/uberjar/cloujera-* -standalone.jar
31
43
```
32
44
33
45
** NOTE:** the address to access the uberjarred cloujera running on port ` 8080 `
34
- is ` http://127.0.0.1:8081 ` (see ` Vagrantfile ` )
35
-
36
- ** FIXME** : the sourcing of prod-env.sh is just a temporary fix while we move to
37
- docker ....
46
+ is ` http://127.0.0.1:8082 ` (see ` Vagrantfile ` )
38
47
39
48
40
49
## Scraping courses
@@ -76,7 +85,6 @@ $ sudo ./scripts/provision.sh
76
85
77
86
``` bash
78
87
# in the cloujera directory...
79
- $ source ./scripts/prod-env.sh
80
88
$ ./scripts/deploy.sh
81
89
```
82
90
@@ -92,13 +100,14 @@ $ vagrant ssh
92
100
$ sudo docker ps -a
93
101
```
94
102
95
- You should see ` redis ` and ` elasticsearch ` running
103
+ You should see ` redis ` , ` elasticsearch ` and ` cloujera ` running
96
104
97
105
98
106
### Checking the cloujera logs
99
107
100
108
``` bash
101
- $ cat cloujera.log
109
+ $ vagrant ssh
110
+ $ sudo docker exec cloujera cat /var/cloujera.log
102
111
```
103
112
104
113
### Checking elasticsearch health
@@ -114,6 +123,13 @@ Visit `http://localhost:9200/`, you should see `status: 200`
114
123
** NOTE** : this works form the host as well as in the Vagrant VM
115
124
116
125
126
+ ### Dropping into a shell inside a container
127
+ ``` bash
128
+ $ vagrant ssh || ssh user@cloudbox
129
+ $ sudo docker exec -i -t cloujera bash
130
+ ```
131
+
132
+
117
133
# BUGS
118
134
- ` lein run ` doesn't give any output initially
119
135
- ` lein run ` doesn't reload
0 commit comments