|
34 | 34 | }, |
35 | 35 | { |
36 | 36 | "cell_type": "code", |
37 | | - "execution_count": null, |
| 37 | + "execution_count": 1, |
38 | 38 | "metadata": {}, |
39 | | - "outputs": [], |
| 39 | + "outputs": [ |
| 40 | + { |
| 41 | + "name": "stdout", |
| 42 | + "output_type": "stream", |
| 43 | + "text": [ |
| 44 | + "Both server & client are aligned (0.6.0rc13).\n" |
| 45 | + ] |
| 46 | + } |
| 47 | + ], |
40 | 48 | "source": [ |
41 | 49 | "#Make sure thar mlrun is installed. if it's already installed then skip this step\n", |
42 | 50 | "#to instlal mlrun run the following\n", |
|
53 | 61 | }, |
54 | 62 | { |
55 | 63 | "cell_type": "code", |
56 | | - "execution_count": 1, |
| 64 | + "execution_count": 2, |
57 | 65 | "metadata": {}, |
58 | 66 | "outputs": [], |
59 | 67 | "source": [ |
|
62 | 70 | }, |
63 | 71 | { |
64 | 72 | "cell_type": "code", |
65 | | - "execution_count": 2, |
| 73 | + "execution_count": 3, |
66 | 74 | "metadata": {}, |
67 | 75 | "outputs": [ |
68 | 76 | { |
|
71 | 79 | "text": [ |
72 | 80 | " % Total % Received % Xferd Average Speed Time Time Time Current\n", |
73 | 81 | " Dload Upload Total Spent Left Speed\n", |
74 | | - "100 84.9M 100 84.9M 0 0 21.8M 0 0:00:03 0:00:03 --:--:-- 21.8M\n" |
| 82 | + "100 84.9M 100 84.9M 0 0 8206k 0 0:00:10 0:00:10 --:--:-- 8639k\n" |
75 | 83 | ] |
76 | 84 | } |
77 | 85 | ], |
|
83 | 91 | }, |
84 | 92 | { |
85 | 93 | "cell_type": "code", |
86 | | - "execution_count": 3, |
| 94 | + "execution_count": 4, |
87 | 95 | "metadata": {}, |
88 | 96 | "outputs": [], |
89 | 97 | "source": [ |
|
93 | 101 | }, |
94 | 102 | { |
95 | 103 | "cell_type": "code", |
96 | | - "execution_count": 4, |
| 104 | + "execution_count": 5, |
97 | 105 | "metadata": {}, |
98 | 106 | "outputs": [ |
99 | 107 | { |
|
113 | 121 | }, |
114 | 122 | { |
115 | 123 | "cell_type": "code", |
116 | | - "execution_count": 5, |
| 124 | + "execution_count": 6, |
117 | 125 | "metadata": {}, |
118 | 126 | "outputs": [], |
119 | 127 | "source": [ |
|
149 | 157 | }, |
150 | 158 | { |
151 | 159 | "cell_type": "code", |
152 | | - "execution_count": 6, |
| 160 | + "execution_count": 7, |
153 | 161 | "metadata": {}, |
154 | 162 | "outputs": [], |
155 | 163 | "source": [ |
|
170 | 178 | }, |
171 | 179 | { |
172 | 180 | "cell_type": "code", |
173 | | - "execution_count": 7, |
| 181 | + "execution_count": 8, |
174 | 182 | "metadata": {}, |
175 | 183 | "outputs": [], |
176 | 184 | "source": [ |
|
186 | 194 | }, |
187 | 195 | { |
188 | 196 | "cell_type": "code", |
189 | | - "execution_count": 8, |
| 197 | + "execution_count": 9, |
190 | 198 | "metadata": {}, |
191 | 199 | "outputs": [], |
192 | 200 | "source": [ |
|
212 | 220 | }, |
213 | 221 | { |
214 | 222 | "cell_type": "code", |
215 | | - "execution_count": 9, |
| 223 | + "execution_count": 10, |
216 | 224 | "metadata": {}, |
217 | 225 | "outputs": [], |
218 | 226 | "source": [ |
|
228 | 236 | }, |
229 | 237 | { |
230 | 238 | "cell_type": "code", |
231 | | - "execution_count": 10, |
| 239 | + "execution_count": 11, |
232 | 240 | "metadata": {}, |
233 | 241 | "outputs": [ |
234 | 242 | { |
235 | 243 | "name": "stdout", |
236 | 244 | "output_type": "stream", |
237 | 245 | "text": [ |
238 | | - "> 2020-12-20 09:58:46,894 [info] using in-cluster config.\n" |
| 246 | + "> 2021-02-04 19:07:34,933 [info] using in-cluster config.\n" |
239 | 247 | ] |
240 | 248 | } |
241 | 249 | ], |
|
245 | 253 | }, |
246 | 254 | { |
247 | 255 | "cell_type": "code", |
248 | | - "execution_count": 11, |
| 256 | + "execution_count": 12, |
249 | 257 | "metadata": {}, |
250 | 258 | "outputs": [], |
251 | 259 | "source": [ |
|
258 | 266 | }, |
259 | 267 | { |
260 | 268 | "cell_type": "code", |
261 | | - "execution_count": 12, |
| 269 | + "execution_count": 13, |
262 | 270 | "metadata": {}, |
263 | 271 | "outputs": [ |
264 | 272 | { |
265 | 273 | "name": "stdout", |
266 | 274 | "output_type": "stream", |
267 | 275 | "text": [ |
268 | | - "> 2020-12-20 09:58:46,980 [info] trying dask client at: tcp://mlrun-dask-init-9d8122b2-b.default-tenant:8786\n", |
269 | | - "> 2020-12-20 09:58:47,000 [info] using remote dask scheduler (mlrun-dask-init-9d8122b2-b) at: tcp://mlrun-dask-init-9d8122b2-b.default-tenant:8786\n" |
| 276 | + "> 2021-02-04 19:07:35,158 [info] trying dask client at: tcp://mlrun-dask-init-b7725876-7.default-tenant:8786\n", |
| 277 | + "> 2021-02-04 19:07:35,234 [info] using remote dask scheduler (mlrun-dask-init-b7725876-7) at: tcp://mlrun-dask-init-b7725876-7.default-tenant:8786\n" |
270 | 278 | ] |
271 | 279 | }, |
272 | 280 | { |
273 | 281 | "data": { |
274 | 282 | "text/html": [ |
275 | | - "<a href=\"http://default-tenant.app.product-new.iguazio-cd2.com:31433/status\" target=\"_blank\" >dashboard link: default-tenant.app.product-new.iguazio-cd2.com:31433</a>" |
| 283 | + "<a href=\"http://default-tenant.app.bsmhzmwkycjf.iguazio-cd2.com:30053/status\" target=\"_blank\" >dashboard link: default-tenant.app.bsmhzmwkycjf.iguazio-cd2.com:30053</a>" |
276 | 284 | ], |
277 | 285 | "text/plain": [ |
278 | 286 | "<IPython.core.display.HTML object>" |
|
289 | 297 | "<td style=\"vertical-align: top; border: 0px solid white\">\n", |
290 | 298 | "<h3 style=\"text-align: left;\">Client</h3>\n", |
291 | 299 | "<ul style=\"text-align: left; list-style: none; margin: 0; padding: 0;\">\n", |
292 | | - " <li><b>Scheduler: </b>tcp://mlrun-dask-init-9d8122b2-b.default-tenant:8786</li>\n", |
293 | | - " <li><b>Dashboard: </b><a href='http://mlrun-dask-init-9d8122b2-b.default-tenant:8787/status' target='_blank'>http://mlrun-dask-init-9d8122b2-b.default-tenant:8787/status</a></li>\n", |
| 300 | + " <li><b>Scheduler: </b>tcp://mlrun-dask-init-b7725876-7.default-tenant:8786</li>\n", |
| 301 | + " <li><b>Dashboard: </b><a href='http://mlrun-dask-init-b7725876-7.default-tenant:8787/status' target='_blank'>http://mlrun-dask-init-b7725876-7.default-tenant:8787/status</a></li>\n", |
294 | 302 | "</ul>\n", |
295 | 303 | "</td>\n", |
296 | 304 | "<td style=\"vertical-align: top; border: 0px solid white\">\n", |
297 | 305 | "<h3 style=\"text-align: left;\">Cluster</h3>\n", |
298 | 306 | "<ul style=\"text-align: left; list-style:none; margin: 0; padding: 0;\">\n", |
299 | | - " <li><b>Workers: </b>1</li>\n", |
300 | | - " <li><b>Cores: </b>1</li>\n", |
301 | | - " <li><b>Memory: </b>4.15 GB</li>\n", |
| 307 | + " <li><b>Workers: </b>2</li>\n", |
| 308 | + " <li><b>Cores: </b>2</li>\n", |
| 309 | + " <li><b>Memory: </b>8.31 GB</li>\n", |
302 | 310 | "</ul>\n", |
303 | 311 | "</td>\n", |
304 | 312 | "</tr>\n", |
305 | 313 | "</table>" |
306 | 314 | ], |
307 | 315 | "text/plain": [ |
308 | | - "<Client: 'tcp://10.200.0.53:8786' processes=1 threads=1, memory=4.15 GB>" |
| 316 | + "<Client: 'tcp://10.200.0.59:8786' processes=2 threads=2, memory=8.31 GB>" |
309 | 317 | ] |
310 | 318 | }, |
311 | | - "execution_count": 12, |
| 319 | + "execution_count": 13, |
312 | 320 | "metadata": {}, |
313 | 321 | "output_type": "execute_result" |
314 | 322 | } |
315 | 323 | ], |
316 | 324 | "source": [ |
317 | | - "dsf.client" |
| 325 | + "client = dsf.client\n", |
| 326 | + "client" |
318 | 327 | ] |
319 | 328 | }, |
320 | 329 | { |
|
326 | 335 | }, |
327 | 336 | { |
328 | 337 | "cell_type": "code", |
329 | | - "execution_count": 13, |
| 338 | + "execution_count": 14, |
330 | 339 | "metadata": {}, |
331 | 340 | "outputs": [], |
332 | 341 | "source": [ |
333 | 342 | "DATA_URL = '/User/examples/ytrip.csv'\n", |
334 | | - "DASK_CLIENT = '<scheduler address - see above>'\n", |
| 343 | + "DASK_CLIENT = client.scheduler.address\n", |
335 | 344 | "# e.g. DASK_CLIENT = 'tcp://mlrun-dask-init-9d8122b2-b.default-tenant:8786'" |
336 | 345 | ] |
337 | 346 | }, |
|
351 | 360 | }, |
352 | 361 | { |
353 | 362 | "cell_type": "code", |
354 | | - "execution_count": 14, |
| 363 | + "execution_count": 15, |
355 | 364 | "metadata": {}, |
356 | 365 | "outputs": [ |
357 | 366 | { |
358 | 367 | "name": "stdout", |
359 | 368 | "output_type": "stream", |
360 | 369 | "text": [ |
361 | | - "> 2020-12-20 09:59:03,605 [info] starting run test-dask-test_dask uid=7e86bbe9112a486b84e9aa586638fd66 DB=http://mlrun-api:8080\n", |
362 | | - "> 2020-12-20 09:59:03,761 [info] Job is running in the background, pod: test-dask-test-dask-8ws4f\n", |
363 | | - "> 2020-12-20 09:59:20,372 [info] run executed, status=completed\n", |
| 370 | + "> 2021-02-04 19:07:35,288 [info] starting run test-dask-test_dask uid=4973d57c968747e491d6fcaa401968e0 DB=http://mlrun-api:8080\n", |
| 371 | + "> 2021-02-04 19:07:35,769 [info] Job is running in the background, pod: test-dask-test-dask-4m29c\n", |
| 372 | + "> 2021-02-04 19:07:56,270 [info] run executed, status=completed\n", |
364 | 373 | "final state: completed\n" |
365 | 374 | ] |
366 | 375 | }, |
|
535 | 544 | " <tbody>\n", |
536 | 545 | " <tr>\n", |
537 | 546 | " <td>default</td>\n", |
538 | | - " <td><div title=\"7e86bbe9112a486b84e9aa586638fd66\"><a href=\"https://mlrun-ui.default-tenant.app.product-new.iguazio-cd2.com/projects/default/jobs/monitor/7e86bbe9112a486b84e9aa586638fd66/info\" target=\"_blank\" >...6638fd66</a></div></td>\n", |
| 547 | + " <td><div title=\"4973d57c968747e491d6fcaa401968e0\"><a href=\"https://dashboard.default-tenant.app.bsmhzmwkycjf.iguazio-cd2.com/mlprojects/default/jobs/monitor/4973d57c968747e491d6fcaa401968e0/info\" target=\"_blank\" >...401968e0</a></div></td>\n", |
539 | 548 | " <td>0</td>\n", |
540 | | - " <td>Dec 20 09:59:09</td>\n", |
| 549 | + " <td>Feb 04 19:07:42</td>\n", |
541 | 550 | " <td>completed</td>\n", |
542 | 551 | " <td>test-dask-test_dask</td>\n", |
543 | | - " <td><div class=\"dictlist\">v3io_user=admin</div><div class=\"dictlist\">kind=job</div><div class=\"dictlist\">owner=admin</div><div class=\"dictlist\">host=test-dask-test-dask-8ws4f</div></td>\n", |
544 | | - " <td><div class=\"artifact\" onclick=\"expandPanel(this)\" paneName=\"resultf521b185\" title=\"/files/examples/ytrip.csv\">dataset</div></td>\n", |
545 | | - " <td><div class=\"dictlist\">dask_client=tcp://mlrun-dask-init-9d8122b2-b.default-tenant:8786</div></td>\n", |
| 552 | + " <td><div class=\"dictlist\">v3io_user=admin</div><div class=\"dictlist\">kind=job</div><div class=\"dictlist\">owner=admin</div><div class=\"dictlist\">host=test-dask-test-dask-4m29c</div></td>\n", |
| 553 | + " <td><div class=\"artifact\" onclick=\"expandPanel(this)\" paneName=\"resultf45735f7\" title=\"/files/examples/ytrip.csv\">dataset</div></td>\n", |
| 554 | + " <td><div class=\"dictlist\">dask_client=tcp://mlrun-dask-init-b7725876-7.default-tenant:8786</div></td>\n", |
546 | 555 | " <td></td>\n", |
547 | 556 | " <td></td>\n", |
548 | 557 | " </tr>\n", |
549 | 558 | " </tbody>\n", |
550 | 559 | "</table>\n", |
551 | 560 | "</div></div>\n", |
552 | | - " <div id=\"resultf521b185-pane\" class=\"right-pane block hidden\">\n", |
| 561 | + " <div id=\"resultf45735f7-pane\" class=\"right-pane block hidden\">\n", |
553 | 562 | " <div class=\"pane-header\">\n", |
554 | | - " <span id=\"resultf521b185-title\" class=\"pane-header-title\">Title</span>\n", |
555 | | - " <span onclick=\"closePanel(this)\" paneName=\"resultf521b185\" class=\"close clickable\">×</span>\n", |
| 563 | + " <span id=\"resultf45735f7-title\" class=\"pane-header-title\">Title</span>\n", |
| 564 | + " <span onclick=\"closePanel(this)\" paneName=\"resultf45735f7\" class=\"close clickable\">×</span>\n", |
556 | 565 | " </div>\n", |
557 | | - " <iframe class=\"fileview\" id=\"resultf521b185-body\"></iframe>\n", |
| 566 | + " <iframe class=\"fileview\" id=\"resultf45735f7-body\"></iframe>\n", |
558 | 567 | " </div>\n", |
559 | 568 | "</div>\n" |
560 | 569 | ], |
|
570 | 579 | "output_type": "stream", |
571 | 580 | "text": [ |
572 | 581 | "to track results use .show() or .logs() or in CLI: \n", |
573 | | - "!mlrun get run 7e86bbe9112a486b84e9aa586638fd66 --project default , !mlrun logs 7e86bbe9112a486b84e9aa586638fd66 --project default\n", |
574 | | - "> 2020-12-20 09:59:22,969 [info] run executed, status=completed\n" |
| 582 | + "!mlrun get run 4973d57c968747e491d6fcaa401968e0 --project default , !mlrun logs 4973d57c968747e491d6fcaa401968e0 --project default\n", |
| 583 | + "> 2021-02-04 19:08:05,372 [info] run executed, status=completed\n" |
575 | 584 | ] |
576 | 585 | }, |
577 | 586 | { |
578 | 587 | "data": { |
579 | 588 | "text/plain": [ |
580 | | - "<mlrun.model.RunObject at 0x7fb52a0e8550>" |
| 589 | + "<mlrun.model.RunObject at 0x7efe58c67c50>" |
581 | 590 | ] |
582 | 591 | }, |
583 | | - "execution_count": 14, |
| 592 | + "execution_count": 15, |
584 | 593 | "metadata": {}, |
585 | 594 | "output_type": "execute_result" |
586 | 595 | } |
|
605 | 614 | "Users can view the progress and detailed information in the mlrun UI by clicking on the uid above. <br>\n", |
606 | 615 | "Also, to track the dask progress in the dask UI click on the \"dashboard link\" above the \"client\" section" |
607 | 616 | ] |
608 | | - }, |
609 | | - { |
610 | | - "cell_type": "code", |
611 | | - "execution_count": null, |
612 | | - "metadata": {}, |
613 | | - "outputs": [], |
614 | | - "source": [] |
615 | 617 | } |
616 | 618 | ], |
617 | 619 | "metadata": { |
|
0 commit comments