当前位置: 首页 > exceptionHadoopJava > Hadoop Hive No address associated with hostname

Hadoop Hive No address associated with hostname

今天进行了Hive的迁移,出现了如下的异常。

 Java |  复制 |? 
01
02
Total MapReduce jobs = 1
03
Launching Job 1 out of 1
04
Number of reduce tasks determined at compile time: 1
05
In order to change the average load for a reducer (in bytes):
06
  set hive.exec.reducers.bytes.per.reducer=<number>
07
In order to limit the maximum number of reducers:
08
  set hive.exec.reducers.max=<number>
09
In order to set a constant number of reducers:
10
  set mapred.reduce.tasks=<number>
11
java.net.UnknownHostException: xxx.test.cn: xxx.test.cn: No address associated with hostname
12
        at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
13
        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:866)
14
        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:842)
15
        at java.security.AccessController.doPrivileged(Native Method)
16
        at javax.security.auth.Subject.doAs(Subject.java:415)
17
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059)
18
        at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:842)
19
        at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:816)
20
        at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:452)
21
        at org.apache.hadoop.hive.ql.exec.MapRedTask.execute(MapRedTask.java:136)
22
        at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:133)
23
        at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
24
        at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1361)
25
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1152)
26
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:960)
27
        at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:255)
28
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:212)
29
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403)
30
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
31
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:554)
32
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
33
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
34
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
35
        at java.lang.reflect.Method.invoke(Method.java:606)
36
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
37
Caused by: java.net.UnknownHostException: kooxoo90-111.kuxun.cn: No address associated with hostname
38
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
39
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
40
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
41
        at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
42
        ... 24 more
43
Job Submission failed with exception 'java.net.UnknownHostException(xxx.test.cn: xxx.test.cn: No address associated with hostname)'
44
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask
45
 
46

后续发现,在新的服务器中,只注意了进行hostname的设置,但是并没有在/etc/hosts文件中增加

 Python |  复制 |? 
1
2
127.0.0.1  xxx.test.cn
3

的映射。
hosts配置后,正常运行。



本文固定链接: http://anyoneking.com/archives/771 | 懒散狂徒的博客
标签: , , ,

【上一篇】
【下一篇】

报歉!评论已关闭.