-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate objectstore crate (#48)
- Loading branch information
1 parent
2c74bcb
commit 64aa238
Showing
72 changed files
with
2,147 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
[workspace] | ||
members = [ | ||
"rust", | ||
"crates/*", | ||
"python", | ||
] | ||
resolver = "2" | ||
|
||
[workspace.dependencies] | ||
bytes = "1" | ||
futures = "0.3" | ||
tokio = "1" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[package] | ||
name = "hdfs-native-object-store" | ||
version = "0.5.0" | ||
edition = "2021" | ||
authors = ["Adam Binford <[email protected]>"] | ||
homepage = "https://github.com/Kimahriman/hdfs-native" | ||
repository = "https://github.com/Kimahriman/hdfs-native" | ||
keywords = ["hadoop", "hdfs", "object_store"] | ||
description = "object_store implementation for Native HDFS client" | ||
readme = "../../README.md" | ||
license = "Apache-2.0" | ||
|
||
[dependencies] | ||
async-trait = { version = "0.1" } | ||
bytes = { workspace = true } | ||
chrono = { version = "0.4" } | ||
futures = { workspace = true } | ||
hdfs-native = { path = "../hdfs-native", version = "0.5", features = ["token", "kerberos"] } | ||
object_store = { version = "0.7", features = ["cloud"] } | ||
thiserror = "1" | ||
tokio = { workspace = true, features = ["rt", "net", "io-util", "macros", "sync", "time"] } | ||
|
||
[dev-dependencies] | ||
criterion = "0.5" | ||
env_logger = "0.10" | ||
serial_test = "2.0.0" | ||
tempfile = "3" | ||
which = "4" | ||
|
||
|
||
[features] | ||
integration-test = ["hdfs-native/integration-test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Object store implementation for the Native Rust HDFS client | ||
|
||
## Usage | ||
|
||
```rust | ||
use hdfs_native::Client; | ||
use hdfs_native_object_store::HdfsObjectStore; | ||
use hdfs_native::Result; | ||
fn main() -> Result<()> { | ||
let client = Client::new("hdfs://localhost:9000")?; | ||
let store = HdfsObjectStore::new(client); | ||
Ok(()) | ||
} | ||
``` |
File renamed without changes.
Oops, something went wrong.