Choose a subnet for the cluster in an Availability Zone where the instance type

Choose a subnet for the cluster in an availability

This preview shows page 380 - 382 out of 395 pages.

Choose a subnet for the cluster in an Availability Zone where the instance type is available and supported by Amazon EMR. EC2 is Out of Capacity An "EC2 is out of capacity for InstanceType " error occurs when a cluster is created, or instances are added to a cluster, and there are no more of that EC2 instance type in the Region or Availability Zone because of demand. The subnet that you select for a cluster determines the Availability Zone. If you are creating a cluster, you can specify a different instance type with similar capabilities or create the cluster in a different Region or select a subnet in an Availability Zone where the instance type you want might be available. If instances are being added to a running cluster, you can modify instance group configurations or instance fleet configurations to add available instance types with similar capabilities. For a list of supported instance types, see Supported Instance Types (p. 106) . To compare capabilities of EC2 instance types, see Amazon EC2 Instance Types . You can also terminate the cluster and recreate it in a Region and Availability Zone where the instance type is available. Streaming Cluster Errors You can usually find the cause of a streaming error in a syslog file. Link to it on the Steps pane. The following errors are common to streaming clusters. Topics Is data being sent to the mapper in the wrong format? (p. 375) Is your script timing out? (p. 375) Are you passing in invalid streaming arguments? (p. 375) Did your script exit with an error? (p. 375) 374
Image of page 380
Amazon EMR Management Guide Custom JAR Cluster Errors Is data being sent to the mapper in the wrong format? To check if this is the case, look for an error message in the syslog file of a failed task attempt in the task attempt logs. For more information, see View Log Files (p. 283) . Is your script timing out? The default timeout for a mapper or reducer script is 600 seconds. If your script takes longer than this, the task attempt will fail. You can verify this is the case by checking the syslog file of a failed task attempt in the task attempt logs. For more information, see View Log Files (p. 283) . You can change the time limit by setting a new value for the mapred.task.timeout configuration setting. This setting specifies the number of milliseconds after which Amazon EMR will terminate a task that has not read input, written output, or updated its status string. You can update this value by passing an additional streaming argument -jobconf mapred.task.timeout=800000 . Are you passing in invalid streaming arguments? Hadoop streaming supports only the following arguments. If you pass in arguments other than those listed below, the cluster will fail. -blockAutoGenerateCacheFiles -cacheArchive -cacheFile -cmdenv -combiner -debug -input -inputformat -inputreader -jobconf -mapper -numReduceTasks -output -outputformat -partitioner -reducer -verbose In addition, Hadoop streaming only recognizes arguments passed in using Java syntax; that is, preceded by a single hyphen. If you pass in arguments preceded by a double hyphen, the cluster will fail.
Image of page 381
Image of page 382

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors