[
https://issues.apache.org/jira/browse/TEZ-4600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
László Bodor reassigned TEZ-4600:
---------------------------------
Assignee: László Bodor
> JobTokenSecretManager should respect the algorithm set by hadoop
> ----------------------------------------------------------------
>
> Key: TEZ-4600
> URL: https://issues.apache.org/jira/browse/TEZ-4600
> Project: Apache Tez
> Issue Type: Bug
> Reporter: László Bodor
> Assignee: László Bodor
> Priority: Major
>
> after YARN-11738, hadoop can use a core-site config to use a default algorithm
> in case of a mismatch (as tez uses the hardcoded value from TEZ-1596), the
> dagClient and server communication fails with:
> {code}
> Caused by: org.apache.hadoop.ipc.RemoteException: DIGEST-SHA: digest response
> format violation. Mismatched response.
> {code}
> need to port hadoop changes to tez, like this below:
> https://github.com/apache/hadoop/commit/b9060fc00df89a4c73d5b98947688b200b79901f
> {code}
> static {
> Configuration conf = new Configuration();
> String algorithm = conf.get(
>
> CommonConfigurationKeysPublic.HADOOP_SECURITY_SECRET_MANAGER_KEY_GENERATOR_ALGORITHM_KEY,
>
> CommonConfigurationKeysPublic.HADOOP_SECURITY_SECRET_MANAGER_KEY_GENERATOR_ALGORITHM_DEFAULT);
> LOG.info("Selected hash algorithm: {}", algorithm);
> SELECTED_ALGORITHM = algorithm;
> int length = conf.getInt(
>
> CommonConfigurationKeysPublic.HADOOP_SECURITY_SECRET_MANAGER_KEY_LENGTH_KEY,
>
> CommonConfigurationKeysPublic.HADOOP_SECURITY_SECRET_MANAGER_KEY_LENGTH_DEFAULT);
> LOG.info("Selected hash key length:{}", length);
> SELECTED_LENGTH = length;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)