set mapred.child.java.opts=-Xmx2048M;

來源:互聯網
上載者:User

標籤:set mapred.child.java.opts=-xmx2048m;

今天開發跑了hive任務報錯:

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



查看mapred.child.java.opts=200M,網上查看預設值就是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


解決辦法:

登陸hive後執行:hive>set mapred.child.java.opts=-Xmx2048M;

再執行對應的sql

本文出自 “梅花香自苦寒來!” 部落格,請務必保留此出處http://daixuan.blog.51cto.com/5426657/1981272

set mapred.child.java.opts=-Xmx2048M;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.