Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-2344

In UI, formatting of logs is messy

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: Log, UI
    • Labels:
    • Sprint:
      FE Sprint 1 ending 06/15
    • Rank:
      1|hzy7fj:

      Description

      Stack traces are missing the line breaks and indentation. A log that looks like this in the cdap-debug.log file:

      2015-04-28 19:17:14,760 - ERROR [MapReduceRunner-HiveCounter:c.c.c.i.a.r.b.MapReduceRuntimeService@301] - Exception when submitting MapReduce Job: job=HiveCounter,=namespaceId=default, applicationId=SportResults, program=HiveCounter, runid=d474b624-ee15-11e4-a86e-0e3dd7e64ad9
      java.lang.RuntimeException: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory /opt/cdap-sdk-3.0.0-SNAPSHOT/data/namespaces/default/data/totals/files/nfl already exists
              at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[co.cask.cdap.cdap-cli-3.0.0-SNAPSHOT.jar:na]
              at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService.startUp(MapReduceRuntimeService.java:286) ~[co.cask.cdap.cdap-app-fabric-3.0.0-SNAPSHOT.jar:na]
              at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:47) [co.cask.cdap.cdap-cli-3.0.0-SNAPSHOT.jar:na]
              at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService$2$1.run(MapReduceRuntimeService.java:390) [co.cask.cdap.cdap-app-fabric-3.0.0-SNAPSHOT.jar:na]
              at java.lang.Thread.run(Thread.java:695) [na:1.6.0_65]
      Caused by: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory /opt/cdap-sdk-3.0.0-SNAPSHOT/data/namespaces/default/data/totals/files/nfl already exists
              at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:146) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na]
              at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:458) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na]
              at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:343) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na]
              at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na]
              at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1282) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na]
              at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_65]
              at javax.security.auth.Subject.doAs(Subject.java:394) ~[na:1.6.0_65]
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548) ~[org.apache.hadoop.hadoop-common-2.3.0.jar:na]
              at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na]
              at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService.startUp(MapReduceRuntimeService.java:279) ~[co.cask.cdap.cdap-app-fabric-3.0.0-SNAPSHOT.jar:na]
              ... 3 common frames omitted
      

      looks like this in the UI:

      2015-04-28 19:17:14,760 - ERROR [MapReduceRunner-HiveCounter:c.c.c.i.a.r.b.MapReduceRuntimeService@301] - Exception when submitting MapReduce Job: job=HiveCounter,=namespaceId=default, applicationId=SportResults, program=HiveCounter, runid=d474b624-ee15-11e4-a86e-0e3dd7e64ad9 java.lang.RuntimeException: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory /opt/cdap-sdk-3.0.0-SNAPSHOT/data/namespaces/default/data/totals/files/nfl already exists at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[co.cask.cdap.cdap-cli-3.0.0-SNAPSHOT.jar:na] at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService.startUp(MapReduceRuntimeService.java:286) ~[co.cask.cdap.cdap-app-fabric-3.0.0-SNAPSHOT.jar:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:47) [co.cask.cdap.cdap-cli-3.0.0-SNAPSHOT.jar:na] at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService$2$1.run(MapReduceRuntimeService.java:390) [co.cask.cdap.cdap-app-fabric-3.0.0-SNAPSHOT.jar:na] at java.lang.Thread.run(Thread.java:695) [na:1.6.0_65] Caused by: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory /opt/cdap-sdk-3.0.0-SNAPSHOT/data/namespaces/default/data/totals/files/nfl already exists at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:146) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na] at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:458) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na] at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:343) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na] at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na] at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1282) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_65] at javax.security.auth.Subject.doAs(Subject.java:394) ~[na:1.6.0_65] at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548) ~[org.apache.hadoop.hadoop-common-2.3.0.jar:na] at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282) ~[org.apache.hadoop.hadoop-mapreduce-client-core-2.3.0.jar:na] at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService.startUp(MapReduceRuntimeService.java:279) ~[co.cask.cdap.cdap-app-fabric-3.0.0-SNAPSHOT.jar:na] ... 3 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                edwin Edwin Elia
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: