Skip to content

Commit

Permalink
chore: upgrade hdfs builder (#17421)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu authored Jul 2, 2024
1 parent 015aa5d commit 74e0842
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/object_store/src/object/opendal_engine/hdfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::sync::Arc;

use opendal::layers::LoggingLayer;
use opendal::services::Hdfs;
use opendal::Operator;
use risingwave_common::config::ObjectStoreConfig;

use super::{EngineType, OpendalObjectStore};
use crate::object::object_metrics::ObjectStoreMetrics;
use crate::object::opendal_engine::ATOMIC_WRITE_DIR;
use crate::object::ObjectResult;

Expand All @@ -35,7 +36,7 @@ impl OpendalObjectStore {
// Set the name node for hdfs.
builder.name_node(&namenode);
builder.root(&root);
if config.retry.set_atomic_write_dir {
if config.set_atomic_write_dir {
let atomic_write_dir = format!("{}/{}", root, ATOMIC_WRITE_DIR);
builder.atomic_write_dir(&atomic_write_dir);
}
Expand Down

0 comments on commit 74e0842

Please sign in to comment.