webhdfs: implement support for basic auth and proxy (#10075)

* remote: add user key to config schema webhdfs

This was already supported according to documentation, but missing in
code

Fixes: 10062

* remote: add password key to support Basic Auth

* remote: add data_proxy_target for webhdfs remote

This key is needed to construct a potential rewrite dictionary in
webhdfs to deal with HDFS behind High Availability Proxy servers

* bump dvc-webhdfs

---------

Co-authored-by: skshetry <[email protected]>
This commit is contained in:
Guido Diepen
2023-12-26 08:37:07 +05:45
committed by GitHub
co-authored by skshetry
parent 5850639a97
commit 27a8222e2a
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -240,6 +240,9 @@ SCHEMA = {
"ssl_verify": Any(Bool, str),
"token": str,
"use_https": Bool,
"user": str,
"password": str,
"data_proxy_target": str,
Optional("verify", default=False): Bool,
**REMOTE_COMMON,
},
+2 -2
View File
@@ -117,8 +117,8 @@ tests = [
"pandas>=1",
]
webdav = ["dvc-webdav>=3,<4"]
webhdfs = ["dvc-webhdfs>=3,<4"]
webhdfs_kerberos = ["dvc-webhdfs[kerberos]>=3,<4"]
webhdfs = ["dvc-webhdfs>=3.1,<4"]
webhdfs_kerberos = ["dvc-webhdfs[kerberos]>=3.1,<4"]
[project.urls]
Documentation = "https://dvc.org/doc"