Skip to content

Commit

Permalink
Follow checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
okumin committed Dec 18, 2023
1 parent 2ede93e commit e33316d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@Private
package org.apache.tez.runtime.hook;

import org.apache.hadoop.classification.InterfaceAudience.Private;
Original file line number Diff line number Diff line change
Expand Up @@ -2586,7 +2586,7 @@ private void startDAGExecution(DAG dag, final Map<String, LocalResource> additio
currentDAG = dag;
final Configuration conf = dag.getConf();
final String[] hookClasses = conf.getStrings(TezConfiguration.TEZ_AM_HOOKS, new String[0]);
final TezDAGHook[] hooks = new TezDAGHook[hookClasses.length];
hooks = new TezDAGHook[hookClasses.length];
for (int i = 0; i < hooks.length; i++) {
hooks[i] = ReflectionUtils.createClazzInstance(hookClasses[i]);
hooks[i].start(dag.getID(), conf);
Expand Down

0 comments on commit e33316d

Please sign in to comment.