Friday, April 19, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4470  / 2 Years ago, sun, april 17, 2022, 7:17:17

I am trying to download Hadoop from here: http://ftp.heanet.ie/mirrors/www.apache.org/dist/hadoop/common/stable/
It contains the file hadoop-2.9.2.tar.gz which I am trying to access.
The command I am trying to use is along the lines of



wget  -P/home/ubuntu/Desktop/"http://ftp.heanet.ie/mirrors/www.apache.org/dist/hadoop/common/stable/target=hadoop-2.9.2.tar.gz"


I know the target part at the end is the issue but I am unsure how to fix it.
Thanks


More From » command-line

 Answers
6

The command and link you are using seems to contain errors. The actual format of wget is:



wget [option] [URL]


You removed spaces (which obviously matters) and added target= (which isn't there in actual URL). So, it must be something like:



wget -P /home/ubuntu/Desktop/ "http://ftp.heanet.ie/mirrors/www.apache.org/dist/hadoop/common/stable/hadoop-2.9.2.tar.gz"


I have tested the above command and at my end it is working fine and successfully downloaded hadoop-2.9.2.tar.gz in the Desktop directory.


[#6646] Monday, April 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
barted

Total Points: 424
Total Questions: 103
Total Answers: 101

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
;