Hdfs

Latest version: v2.7.3

Safety actively analyzes 621776 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.0

------------------------

* Add python 3 support (the Kerberos extension's requirements must however be
manually installed).
* Allow specifying relative client roots. These will be assumed relative to the
user's home directory.
* Add several client methods: `makedirs`, `set_times`, `checksum`,
`set_replication`, etc.
* Add `progress` argument to `Client.read`, `Client.upload`, and
`Client.download`. Also add a `chunk_size` argument to the latter to allow
better tracking.
* Add `strict` option to `Client.status` and `Client.content` to perform path
existence checks.
* `Client.write` now can be used as a context manager (returning a file-like
object).
* `Client.read` and `Client.write` can now return file-like objects (supporting
`read` and `write` calls respectively).
* Improve robustness of `KerberosClient`. In particular add the
`max_concurrency` parameter which can be tuned to prevent authentication
errors when too many simultaneous requests are being made. Along with the new
delay parameter, this lets us remove the timeouts in `Client.download` and
`Client.upload`, which both simplify and speed up these functions.
* Add `Config` class which handles all CLI configuration (e.g. aliases and
logging).
* Add `autoload.modules` and `autoload.paths` configuration options.
* Rename alias configuration sections to `ALIAS.alias` (the old format,
`ALIAS_alias` is still supported).
* Add `--verbose` option to CLI, enabling logging at various levels.
* Switch Avro extension to using `fastavro`. This speeds up `AvroWriter` and
`AvroReader` by a significant amount (~5 times faster on a reasonable
connection).
* Add `write` command to Avro CLI.
* Remove CSV support for dataframe extension.

Breaking changes:

* Change default configuration file path (to `~/.hdfscli.cfg`).
* Change location of `default.alias` option in configuration file (from command
specific section to `global`).
* Add `session` argument to `Client` and remove newly redundant parameters
(e.g. `verify`, `cert`).
* Remove `Client.from_alias` method (delegated to the new `Config` class). The
`Client.from_options` method is now public (renamed from
`Client._from_options`).
* Change default entry point name to `hdfscli` to avoid clashing with Hadoop
HDFS script.
* `Client.delete` now returns a boolean indicating success (rather than failing
if the path was already empty).
* `Client.read` must now be used inside a `with` block. This ensures that
connections are properly closed. The context manager now returns a file like
object (useful for composing with other functions, e.g. to decode Avro).
Setting `chunk_size` to a positive value will make it return a generator
similar to the previous behavior.
* Rename `Client.set_permissions` to `Client.set_permission` to make
`permission` argument uniform across `Client` methods (always singular,
consistent with WebHDFS API).
* `Client.parts` will now throw an error if called on a normal file.
* Make most client attributes private (e.g. `cert`, `timeout`, etc.), except
`url` and `root`.
* Remove `--` prefix from CLI commands. Also simplify CLI to only interactive,
download and upload commands (write and read behavior can be achieved by
passing '-' as local path). The `Client` API changes should make it more
convenient to perform these from a python shell.
* Rename several CLI options (e.g. `--log`, `--force`, `--version`).
* Change meaning of `n_threads` option in `Client.download` and
`Client.upload`. `0` now means one thread per part-file rather than a single
thread.
* Change `Client.walk` to be consistent with `os.walk`. Also change meaning of
`depth` option (`0` being unlimited).
* Add `status` option to `Client.list`, `Client.walk`, and `Client.parts`. By
default these functions now only return the names of the relevant files and
folders.
* Remove `Client.append` method (replaced by `append` keyword argument to
`Client.write`).
* Symbols exported by extensions aren't imported in the main `hdfs` module
anymore. This removes the need for some custom error handling (when
dependency requirements weren't met).
* Remove Bash autocompletion file (for now).
* Remove compatibility layer for entry point configuration (i.e.
`HDFS_ENTRY_POINT` isn't supported anymore).

1.4.0

--------------------------

* Add support for download and upload of arbitrary folders.
* Deprecate `Client.append` (in favor of `append` argument to `Client.write`).

1.1.0

--------------------------

* Rename Avro extension entry point to `hdfs-avro`.

1.0.1

--------------------------

* Added support for Windows.
* Added support for remote filepaths with `=` characters.

0.3.0

--------------------------

* Added `--interactive` command.

Breaking changes:

* Renamed `--info` command to `--list`.
* Made `--interactive` the new default command.

0.2.6

--------------------------

* Added parallelized downloading.
* Added Avro-format reading and writing.
* Added `hdfs.ext.dataframe` extension.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.