You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
___________________ ERROR at setup of test_read_text_unicode ___________________
request = <SubRequest 'hdfs' for <Function test_read_text_unicode>>
@pytest.fixture
defhdfs(request):
> _maybe_set_hadoop_classpath()
E NameError: name '_maybe_set_hadoop_classpath' is not defined
dask/bytes/tests/test_hdfs.py:39: NameError
Is this definitely happening in a run that is supposed to execute HDFS tests?
If the import fail, it looks like all the tests should be skipped, but maybe not.
@jorisvandenbossche , did a recent change in pyarrow remove pyarrow.[_]hdfs._maybe_set_hadoop_classpath ? Is there an alternative? I recall we had a problem just calling HadoopFileSystem() directly without explicit _connect().
The HDFS tests are now failing further on install (the docker container used to test them has python 3.7 installed, while dask is now 3.8+ only). I could possibly spend some time and fix CI here, but I'm feeling a bit inclined to drop this whole CI build and delete a bunch of stuff. We no longer have any HDFS-specific branching in dask itself, so it's more a test that the hdfs filesystem works. Since HDFS is less commonly used than other filesystems, and is imposing some CI burden on us, I'd rather delete this build than spend time fixing things. cc @jrbourbeau for thoughts.
Thanks for bringing this up @jcrist. Yeah, I agree if we no longer have custom logic around HDFS in dask and are instead relying on fsspec, then dropping the HDFS build seems like a win to me. cc @martindurant for visibility
Activity
martindurant commentedon Aug 10, 2021
Is this definitely happening in a run that is supposed to execute HDFS tests?
If the import fail, it looks like all the tests should be skipped, but maybe not.
@jorisvandenbossche , did a recent change in pyarrow remove
pyarrow.[_]hdfs._maybe_set_hadoop_classpath? Is there an alternative? I recall we had a problem just callingHadoopFileSystem()directly without explicit_connect().jorisvandenbossche commentedon Aug 10, 2021
I think the tests are not properly skipped. There is
dask/dask/bytes/tests/test_hdfs.py
Line 53 in cb15276
but it's only applied to a single test that uses pyarrow directly. But all other tests also require pyarrow.
(which doesn't explain why it only started to fail now of course)
jorisvandenbossche commentedon Aug 10, 2021
And the build seems to use pyarrow 0.15, which has https://github.com/apache/arrow/blob/apache-arrow-0.15.1/python/pyarrow/hdfs.py. So it has both
_maybe_set_hadoop_classpathandconnectin apyarrow.hdfsmodule, but that combination doesn't seem to be available in the try/except import sequence atdask/dask/bytes/tests/test_hdfs.py
Lines 25 to 32 in cb15276
martindurant commentedon Aug 10, 2021
How about the following:
jorisvandenbossche commentedon Aug 10, 2021
Do you know for which version the
pyarrow._hdfsis actually needed?martindurant commentedon Aug 10, 2021
No idea! :)
jcrist commentedon May 5, 2022
The HDFS tests are now failing further on install (the docker container used to test them has python 3.7 installed, while dask is now 3.8+ only). I could possibly spend some time and fix CI here, but I'm feeling a bit inclined to drop this whole CI build and delete a bunch of stuff. We no longer have any HDFS-specific branching in dask itself, so it's more a test that the hdfs filesystem works. Since HDFS is less commonly used than other filesystems, and is imposing some CI burden on us, I'd rather delete this build than spend time fixing things. cc @jrbourbeau for thoughts.
jrbourbeau commentedon May 5, 2022
Thanks for bringing this up @jcrist. Yeah, I agree if we no longer have custom logic around HDFS in
daskand are instead relying onfsspec, then dropping the HDFS build seems like a win to me. cc @martindurant for visibilitymartindurant commentedon May 5, 2022
agreed
jcrist commentedon May 5, 2022
#9039