您好,欢迎访问一九零五行业门户网

Hadoop Hive No address associated with hostname

今天进行了hive的迁移,出现了如下的异常。 total mapreduce jobs = 1launching job 1 out of 1number of reduce tasks determined at compile time: 1in order to change the average load for a reducer in bytes: set hive.exec.reducers.bytes.per.reduc
今天进行了hive的迁移,出现了如下的异常。
total mapreduce jobs = 1launching job 1 out of 1number of reduce tasks determined at compile time: 1in order to change the average load for a reducer (in bytes): set hive.exec.reducers.bytes.per.reducer=in order to limit the maximum number of reducers: set hive.exec.reducers.max=in order to set a constant number of reducers: set mapred.reduce.tasks=java.net.unknownhostexception: xxx.test.cn: xxx.test.cn: no address associated with hostname at java.net.inetaddress.getlocalhost(inetaddress.java:1473) at org.apache.hadoop.mapred.jobclient$2.run(jobclient.java:866) at org.apache.hadoop.mapred.jobclient$2.run(jobclient.java:842) at java.security.accesscontroller.doprivileged(native method) at javax.security.auth.subject.doas(subject.java:415) at org.apache.hadoop.security.usergroupinformation.doas(usergroupinformation.java:1059) at org.apache.hadoop.mapred.jobclient.submitjobinternal(jobclient.java:842) at org.apache.hadoop.mapred.jobclient.submitjob(jobclient.java:816) at org.apache.hadoop.hive.ql.exec.execdriver.execute(execdriver.java:452) at org.apache.hadoop.hive.ql.exec.mapredtask.execute(mapredtask.java:136) at org.apache.hadoop.hive.ql.exec.task.executetask(task.java:133) at org.apache.hadoop.hive.ql.exec.taskrunner.runsequential(taskrunner.java:57) at org.apache.hadoop.hive.ql.driver.launchtask(driver.java:1361) at org.apache.hadoop.hive.ql.driver.execute(driver.java:1152) at org.apache.hadoop.hive.ql.driver.run(driver.java:960) at org.apache.hadoop.hive.cli.clidriver.processlocalcmd(clidriver.java:255) at org.apache.hadoop.hive.cli.clidriver.processcmd(clidriver.java:212) at org.apache.hadoop.hive.cli.clidriver.processline(clidriver.java:403) at org.apache.hadoop.hive.cli.clidriver.run(clidriver.java:671) at org.apache.hadoop.hive.cli.clidriver.main(clidriver.java:554) at sun.reflect.nativemethodaccessorimpl.invoke0(native method) at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) at java.lang.reflect.method.invoke(method.java:606) at org.apache.hadoop.util.runjar.main(runjar.java:156)caused by: java.net.unknownhostexception: kooxoo90-111.kuxun.cn: no address associated with hostname at java.net.inet6addressimpl.lookupallhostaddr(native method) at java.net.inetaddress$1.lookupallhostaddr(inetaddress.java:901) at java.net.inetaddress.getaddressesfromnameservice(inetaddress.java:1293) at java.net.inetaddress.getlocalhost(inetaddress.java:1469) ... 24 morejob submission failed with exception 'java.net.unknownhostexception(xxx.test.cn: xxx.test.cn: no address associated with hostname)'failed: execution error, return code 1 from org.apache.hadoop.hive.ql.exec.mapredtask
后续发现,在新的服务器中,只注意了进行hostname的设置,但是并没有在/etc/hosts文件中增加
127.0.0.1 xxx.test.cn
的映射。
hosts配置后,正常运行。 原文地址:hadoop hive no address associated with hostname, 感谢原作者分享。
其它类似信息

推荐信息