Melfe Bulu
08/11/2021, 11:15 AMAriel Shaqed (Scolnicov)
08/11/2021, 11:18 AM<http://s3.local.lakefs.io|s3.local.lakefs.io>
is a DNS record that we (lakefs) created in to connect to your loopback. As such it will work for processes on your machine, but not inside a container.Ariel Shaqed (Scolnicov)
08/11/2021, 11:20 AMdeployments/compose/docker-compose.yml
) shows you how to set up everything. AND it gives you almost everything you need to get a small demo environment running on your workstation, including Spark, Trino (Presto), Hive, MinIO, ...Ariel Shaqed (Scolnicov)
08/11/2021, 11:21 AMMelfe Bulu
08/11/2021, 11:23 AMMelfe Bulu
08/11/2021, 11:23 AMMelfe Bulu
08/11/2021, 11:25 AMAriel Shaqed (Scolnicov)
08/11/2021, 11:28 AMMelfe Bulu
08/11/2021, 11:29 AMMelfe Bulu
08/11/2021, 11:30 AMMelfe Bulu
08/11/2021, 11:31 AMMelfe Bulu
08/11/2021, 11:31 AMMelfe Bulu
08/11/2021, 11:32 AMMelfe Bulu
08/11/2021, 11:32 AMMelfe Bulu
08/11/2021, 11:33 AMMelfe Bulu
08/11/2021, 11:37 AMAriel Shaqed (Scolnicov)
08/11/2021, 11:37 AMariels@redqueen:~/dev/lakeFS/clients/spark$ dig <http://s3.local.lakefs.io|s3.local.lakefs.io>
; <<>> DiG 9.16.6-Ubuntu <<>> <http://s3.local.lakefs.io|s3.local.lakefs.io>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19438
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;s3.local.lakefs.io. IN A
;; ANSWER SECTION:
<http://s3.local.lakefs.io|s3.local.lakefs.io>. 86400 IN A 127.0.0.1
;; Query time: 168 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Aug 11 14:17:24 IDT 2021
;; MSG SIZE rcvd: 63
So it works to access a lakefs that listens on port 8000 on your machine, from your machine, but not from a Docker container on that machine. And forwarding the lakeFS port out doesn't help, either.
The docker-compose.yml
I referenced tells Docker to add a DNS entry for the lakefs server for the relevant containers. Now those containers can access the lakefs server. Hope I managed to make sense.Melfe Bulu
08/11/2021, 12:33 PMOz Katz
Melfe Bulu
08/11/2021, 12:37 PMMelfe Bulu
08/11/2021, 12:38 PM