GitHub user sarutak opened a pull request:

    https://github.com/apache/spark/pull/12257

    [SPARK-14483][WEBUI] Display user name for each job and query

    ## What changes were proposed in this pull request?
    
    #12123 (SPARK-14245) introduced displaying user name who runs jobs on 
AllJobsPage.                                                                    
                 
    User names are pulled from the system property "user.name" but the property 
means who runs an application and each jobs in a n application can be run by 
different users.                                                                
                                                                                
     
    One example is the case of using ThriftServer.                              
                                                                                
  
    ThriftServer is run by a user but queries are not always submitted by the 
user.                                                                           
     
                                                                                
                                                                                
  
    This patch resolve this issue and displaying user name for each job and 
query on WebUI.                                                                 
      
    Following screenshots are the example of querying through ThriftServer run 
by root.                                                                        
   
                                                                                
                                                                                
  
    * AllJobsPage(Before)
    
    
![alljobspage-before](https://cloud.githubusercontent.com/assets/4736016/14376859/15194c1c-fda7-11e5-8262-dc2faf4af1c2.png)
                                                      
    * AllJobsPage(After)
    
    
![alljobspage](https://cloud.githubusercontent.com/assets/4736016/14376871/28910596-fda7-11e5-81fb-9ffa6fa99940.png)
    
    * JobPage(Before) 
    
    
![jobpage-before](https://cloud.githubusercontent.com/assets/4736016/14376880/406ad124-fda7-11e5-9807-d386d31ddba4.png)
    
    * JobPage(After) 
    
    
![jobpage](https://cloud.githubusercontent.com/assets/4736016/14376885/4ce92f22-fda7-11e5-9134-0b21a1e3e9e9.png)
    
    * AllExecutionsPage(Before)
    
    
![allexecutionspage-before](https://cloud.githubusercontent.com/assets/4736016/14376889/615d30c0-fda7-11e5-81ae-8fcff93d60a9.png)
    
    
    * AllExecutionsPage(After)
    
    
![allexecutionpage](https://cloud.githubusercontent.com/assets/4736016/14376895/6c39befa-fda7-11e5-9f91-9cf90c2ede8e.png)
    
    
    * ExecutionPage(Before) 
    
    
![executionpage-before](https://cloud.githubusercontent.com/assets/4736016/14376901/78e5a6a0-fda7-11e5-9bc6-b8e5bd115ddc.png)
    
    
    * ExecutionPage(After)
    
    
![executionpage](https://cloud.githubusercontent.com/assets/4736016/14376905/808fb44a-fda7-11e5-97c7-390a5f64bf12.png)
    
    
    Of course, we can see user name when we use HistoryServer.    
    
    ## How was this patch tested?
    
    Run some queries through ThriftServer and checked UI including 
HistoryServer.
    
    
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sarutak/spark job-user

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12257.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12257
    
----
commit 84c98050a23d9db2f212fd26326812cd7c8a5002
Author: Kousuke Saruta <[email protected]>
Date:   2016-04-07T18:08:33Z

    tmp

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to