Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
Hadoop java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master 오류해결방법
아래와 같은 오류가 발생하면..
mapred-site.xml에 아래 내용이 있는지 확인하고 port를 반드시 지정해야 하는데 지정하지 않아서 발생하는 오류이다.
<property>
<name>mapreduce.jobhistory.address</name>
<value>master</value>
<description>job history server</description>
</property>
<property>
<name>mapreduce.jobhistory.webapp.address</name>
<value>master</value>
<description>job history server</description>
</property>
-->
<property>
<name>mapreduce.jobhistory.address</name>
<value>master:7001</value>
<description>job history server</description>
</property>
<property>
<name>mapreduce.jobhistory.webapp.address</name>
<value>master:8001</value>
<description>job history server</description>
</property>
와 같이 바꿔준다.
------------------------------------오류내용 --------------------------------------
java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:211)
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
at org.apache.hadoop.mapred.ClientCache$1.run(ClientCache.java:95)
at org.apache.hadoop.mapred.ClientCache$1.run(ClientCache.java:92)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1594)
at org.apache.hadoop.mapred.ClientCache.instantiateHistoryProxy(ClientCache.java:92)
at org.apache.hadoop.mapred.ClientCache.getInitializedHSProxy(ClientCache.java:77)
at org.apache.hadoop.mapred.YARNRunner.addHistoryToken(YARNRunner.java:184)
at org.apache.hadoop.mapred.YARNRunner.submitJob(YARNRunner.java:281)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:432)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1282)
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:1614)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1303)
at org.apache.hadoop.examples.WordCount.main(WordCount.java:87)
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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:145)
at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)
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:212)
-------------------------------------------------------------------------------------------------