Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Bug? The lib skip directory contents #161

@timoninmaxim

Description

@timoninmaxim

Hello, I try to find out a reason of the behaviour. It looks like a bug

hdfs3 was installed from the conda-forge.

So with simple hadoop ls commands:

$ hadoop fs -ls / | grep smartdata
drwxr-xr-x - hdfs supergroup 0 2018-02-16 11:39 /smartdata
$ hadoop fs -ls /smartdata
drwxrwxrwx - hdfs supergroup 0 2018-02-02 11:35 /smartdata/hive
...
$ hadoop fs -ls /smartdata/hive
drwxrwxrwx - hdfs supergroup 0 2018-04-26 09:32 /smartdata/hive/external
...

And this is with hdfs3 lib. It does not show listing of /smartdata, but does it for /smartdata/hive.

$ python -c 'from hdfs3 import HDFileSystem; print HDFileSystem().ls("/")'
[u'//smartdata', ...]
$ python -c 'from hdfs3 import HDFileSystem; print HDFileSystem().ls("/smartdata")'
[]
$ python -c 'from hdfs3 import HDFileSystem; print HDFileSystem().ls("/smartdata/hive")'
[u'/smartdata/hive/external', u'/smartdata/hive/hql', ...]

I saw similar issue here. But it seems it is not permission issue:
https://stackoverflow.com/questions/40405527/python-hdfs3-fails-to-list-non-owned-files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions