Hadoop Hive No address associated with hostname

php中文网
发布: 2016-06-07 16:38:25
原创
1726人浏览过

今天进行了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 &#40;in bytes&#41;:  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 mapred.reduce.tasks=<number>java.net.UnknownHostException: xxx.test.cn: xxx.test.cn: No address associated with hostname        at java.net.InetAddress.getLocalHost&#40;InetAddress.java:1473&#41;        at org.apache.hadoop.mapred.JobClient$2.run&#40;JobClient.java:866&#41;        at org.apache.hadoop.mapred.JobClient$2.run&#40;JobClient.java:842&#41;        at java.security.AccessController.doPrivileged&#40;Native Method&#41;        at javax.security.auth.Subject.doAs&#40;Subject.java:415&#41;        at org.apache.hadoop.security.UserGroupInformation.doAs&#40;UserGroupInformation.java:1059&#41;        at org.apache.hadoop.mapred.JobClient.submitJobInternal&#40;JobClient.java:842&#41;        at org.apache.hadoop.mapred.JobClient.submitJob&#40;JobClient.java:816&#41;        at org.apache.hadoop.hive.ql.exec.ExecDriver.execute&#40;ExecDriver.java:452&#41;        at org.apache.hadoop.hive.ql.exec.MapRedTask.execute&#40;MapRedTask.java:136&#41;        at org.apache.hadoop.hive.ql.exec.Task.executeTask&#40;Task.java:133&#41;        at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential&#40;TaskRunner.java:57&#41;        at org.apache.hadoop.hive.ql.Driver.launchTask&#40;Driver.java:1361&#41;        at org.apache.hadoop.hive.ql.Driver.execute&#40;Driver.java:1152&#41;        at org.apache.hadoop.hive.ql.Driver.run&#40;Driver.java:960&#41;        at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd&#40;CliDriver.java:255&#41;        at org.apache.hadoop.hive.cli.CliDriver.processCmd&#40;CliDriver.java:212&#41;        at org.apache.hadoop.hive.cli.CliDriver.processLine&#40;CliDriver.java:403&#41;        at org.apache.hadoop.hive.cli.CliDriver.run&#40;CliDriver.java:671&#41;        at org.apache.hadoop.hive.cli.CliDriver.main&#40;CliDriver.java:554&#41;        at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;        at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java:57&#41;        at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java:43&#41;        at java.lang.reflect.Method.invoke&#40;Method.java:606&#41;        at org.apache.hadoop.util.RunJar.main&#40;RunJar.java:156&#41;Caused by: java.net.UnknownHostException: kooxoo90-111.kuxun.cn: No address associated with hostname        at java.net.Inet6AddressImpl.lookupAllHostAddr&#40;Native Method&#41;        at java.net.InetAddress$1.lookupAllHostAddr&#40;InetAddress.java:901&#41;        at java.net.InetAddress.getAddressesFromNameService&#40;InetAddress.java:1293&#41;        at java.net.InetAddress.getLocalHost&#40;InetAddress.java:1469&#41;        ... 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配置后,正常运行。

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号