Skip to content

Commit 608eeb7

Browse files
author
slfan1989
committed
YARN-11515. Fix CheckStyle.
1 parent e1c9686 commit 608eeb7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/DefaultClientRequestInterceptor.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ public class DefaultClientRequestInterceptor
116116
@Override
117117
public void init(String userName) {
118118
super.init(userName);
119-
120-
final Configuration conf = this.getConf();
121119
try {
122-
clientRMProxy =
123-
user.doAs((PrivilegedExceptionAction<ApplicationClientProtocol>) () ->
124-
ClientRMProxy.createRMProxy(conf, ApplicationClientProtocol.class));
120+
final Configuration conf = this.getConf();
121+
clientRMProxy = user.doAs(
122+
(PrivilegedExceptionAction<ApplicationClientProtocol>) () ->
123+
ClientRMProxy.createRMProxy(conf, ApplicationClientProtocol.class));
125124
} catch (Exception e) {
126125
String message = "Error while creating Router RMClient Service";
127126
if (user != null) {

0 commit comments

Comments
 (0)