Package com.mapr.cli

Class SetupYarnAppLogLinks


  • public final class SetupYarnAppLogLinks
    extends java.lang.Object
    Sets up links for logs generated by a YARN application. The logs for each container can be classified into one or more ways. This allows us to easily focus on the logs of interest. 1. Host: Container ran on that host 2. Mapper: Container ran a map task 3. Reducer: Container ran a reduce task So for a mapreduce app, the directory structure will look like this:
     /path/to/log/dir/app_id/hosts
     /path/to/log/dir/app_id/hosts/host1/container1/syslog
     /path/to/log/dir/app_id/hosts/host1/container1/stdout
     /path/to/log/dir/app_id/hosts/host1/container1/stderr
    
     /path/to/log/dir/app_id/hosts/host2/container2/syslog
     /path/to/log/dir/app_id/hosts/host2/container2/stdout
     /path/to/log/dir/app_id/hosts/host2/container2/stderr
    
     /path/to/log/dir/app_id/mappers
     /path/to/log/dir/app_id/mappers/container1/syslog
     /path/to/log/dir/app_id/mappers/container1/stdout
     /path/to/log/dir/app_id/mappers/container1/stderr
    
     /path/to/log/dir/app_id/reducers
     /path/to/log/dir/app_id/reducers/container1/syslog
     /path/to/log/dir/app_id/reducers/container1/stdout
     /path/to/log/dir/app_id/reducers/container1/stderr
     
    • Constructor Summary

      Constructors 
      Constructor Description
      SetupYarnAppLogLinks​(java.lang.String appIdStr, java.lang.String targetBaseDir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SetupYarnAppLogLinks

        public SetupYarnAppLogLinks​(java.lang.String appIdStr,
                                    java.lang.String targetBaseDir)
    • Method Detail

      • run

        public void run()
                 throws org.apache.hadoop.yarn.exceptions.YarnException,
                        java.io.IOException
        Throws:
        org.apache.hadoop.yarn.exceptions.YarnException
        java.io.IOException