Hive报错 return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask
报错场景是这样的我创建了一个学生表student1,和学生分区表studentpar2,那么现在我要根据student1中的学生性别动态向studentpar2中加载数据sql语句为insert into table studentpar2 partition(sex) select* from student1;然后就报错查啦很多资料,内存问题在Hadoop的配置文件mapred-site.xm
·
报错场景是这样的我创建了一个学生表student1,和学生分区表studentpar2,那么现在我要根据student1中的学生性别动态向studentpar2中加载数据
sql语句为
insert into table studentpar2 partition(sex) select
* from student1;
然后就报错
查啦很多资料,内存问题
在Hadoop的配置文件mapred-site.xml添加
<property>
<name>mapreduce.map.memory.mb</name>
<value>1536</value>
</property>
<property>
<name>mapreduce.map.java.opts</name>
<value>-Xmx1024M</value>
</property>
<property>
<name>mapreduce.reduce.memory.mb</name>
<value>3072</value>
</property>
<property>
<name>mapreduce.reduce.java.opts</name>
<value>-Xmx2560M</value>
</property>
重启集群
ok搞定
更多推荐
所有评论(0)