Skip to content

Commit c288600

Browse files
committed
Adding an optional hdfs crate
1 parent a9e39b2 commit c288600

File tree

5 files changed

+42
-6
lines changed

5 files changed

+42
-6
lines changed

.github/actions/rust-test/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
shell: bash
3030
run: |
3131
cd native
32-
cargo clippy --color=never --all-targets --workspace --exclude datafusion-objectstore-hdfs -- -D warnings
32+
cargo clippy --color=never --all-targets --workspace -- -D warnings
3333
3434
- name: Check compilation
3535
shell: bash

NOTICE.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ This product includes software developed at
88
Apache Gluten (https://github.com/apache/incubator-gluten/)
99
Specifically:
1010
- Optimizer rule to replace SortMergeJoin with ShuffleHashJoin
11+
12+
This produce includes software developed at
13+
Apache DataFusion HDFS ObjectStore Contrib Package(https://github.com/datafusion-contrib/datafusion-objectstore-hdfs)

native/core/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ object_store = { workspace = true }
7878
url = { workspace = true }
7979
chrono = { workspace = true }
8080
parking_lot = "0.12.3"
81-
datafusion-objectstore-hdfs = { path = "../hdfs", optional = true}
81+
datafusion-comet-objectstore-hdfs = { path = "../hdfs", optional = true}
8282

8383
[dev-dependencies]
8484
pprof = { version = "0.14.0", features = ["flamegraph"] }
@@ -90,11 +90,11 @@ hex = "0.4.3"
9090

9191
[features]
9292
default = []
93-
hdfs=["datafusion-objectstore-hdfs"]
93+
hdfs=["datafusion-comet-objectstore-hdfs"]
9494

9595
# exclude optional packages from cargo machete verifications
9696
[package.metadata.cargo-machete]
97-
ignored = ["datafusion-objectstore-hdfs"]
97+
ignored = ["datafusion-comet-objectstore-hdfs"]
9898

9999
[lib]
100100
name = "comet"

native/hdfs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# Example: JAVA_HOME="/opt/homebrew/opt/openjdk@11" cargo build --features=hdfs
2222

2323
[package]
24-
name = "datafusion-objectstore-hdfs"
25-
description = "Comet HDFS integration. Initiated by Yanghong Zhong <[email protected]> (https://github.com/datafusion-contrib/datafusion-objectstore-hdfs)"
24+
name = "datafusion-comet-objectstore-hdfs"
25+
description = "Comet HDFS integration"
2626
version = { workspace = true }
2727
homepage = { workspace = true }
2828
repository = { workspace = true }

native/hdfs/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
20+
# Apache DataFusion Comet: HDFS integration
21+
22+
This crate contains the HDFS cluster integration
23+
and is intended to be used as part of the Apache DataFusion Comet project
24+
25+
The HDFS access powered by [fs-hdfs](https://github.com/datafusion-contrib/fs-hdfs).
26+
The crate provides `object_store` implementation leveraged by Rust FFI APIs for the `libhdfs` which can be compiled
27+
by a set of C files provided by the [official Hadoop Community](https://github.com/apache/hadoop).
28+
29+
# Supported HDFS versions
30+
31+
Currently supported Apache Hadoop clients are:
32+
- 2.*
33+
- 3.*

0 commit comments

Comments
 (0)