You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Félix López <ja...@gmail.com> on 2012/06/27 17:48:58 UTC
send a file to a Hadoop Cluster from outside
How can I send a file to a Hadoop Cluster from outside?
I want to put files from a machine that is not in the cluster, and It only
has the hadoop client, I thought that it was possible with this:
hadoop fs -copyFromLocal myfile hdfs:///x.x.x.x:8020
but It always returns this:
12/06/27 17:38:33 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 0 time(s).
Why is it trying to connect to localhost?
Thanks
RE: send a file to a Hadoop Cluster from outside
Posted by Amith D K <am...@huawei.com>.
Is your NN up and Active
Use transitionToActive via haadmin if not
Amith
________________________________
From: Félix López [jaaaelpumuki@gmail.com]
Sent: Wednesday, June 27, 2012 11:48 PM
To: hdfs-user@hadoop.apache.org
Subject: send a file to a Hadoop Cluster from outside
How can I send a file to a Hadoop Cluster from outside?
I want to put files from a machine that is not in the cluster, and It only has the hadoop client, I thought that it was possible with this:
hadoop fs -copyFromLocal myfile hdfs:///x.x.x.x:8020
but It always returns this:
12/06/27 17:38:33 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020<http://127.0.0.1:8020>. Already tried 0 time(s).
Why is it trying to connect to localhost?
Thanks
Re: send a file to a Hadoop Cluster from outside
Posted by Félix López <ja...@gmail.com>.
That's right Bobby. I've write my master ip in he core-site.xml and now
it's working.
Thanks
2012/6/27 Félix López <ja...@gmail.com>
> I run the cluster, i'm new to hadoop. I think Bobby it's right and my
> problem it's the configuration, because in this new machine I didn't setup
> anything, I thought that to put files the only thing you needed it was the
> hadoop binary.
>
>
> 2012/6/27 Robert Evans <ev...@yahoo-inc.com>
>
>> It sounds like you don’t have the same configuration on this new
>> machine and on the cluster. You probably want to talk with the group that
>> runs the cluster so that they can give you the proper configuration. There
>> are also some groups that try to lock down access to the cluster with ACLs,
>> so it is best to talk to them so that they can help you do this properly.
>>
>> --Bobby Evans
>>
>>
>> On 6/27/12 10:48 AM, "Félix López" <ja...@gmail.com> wrote:
>>
>> How can I send a file to a Hadoop Cluster from outside?
>>
>> I want to put files from a machine that is not in the cluster, and It
>> only has the hadoop client, I thought that it was possible with this:
>>
>> hadoop fs -copyFromLocal myfile hdfs:///x.x.x.x:8020
>>
>> but It always returns this:
>> 12/06/27 17:38:33 INFO ipc.Client: Retrying connect to server: localhost/
>> 127.0.0.1:8020 <http://127.0.0.1:8020> . Already tried 0 time(s).
>>
>>
>> Why is it trying to connect to localhost?
>>
>> Thanks
>>
>>
>
>
> --
> http://www.linkedin.com/in/flopezluis
>
> It's easier to ask forgiveness than it is to get permission
>
>
> ".....it doesn't matter how many times you fail. It doesn't matter how
> many times you almost get it right. No one is going to know or care about
> your failures, and either should you. All you have to do is learn from them
> and those around you because...All that matters in business is that you get
> it right once. Then everyone can tell you how lucky you are."
> --Mark Cuban"
>
> "Always be the worst guy in every band you're in." If you're the best guy
> there, you need to be in a different band. And I think that works for
> almost everything that's out there as well." Pat Metheny
>
--
http://www.linkedin.com/in/flopezluis
It's easier to ask forgiveness than it is to get permission
".....it doesn't matter how many times you fail. It doesn't matter how many
times you almost get it right. No one is going to know or care about your
failures, and either should you. All you have to do is learn from them and
those around you because...All that matters in business is that you get it
right once. Then everyone can tell you how lucky you are."
--Mark Cuban"
"Always be the worst guy in every band you're in." If you're the best guy
there, you need to be in a different band. And I think that works for
almost everything that's out there as well." Pat Metheny
Re: send a file to a Hadoop Cluster from outside
Posted by Félix López <ja...@gmail.com>.
I run the cluster, i'm new to hadoop. I think Bobby it's right and my
problem it's the configuration, because in this new machine I didn't setup
anything, I thought that to put files the only thing you needed it was the
hadoop binary.
2012/6/27 Robert Evans <ev...@yahoo-inc.com>
> It sounds like you don’t have the same configuration on this new machine
> and on the cluster. You probably want to talk with the group that runs the
> cluster so that they can give you the proper configuration. There are also
> some groups that try to lock down access to the cluster with ACLs, so it is
> best to talk to them so that they can help you do this properly.
>
> --Bobby Evans
>
>
> On 6/27/12 10:48 AM, "Félix López" <ja...@gmail.com> wrote:
>
> How can I send a file to a Hadoop Cluster from outside?
>
> I want to put files from a machine that is not in the cluster, and It only
> has the hadoop client, I thought that it was possible with this:
>
> hadoop fs -copyFromLocal myfile hdfs:///x.x.x.x:8020
>
> but It always returns this:
> 12/06/27 17:38:33 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:8020 <http://127.0.0.1:8020> . Already tried 0 time(s).
>
>
> Why is it trying to connect to localhost?
>
> Thanks
>
>
--
http://www.linkedin.com/in/flopezluis
It's easier to ask forgiveness than it is to get permission
".....it doesn't matter how many times you fail. It doesn't matter how many
times you almost get it right. No one is going to know or care about your
failures, and either should you. All you have to do is learn from them and
those around you because...All that matters in business is that you get it
right once. Then everyone can tell you how lucky you are."
--Mark Cuban"
"Always be the worst guy in every band you're in." If you're the best guy
there, you need to be in a different band. And I think that works for
almost everything that's out there as well." Pat Metheny
Re: send a file to a Hadoop Cluster from outside
Posted by Robert Evans <ev...@yahoo-inc.com>.
It sounds like you don't have the same configuration on this new machine and on the cluster. You probably want to talk with the group that runs the cluster so that they can give you the proper configuration. There are also some groups that try to lock down access to the cluster with ACLs, so it is best to talk to them so that they can help you do this properly.
--Bobby Evans
On 6/27/12 10:48 AM, "Félix López" <ja...@gmail.com> wrote:
How can I send a file to a Hadoop Cluster from outside?
I want to put files from a machine that is not in the cluster, and It only has the hadoop client, I thought that it was possible with this:
hadoop fs -copyFromLocal myfile hdfs:///x.x.x.x:8020
but It always returns this:
12/06/27 17:38:33 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020 <http://127.0.0.1:8020> . Already tried 0 time(s).
Why is it trying to connect to localhost?
Thanks