Set mapred.child.java.opts=-xmx2048m;

Source: Internet
Author: User

Today development ran the Hive task error:

Query ID = gsadmin_20171113143046_07c2e5ee-c0e3-4624-8947-538e410bbc2b

Total Jobs = 1

Launching Job 1 out of 1

Number of reduce tasks not specified. Estimated from input data size:1009

In order to change the average load for a reducer (in bytes):

Set hive.exec.reducers.bytes.per.reducer=<number>

In order to limit the maximum number of reducers:

Set hive.exec.reducers.max=<number>

In order to set a constant number of reducers:

Set mapreduce.job.reduces=<number>

Starting Job = job_1510045652060_3118, Tracking URL = http://TS-HELIUM-002:8088/proxy/application_1510045652060_3118/

Kill Command =/var/gs/hadoop/bin/hadoop Job-kill job_1510045652060_3118

Hadoop Job information for Stage-1: number of mappers:31175; Number of reducers:1009

2017-11-13 14:31:14,929 Stage-1 map = 0, reduce = 0%

2017-11-13 14:31:36,729 Stage-1 map = 57%, reduce = 0%

2017-11-13 14:31:37,790 Stage-1 map = 100%, reduce = 100%

Ended Job = job_1510045652060_3118 with errors

Examining Task id:task_1510045652060_3118_m_000097 (and more) from job

Task with the most failures (4):

-----

Task ID:

task_1510045652060_3118_m_000014


Url:

Http://TS-HELIUM-002:8088/taskdetails.jsp?jobid=job_1510045652060_3118&tipid=task_1510045652060_3118_m_ 000014

-----

Diagnostic Messages for this Task:

Error:java Heap Space

Container killed by the Applicationmaster.

Container killed on request. Exit Code is 143

Container exited with a Non-zero exit code 143



View mapred.child.java.opts=200m, online view default is 200M


[Email protected]:~$ Hive

Logging initialized using configuration in File:/var/gs/conf/hive/hive-log4j.properties

Hive> set mapred.child.java.opts;

mapred.child.java.opts=-xmx200m


Workaround:

After landing hive execution: Hive>set mapred.child.java.opts=-xmx2048m;

Then execute the corresponding SQL

This article comes from "Plum blossom fragrance from bitter cold!" "Blog, be sure to keep this provenance http://daixuan.blog.51cto.com/5426657/1981272

Set mapred.child.java.opts=-xmx2048m;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.