flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atsikiridis <...@git.apache.org>
Subject [GitHub] incubator-flink pull request: hadoopcompatibility: Implementations...
Date Mon, 04 Aug 2014 05:50:47 GMT
Github user atsikiridis commented on a diff in the pull request:

    --- Diff: flink-addons/flink-hadoop-compatibility/src/main/java/org/apache/flink/hadoopcompatibility/mapred/FlinkHadoopJobClient.java
    @@ -0,0 +1,427 @@
    + * 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.
    + */
    +package org.apache.flink.hadoopcompatibility.mapred;
    +import org.apache.commons.logging.Log;
    +import org.apache.commons.logging.LogFactory;
    +import org.apache.flink.api.common.io.OutputFormat;
    +import org.apache.flink.api.java.ExecutionEnvironment;
    +import org.apache.flink.api.java.operators.DataSource;
    +import org.apache.flink.api.java.operators.FlatMapOperator;
    +import org.apache.flink.api.java.operators.ReduceGroupOperator;
    +import org.apache.flink.api.java.operators.UnsortedGrouping;
    +import org.apache.flink.api.java.typeutils.TypeExtractor;
    +import org.apache.flink.configuration.ConfigConstants;
    +import org.apache.flink.configuration.GlobalConfiguration;
    +import org.apache.flink.types.TypeInformation;
    +import org.apache.hadoop.conf.Configuration;
    +import org.apache.hadoop.fs.FileSystem;
    +import org.apache.hadoop.fs.Path;
    +import org.apache.hadoop.io.Text;
    +import org.apache.hadoop.mapred.ClusterStatus;
    +import org.apache.hadoop.mapred.Counters;
    +import org.apache.hadoop.mapred.InputFormat;
    +import org.apache.hadoop.mapred.JobClient;
    +import org.apache.hadoop.mapred.JobConf;
    +import org.apache.hadoop.mapred.JobID;
    +import org.apache.hadoop.mapred.JobQueueInfo;
    +import org.apache.hadoop.mapred.JobStatus;
    +import org.apache.hadoop.mapred.Reducer;
    +import org.apache.hadoop.mapred.RunningJob;
    +import org.apache.hadoop.mapred.TaskAttemptID;
    +import org.apache.hadoop.mapred.TaskCompletionEvent;
    +import org.apache.hadoop.mapred.TaskReport;
    +import org.apache.hadoop.mapred.lib.HashPartitioner;
    +import org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier;
    +import org.apache.hadoop.security.token.Token;
    +import java.io.IOException;
    + * The user's view of a Hadoop Job executed on a Flink cluster.
    + */
    +public class FlinkHadoopJobClient extends JobClient {
    +	private final static int TASK_SLOTS = GlobalConfiguration.getInteger(ConfigConstants.TASK_MANAGER_NUM_TASK_SLOTS,
    --- End diff --
    So would it be safe to assume that if the slots have not been set ( = -1) this is obviously
an IDE run and slots should be equal to the max DOP ?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message