[ 
https://issues.apache.org/jira/browse/GOBBLIN-1047?focusedWorklogId=385536&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-385536
 ]

ASF GitHub Bot logged work on GOBBLIN-1047:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Feb/20 23:33
            Start Date: 11/Feb/20 23:33
    Worklog Time Spent: 10m 
      Work Description: sv2000 commented on pull request #2887: GOBBLIN-1047: 
Add Helix and Yarn container metadata to all task event…
URL: https://github.com/apache/incubator-gobblin/pull/2887#discussion_r377962610
 
 

 ##########
 File path: 
gobblin-api/src/main/java/org/apache/gobblin/util/TaskEventMetadataUtils.java
 ##########
 @@ -0,0 +1,42 @@
+/*
+ * 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.gobblin.util;
+
+import org.apache.gobblin.configuration.ConfigurationKeys;
+import org.apache.gobblin.configuration.State;
+import org.apache.gobblin.runtime.api.TaskEventMetadataGenerator;
+
+public class TaskEventMetadataUtils {
+  /**
+   * Construct a {@link TaskEventMetadataGenerator} from the task state.
+   * @param taskState
+   * @return
+   */
+  public static TaskEventMetadataGenerator getTaskEventMetadataGenerator(State 
taskState) {
 
 Review comment:
   Yes, initially tried to put it in TaskUtils. Had to move it to gobblin-api 
module to make it available for the various classes that emit Task events.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 385536)
    Time Spent: 40m  (was: 0.5h)

> Add Helix and Yarn container metadata to all task events emitted by Gobblin 
> Helix tasks
> ---------------------------------------------------------------------------------------
>
>                 Key: GOBBLIN-1047
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1047
>             Project: Apache Gobblin
>          Issue Type: Improvement
>          Components: gobblin-cluster
>    Affects Versions: 0.15.0
>            Reporter: Sudarshan Vasudevan
>            Assignee: Hung Tran
>            Priority: Major
>             Fix For: 0.15.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> This PR implements a Task metadata generator to enable Helix and Yarn 
> container metadata to events emitted by Gobblin Helix tasks. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to