Skip to content

Commit

Permalink
Add TMPDIR to reducer and mapper enviroment (ydb-platform#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLolthe1st authored Feb 27, 2024
1 parent 48a641a commit 156670e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ydb/library/yql/providers/yt/gateway/native/yql_yt_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,14 @@ void FillSpec(NYT::TNode& spec,
spec["force_job_size_adjuster"] = *val;
}
}

if (opProps.HasFlags(EYtOpProp::WithMapper)) {
spec["mapper"]["environment"]["TMPDIR"] = ".";
}

if (opProps.HasFlags(EYtOpProp::WithReducer)) {
spec["reducer"]["environment"]["TMPDIR"] = ".";
}
}

void FillSecureVault(NYT::TNode& spec, const IYtGateway::TSecureParams& secureParams) {
Expand Down

0 comments on commit 156670e

Please sign in to comment.