Re: not able to run map reduce job example on aws machine

2014-04-10 Thread Kiran Dangeti
Rahul,

Please check the port name given in mapred.site.xml
Thanks
Kiran

On Thu, Apr 10, 2014 at 3:23 PM, Rahul Singh wrote:

>  Hi,
>   I am getting following exception while running word count example,
>
> 14/04/10 15:17:09 INFO mapreduce.Job: Task Id :
> attempt_1397123038665_0001_m_00_2, Status : FAILED
> Container launch failed for container_1397123038665_0001_01_04 :
> java.lang.IllegalArgumentException: Does not contain a valid host:port
> authority: poc_hadoop04:46162
> 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.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.newProxy(ContainerManagementProtocolProxy.java:210)
> at
> org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.(ContainerManagementProtocolProxy.java:196)
> at
> org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.getProxy(ContainerManagementProtocolProxy.java:117)
> at
> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.getCMProxy(ContainerLauncherImpl.java:403)
> at
> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:138)
> at
> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:369)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
>
>
> I have everything configured with hdfs  running where i am able to create
> files and directories. running jps on my machine shows all components
> running.
>
> 10290 NameNode
> 10416 DataNode
> 10738 ResourceManager
> 11634 Jps
> 10584 SecondaryNameNode
> 10844 NodeManager
>
>
> Any pointers will be appreciated.
>
> Thanks and Regards,
> -Rahul Singh
>


Re: not able to run map reduce job example on aws machine

2014-04-10 Thread Rahul Singh
here is my mapred.site.xml config


  mapred.job.tracker
  localhost:54311
  The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  



Also, The job runs fine in memory, if i remove the dependency on yarn, i.e.
if i comment out:

   mapreduce.framework.name
  yarn


in mapred-site.xml.




On Thu, Apr 10, 2014 at 4:43 PM, Kiran Dangeti wrote:

> Rahul,
>
> Please check the port name given in mapred.site.xml
> Thanks
> Kiran
>
> On Thu, Apr 10, 2014 at 3:23 PM, Rahul Singh 
> wrote:
>
>>  Hi,
>>   I am getting following exception while running word count example,
>>
>> 14/04/10 15:17:09 INFO mapreduce.Job: Task Id :
>> attempt_1397123038665_0001_m_00_2, Status : FAILED
>> Container launch failed for container_1397123038665_0001_01_04 :
>> java.lang.IllegalArgumentException: Does not contain a valid host:port
>> authority: poc_hadoop04:46162
>> 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.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.newProxy(ContainerManagementProtocolProxy.java:210)
>> at
>> org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.(ContainerManagementProtocolProxy.java:196)
>> at
>> org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.getProxy(ContainerManagementProtocolProxy.java:117)
>> at
>> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.getCMProxy(ContainerLauncherImpl.java:403)
>> at
>> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:138)
>> at
>> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:369)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:662)
>>
>>
>> I have everything configured with hdfs  running where i am able to create
>> files and directories. running jps on my machine shows all components
>> running.
>>
>> 10290 NameNode
>> 10416 DataNode
>> 10738 ResourceManager
>> 11634 Jps
>> 10584 SecondaryNameNode
>> 10844 NodeManager
>>
>>
>> Any pointers will be appreciated.
>>
>> Thanks and Regards,
>> -Rahul Singh
>>
>
>


Re: not able to run map reduce job example on aws machine

2014-04-10 Thread Harsh J
"java.lang.IllegalArgumentException: Does not contain a valid
host:port authority: poc_hadoop04:46162"

Hostnames cannot carry an underscore '_' character per RFC 952 and its
extensions. Please fix your hostname to not carry one.

On Thu, Apr 10, 2014 at 5:14 PM, Rahul Singh  wrote:
> here is my mapred.site.xml config
>
> 
>   mapred.job.tracker
>   localhost:54311
>   The host and port that the MapReduce job tracker runs
>   at.  If "local", then jobs are run in-process as a single map
>   and reduce task.
>   
> 
>
>
> Also, The job runs fine in memory, if i remove the dependency on yarn, i.e.
> if i comment out:
> 
>mapreduce.framework.name
>   yarn
> 
>
> in mapred-site.xml.
>
>
>
>
> On Thu, Apr 10, 2014 at 4:43 PM, Kiran Dangeti 
> wrote:
>>
>> Rahul,
>>
>> Please check the port name given in mapred.site.xml
>> Thanks
>> Kiran
>>
>> On Thu, Apr 10, 2014 at 3:23 PM, Rahul Singh 
>> wrote:
>>>
>>> Hi,
>>>   I am getting following exception while running word count example,
>>>
>>> 14/04/10 15:17:09 INFO mapreduce.Job: Task Id :
>>> attempt_1397123038665_0001_m_00_2, Status : FAILED
>>> Container launch failed for container_1397123038665_0001_01_04 :
>>> java.lang.IllegalArgumentException: Does not contain a valid host:port
>>> authority: poc_hadoop04:46162
>>> 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.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.newProxy(ContainerManagementProtocolProxy.java:210)
>>> at
>>> org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.(ContainerManagementProtocolProxy.java:196)
>>> at
>>> org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.getProxy(ContainerManagementProtocolProxy.java:117)
>>> at
>>> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.getCMProxy(ContainerLauncherImpl.java:403)
>>> at
>>> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:138)
>>> at
>>> org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:369)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> at java.lang.Thread.run(Thread.java:662)
>>>
>>>
>>> I have everything configured with hdfs  running where i am able to create
>>> files and directories. running jps on my machine shows all components
>>> running.
>>>
>>> 10290 NameNode
>>> 10416 DataNode
>>> 10738 ResourceManager
>>> 11634 Jps
>>> 10584 SecondaryNameNode
>>> 10844 NodeManager
>>>
>>>
>>> Any pointers will be appreciated.
>>>
>>> Thanks and Regards,
>>> -Rahul Singh
>>
>>
>



-- 
Harsh J