Open
Description
On GCP, I created a dask gateway cluster with the dask labextension. But when I injected the code to connect to it, it didn't work:
from dask.distributed import Client
client = Client("gateway://traefik-gcp-uscentral1b-prod-dask-gateway.prod:80/prod.b809bb1978fe4df4bd50476d2a843fce")
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-24-e4fd84ddbafe> in <module>
1 from dask.distributed import Client
2
----> 3 client = Client("gateway://traefik-gcp-uscentral1b-prod-dask-gateway.prod:80/prod.b809bb1978fe4df4bd50476d2a843fce")
4 client
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/client.py in __init__(self, address, loop, timeout, set_as_default, scheduler_file, security, asynchronous, name, heartbeat_interval, serializers, deserializers, extensions, direct_to_workers, connection_limit, **kwargs)
743 ext(self)
744
--> 745 self.start(timeout=timeout)
746 Client._instances.add(self)
747
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/client.py in start(self, **kwargs)
948 self._started = asyncio.ensure_future(self._start(**kwargs))
949 else:
--> 950 sync(self.loop, self._start, **kwargs)
951
952 def __await__(self):
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/utils.py in sync(loop, func, callback_timeout, *args, **kwargs)
337 if error[0]:
338 typ, exc, tb = error[0]
--> 339 raise exc.with_traceback(tb)
340 else:
341 return result[0]
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/utils.py in f()
321 if callback_timeout is not None:
322 future = asyncio.wait_for(future, callback_timeout)
--> 323 result[0] = yield future
324 except Exception as exc:
325 error[0] = sys.exc_info()
/srv/conda/envs/notebook/lib/python3.7/site-packages/tornado/gen.py in run(self)
733
734 try:
--> 735 value = future.result()
736 except Exception:
737 exc_info = sys.exc_info()
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/client.py in _start(self, timeout, **kwargs)
1045
1046 try:
-> 1047 await self._ensure_connected(timeout=timeout)
1048 except (OSError, ImportError):
1049 await self._close()
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/client.py in _ensure_connected(self, timeout)
1103 try:
1104 comm = await connect(
-> 1105 self.scheduler.address, timeout=timeout, **self.connection_args
1106 )
1107 comm.name = "Client->Scheduler"
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/comm/core.py in connect(addr, timeout, deserialize, handshake_overrides, **connection_args)
258
259 scheme, loc = parse_address(addr)
--> 260 backend = registry.get_backend(scheme)
261 connector = backend.get_connector()
262 comm = None
/srv/conda/envs/notebook/lib/python3.7/site-packages/distributed/comm/registry.py in get_backend(scheme)
81 raise ValueError(
82 "unknown address scheme %r (known schemes: %s)"
---> 83 % (scheme, sorted(backends))
84 )
85 else:
ValueError: unknown address scheme 'gateway' (known schemes: ['inproc', 'tcp', 'tls', 'ucx'])
Metadata
Metadata
Assignees
Labels
No labels