hadoop fs -copyFromLocal <path to your file> for e.g /user/home/hadoop/input/file1.txt
On Tue, Jan 7, 2014 at 11:41 AM, Allen, Ronald L. <allen...@ornl.gov> wrote: > Thank you for responding. > > I entered hadoop fs -ls and it returned this: > > 14/01/07 11:40:50 WARN util.NativeCodeLoader: Unable to load native-hadoop > library for your platform... using builtin-java classes where applicable > Found 2 items > drwxr-xr-x - r9rhadoop supergroup 0 2014-01-06 13:49 input > drwxr-xr-x - r9rhadoop supergroup 0 2014-01-06 15:30 out > > I guess it does. > ________________________________________ > From: Hardik Pandya [smarty.ju...@gmail.com] > Sent: Tuesday, January 07, 2014 11:37 AM > To: user@hadoop.apache.org > Subject: Re: Error: Could not find or load main class hdfs > > does input directory exist in hdfs? you can check by hadoop fs -ls > > > On Tue, Jan 7, 2014 at 11:16 AM, Allen, Ronald L. <allen...@ornl.gov > <mailto:allen...@ornl.gov>> wrote: > Hello, > > I am trying to run the WordCount example using Hadoop 2.2.0 on a single > node. I tried to follow the directions from > http://nextgenhadoop.blogspot.in/2013/10/steps-to-install-hadoop-220-stable.html. > However, when I type in the command bin/hadoop hdfs -copyFromLocal input > /input, I get Error: Could not find or load main class hdfs. I am very new > to this and have no idea what is going on. Any help would be greatly > appreciated! > > Thanks, > Ronnie > >