hadoop set up on mac. I am facing problem in following the notes looks like something is missing



0

when executing command sudo cp -r hadoop-1.2.1 /usr/local/hadoop it thorws an error no such file or directory

therefore im not able to perform below steps after this:

 

sudo vi /home/hadoop/.bashrc

 

{ to edit the file in the vi editor....press INSERT }

 

export HADOOP_PREFIX=/usr/local/hadoop

export PATH=$PATH:$HADOOP_PREFIX/bin

 

{ To save the file and quit the editor.....press ESC :wq }

 

11. Update the bash settings

 

exec bash

 

12. Inform Hadoop where is Java installed on your system

 

sudo vi /usr/local/hadoop/conf/hadoop-env.sh

 

{ to edit the file in the vi editor....press INSERT }

 

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386

 

{ To save the file and quit the editor.....press ESC :wq }


7 Answer(s)


0

adding the image from linux window



0

Hi Parag,

You had mention two issues:

1.

Please run the following command, please ignore the error if you get any while running the below commands:

$ sudo rm -r /home/hadoop/hadoop-1.2.1
$ tar -xvf /home/hadoop/hadoop-1.2.1.tar.gz
$ sudo rm -r /usr/local/hadoop
$ sudo cp -r hadoop-1.2.1 /usr/local/hadoop

Please share the error screenshot with me for any doubts.

2.

Please use the correct command: $ sudo vi /home/hadoop/.bashrc

You didn't provide the space between "vi" and "/home/hadoop".

Hope this helps.

Thanks.


0

thanks for answer but its not working.I am running the command directly on VM instead of using putty. Which putty should i sue for MAC? 

 


0

there has to be some more information about how to set up hadoop on MAC or else you guys should add windows OS in pre-requisite for attending this course.


0

issue is not resolved yet. i m not ready for next session


0

i am trying to resolve some issues before tomorrow's session

but no one is helping me


0

Hi Parag,

The Putty is not available for MAC. You can use terminal to connect using SSH for commands.

For file transfer, please use the FileZilla application.

Hope this helps. Please let me know if you face any difficulty.