From 24a44df2ab01109cefd64d4bfad05c66e7ebd2af Mon Sep 17 00:00:00 2001 From: annashest18 Date: Sun, 22 Oct 2023 13:19:53 +0300 Subject: add using http-proxy for reading table from YT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add using http-proxy for reading table from YT Нам нужна возможность ходить в YT через HTTP proxy для чтения таблиц, используя С++ клиент не из контура Яндекса, к сожалению, сейчас такой возможности нет. В этом ПР черновик изменения, которого нам достаточно https://a.yandex-team.ru/review/4676436/details - тут это же изменение в YT + коммит с тем, как мы планируем использовать --- yt/cpp/mapreduce/client/file_reader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yt/cpp/mapreduce/client/file_reader.cpp') diff --git a/yt/cpp/mapreduce/client/file_reader.cpp b/yt/cpp/mapreduce/client/file_reader.cpp index 5454b9b11f6..57131e5330b 100644 --- a/yt/cpp/mapreduce/client/file_reader.cpp +++ b/yt/cpp/mapreduce/client/file_reader.cpp @@ -149,6 +149,8 @@ NHttpClient::IHttpResponsePtr TFileReader::Request(const TClientContext& context header.SetImpersonationUser(*context.ImpersonationUser); } + UpdateHeaderForProxyIfNeed(hostName, context, header); + header.AddTransactionId(transactionId); header.SetOutputFormat(TMaybe()); // Binary format @@ -208,6 +210,8 @@ NHttpClient::IHttpResponsePtr TBlobTableReader::Request(const TClientContext& co header.SetImpersonationUser(*context.ImpersonationUser); } + UpdateHeaderForProxyIfNeed(hostName, context, header); + header.AddTransactionId(transactionId); header.SetOutputFormat(TMaybe()); // Binary format -- cgit v1.3