From 2dc0b90341ba0adaa79f54a751f4e9fb8c1f2636 Mon Sep 17 00:00:00 2001 From: ermolovd Date: Fri, 7 Feb 2025 11:41:21 +0300 Subject: YT-21081: improve temp directory structure, create subdirectory with username commit_hash:004bb333221acac91378ce9fcc12ce091f38ee87 --- yt/cpp/mapreduce/interface/config.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'yt/cpp/mapreduce/interface/config.cpp') 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; -- cgit v1.3