diff options
| author | ermolovd <[email protected]> | 2025-02-07 11:41:21 +0300 |
|---|---|---|
| committer | ermolovd <[email protected]> | 2025-02-07 11:58:46 +0300 |
| commit | 2dc0b90341ba0adaa79f54a751f4e9fb8c1f2636 (patch) | |
| tree | 307ae7fcd0b189d13f537b8b07331076931ef824 /yt/cpp/mapreduce/interface/config.cpp | |
| parent | f5d9f371e4e2b705be312223ebd0f6dfdbebb82c (diff) | |
YT-21081: improve temp directory structure, create subdirectory with username
commit_hash:004bb333221acac91378ce9fcc12ce091f38ee87
Diffstat (limited to 'yt/cpp/mapreduce/interface/config.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/interface/config.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yt/cpp/mapreduce/interface/config.cpp b/yt/cpp/mapreduce/interface/config.cpp index 0ed5cb57f8e..a6d33305103 100644 --- a/yt/cpp/mapreduce/interface/config.cpp +++ b/yt/cpp/mapreduce/interface/config.cpp @@ -26,6 +26,9 @@ namespace NYT { +const TString DefaultRemoteTempTablesDirectory = "//tmp/yt_wrapper/table_storage"; +const TString DefaultRemoteTempFilesDirectory = "//tmp/yt_wrapper/file_storage"; + //////////////////////////////////////////////////////////////////////////////// bool TConfig::GetBool(const char* var, bool defaultValue) @@ -219,12 +222,9 @@ void TConfig::Reset() ReadRetryCount = Max(GetInt("YT_READ_RETRY_COUNT", 30), 1); StartOperationRetryCount = Max(GetInt("YT_START_OPERATION_RETRY_COUNT", 30), 1); - RemoteTempFilesDirectory = GetEnv("YT_FILE_STORAGE", - "//tmp/yt_wrapper/file_storage"); - RemoteTempTablesDirectory = GetEnv("YT_TEMP_TABLES_STORAGE", - "//tmp/yt_wrapper/table_storage"); - RemoteTempTablesDirectory = GetEnv("YT_TEMP_DIR", - RemoteTempTablesDirectory); + RemoteTempFilesDirectory = GetEnv("YT_FILE_STORAGE", DefaultRemoteTempFilesDirectory); + RemoteTempTablesDirectory = GetEnv("YT_TEMP_TABLES_STORAGE", DefaultRemoteTempTablesDirectory); + RemoteTempTablesDirectory = GetEnv("YT_TEMP_DIR", RemoteTempTablesDirectory); KeepTempTables = GetBool("YT_KEEP_TEMP_TABLES"); InferTableSchema = false; |
