You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ramkumar Vadali (JIRA)" <ji...@apache.org> on 2012/06/29 00:28:42 UTC

[jira] [Created] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Ramkumar Vadali created HIVE-3215:
-------------------------------------

             Summary: JobDebugger should use RunningJob.getTrackingURL 
                 Key: HIVE-3215
                 URL: https://issues.apache.org/jira/browse/HIVE-3215
             Project: Hive
          Issue Type: Bug
          Components: CLI
            Reporter: Ramkumar Vadali
            Assignee: Ramkumar Vadali
            Priority: Minor


When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.

Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Zhenxiao Luo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403530#comment-13403530 ] 

Zhenxiao Luo commented on HIVE-3215:
------------------------------------

@Ramkumar:
This seems related to HIVE-2804, which is using  HostUtil.getTaskLogUrl to get the URL.
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Ramkumar Vadali (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramkumar Vadali updated HIVE-3215:
----------------------------------

    Attachment: HIVE-3215.2.patch
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-3215:
---------------------------------

    Component/s: Diagnosability
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Zhenxiao Luo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403536#comment-13403536 ] 

Zhenxiao Luo commented on HIVE-3215:
------------------------------------

@Ramkumar:

The patch is nice. How about also update the corresponding URL construction in HadoopJobExecHelper.java?
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>         Attachments: HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bhushan Mandhani updated HIVE-3215:
-----------------------------------

    Attachment: HIVE-3215.3.patch.txt
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bhushan Mandhani updated HIVE-3215:
-----------------------------------

    Status: Patch Available  (was: Open)
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Ramkumar Vadali (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramkumar Vadali updated HIVE-3215:
----------------------------------

    Attachment: HIVE-3215.patch
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>         Attachments: HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bhushan Mandhani updated HIVE-3215:
-----------------------------------

    Attachment: HIVE-3215.5.patch.txt

Refreshed patch.
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.5.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan updated HIVE-3215:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.10.0
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks, Bhushan!
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>             Fix For: 0.10.0
>
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.5.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Zhenxiao Luo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424056#comment-13424056 ] 

Zhenxiao Luo commented on HIVE-3215:
------------------------------------

@Bhushan:

Could you send a phabricator review request? I will take a look.

Thanks,
Zhenxiao
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bhushan Mandhani updated HIVE-3215:
-----------------------------------

    Status: Patch Available  (was: Open)
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.5.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Zhenxiao Luo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425446#comment-13425446 ] 

Zhenxiao Luo commented on HIVE-3215:
------------------------------------

@Bhushan:

There are lint problems in the patch in JobDebugger.java. Would you pleas fix them?

Thanks,
Zhenxiao
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496348#comment-13496348 ] 

Hudson commented on HIVE-3215:
------------------------------

Integrated in Hive-trunk-h0.21 #1794 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1794/])
    HIVE-3215 : JobDebugger should use RunningJob.getTrackingURL (Bhushan Mandhani via Ashutosh Chauhan) (Revision 1408803)

     Result = FAILURE
hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1408803
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/HadoopJobExecHelper.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/JobDebugger.java

                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>             Fix For: 0.10.0
>
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.5.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Zhenxiao Luo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425456#comment-13425456 ] 

Zhenxiao Luo commented on HIVE-3215:
------------------------------------


+1. New patch is good for me.

                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Zhenxiao Luo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403587#comment-13403587 ] 

Zhenxiao Luo commented on HIVE-3215:
------------------------------------

@Ramkumar:

Generally good to me, two things:

#1. I think it is OK to keep the following:
-        String taskUrl = (jtUrl == null) ? "Unavailable" :
-        jtUrl + "/taskdetails.jsp?jobid=" + jobId + "&tipid=" + task.toString();

-          sb.append("URL:\n  " + taskUrl + "\n");

Is there a reason to get rid of these info?

#2. I just checked, the only usage of JobTrackerURLResolver is:

[~/Code/studyHive]find . -name *.java | xargs grep JobTrackerURLResolver.
./ql/src/java/org/apache/hadoop/hive/ql/exec/JobDebugger.java:      jtUrl = JobTrackerURLResolver.getURL(conf);
./ql/src/java/org/apache/hadoop/hive/ql/exec/JobTrackerURLResolver.java: * JobTrackerURLResolver.
./ql/src/java/org/apache/hadoop/hive/ql/exec/JobTrackerURLResolver.java:public final class JobTrackerURLResolver {
./ql/src/java/org/apache/hadoop/hive/ql/exec/JobTrackerURLResolver.java:  private JobTrackerURLResolver() {
./ql/src/java/org/apache/hadoop/hive/ql/exec/HadoopJobExecHelper.java:    String jtUrl = JobTrackerURLResolver.getURL(conf);
./ql/src/java/org/apache/hadoop/hive/ql/exec/Throttle.java:      String tracker = JobTrackerURLResolver.getURL(conf) + "/gc.jsp?threshold=" + threshold;

How about also update Throttle.java, and retire JobTrackerURLResolver.java at all?

Thanks,
Zhenxiao
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-3215:
---------------------------------

    Status: Open  (was: Patch Available)
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Ramkumar Vadali (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403648#comment-13403648 ] 

Ramkumar Vadali commented on HIVE-3215:
---------------------------------------

The task URL is constructed using hardcoded URI like taskdetails.jsp. It will be better to have the job tracking URL and the task ID instead.
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bhushan Mandhani reassigned HIVE-3215:
--------------------------------------

    Assignee: Bhushan Mandhani  (was: Ramkumar Vadali)
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425447#comment-13425447 ] 

Bhushan Mandhani commented on HIVE-3215:
----------------------------------------

Uploaded updated patch.
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Zhenxiao Luo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425439#comment-13425439 ] 

Zhenxiao Luo commented on HIVE-3215:
------------------------------------

@Bhushan:

+1 
Good for me.

Running OK on MiniMRCluster. Needs to confirm it runs good on real cluster and local mode.
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bhushan Mandhani updated HIVE-3215:
-----------------------------------

    Attachment: HIVE-3215.4.patch.txt
    
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Ramkumar Vadali (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403539#comment-13403539 ] 

Ramkumar Vadali commented on HIVE-3215:
---------------------------------------

Zhenxiao, Thanks for the comments. I will incorporate it.

HIVE-2804 is related, but this could be done independent of that jira.

                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>         Attachments: HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Bhushan Mandhani (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424101#comment-13424101 ] 

Bhushan Mandhani commented on HIVE-3215:
----------------------------------------

Phabricator diff is at https://reviews.facebook.net/D4401
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495967#comment-13495967 ] 

Ashutosh Chauhan commented on HIVE-3215:
----------------------------------------

+1 will commit, if tests pass.
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Diagnosability
>            Reporter: Ramkumar Vadali
>            Assignee: Bhushan Mandhani
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.3.patch.txt, HIVE-3215.4.patch.txt, HIVE-3215.5.patch.txt, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3215) JobDebugger should use RunningJob.getTrackingURL

Posted by "Ramkumar Vadali (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403607#comment-13403607 ] 

Ramkumar Vadali commented on HIVE-3215:
---------------------------------------

I can revert the taskUrl changes.
Throttle.java is checking the job tracker if its ok to start a new job, so there is no running job instance available. So that cannot be avoided.
                
> JobDebugger should use RunningJob.getTrackingURL 
> -------------------------------------------------
>
>                 Key: HIVE-3215
>                 URL: https://issues.apache.org/jira/browse/HIVE-3215
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>            Priority: Minor
>         Attachments: HIVE-3215.2.patch, HIVE-3215.patch
>
>
> When a MR job fails, the JobDebugger tries to construct the job tracker URL by connecting to the job tracker, but that is better done by using RunningJob#getTrackingURL.
> Also, it tries to construct URLs to the tasks, which is not reliable, because the job could have been retired and the URL would not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira