Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-2183

Print Jobmodel when job fails with incorrect container count

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • None
    • None

    Description

      When a job fails to start due to the following exception, would be helpful to print the job model also 

       

      Exception in thread "main" java.lang.IllegalArgumentException: Your container count (32) is larger than your task count (10). Can't have containers with nothing to do, so aborting. at org.apache.samza.container.grouper.task.GroupByContainerCount.validateTasks(GroupByContainerCount.java:212) at org.apache.samza.container.grouper.task.GroupByContainerCount.group(GroupByContainerCount.java:62) at org.apache.samza.container.grouper.task.TaskNameGrouper.group(TaskNameGrouper.java:56) at org.apache.samza.coordinator.JobModelManager$.readJobModel(JobModelManager.scala:208) at org.apache.samza.coordinator.JobModelManager$.getJobModelManager(JobModelManager.scala:97) at org.apache.samza.coordinator.JobModelManager$.apply(JobModelManager.scala:83) at org.apache.samza.coordinator.JobModelManager.apply(JobModelManager.scala) at org.apache.samza.clustermanager.ClusterBasedJobCoordinator.<init>(ClusterBasedJobCoordinator.java:177) at org.apache.samza.clustermanager.ClusterBasedJobCoordinator.main(ClusterBasedJobCoordinator.java:343)
       

      Attachments

        Issue Links

          Activity

            People

              lhaiesp Hai Lu
              lhaiesp Hai Lu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m