issues: 373121666
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
373121666 | MDU6SXNzdWUzNzMxMjE2NjY= | 2503 | Problems with distributed and opendap netCDF endpoint | 1197350 | closed | 0 | 26 | 2018-10-23T17:48:20Z | 2019-04-09T12:02:01Z | 2019-04-09T12:02:01Z | MEMBER | Code SampleI am trying to load a dataset from an opendap endpoint using xarray, netCDF4, and distributed. I am having a problem only with non-local distributed schedulers (KubeCluster specifically). This could plausibly be an xarray, dask, or pangeo issue, but I have decided to post it here. ```python import xarray as xr import dask create dataset from Unidata's test opendap endpoint, chunked in timeurl = 'http://remotetest.unidata.ucar.edu/thredds/dodsC/testdods/coads_climatology.nc' ds = xr.open_dataset(url, decode_times=False, chunks={'TIME': 1}) all these workwith dask.config.set(scheduler='synchronous'): ds.SST.compute() with dask.config.set(scheduler='processes'): ds.SST.compute() with dask.config.set(scheduler='threads'): ds.SST.compute() this works toofrom dask.distributed import Client local_client = Client() with dask.config.set(get=local_client): ds.SST.compute() but this does notcluster = KubeCluster(n_workers=2) kube_client = Client(cluster) with dask.config.set(get=kube_client): ds.SST.compute() ``` In the worker log, I see the following sort of errors.
This seems like something to do with serialization of the netCDF store. The worker images have identical netcdf version (and all other package versions). I am at a loss for how to debug further. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2503/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |