LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2013, 12:58 AM   #1
vBalaji
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Rep: Reputation: Disabled
Question Does tar really install or just unpacks


Hi friends,

I would like to know whether using "tar" command will install them or just extract from the archive (the name being derived from Tape ARchive)

I installed hadoop_<version>.tar.gz file using the following command

tar -xvf <source_tarball>

Then, for installing pig another tool of hadoop framework, tried with an pig_<version>.rpm file with the following command

rpm -ivh <rpm_filepath>

I got an error that, hadoop is not installed and is a dependency of the above "pig" rpm.

Looking for more clarification, give me some views.

Thanks in advance.
 
Old 10-29-2013, 01:03 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

as far as rpm is concerned hadoop is _not_ installed. Whenever possible use your package manager (eg rpm, yum etc) to install software. If you want more help please specify what distribution and version you are running and what (in terms of the bigger picture) you are trying to do or install.

Evo2.
 
1 members found this post helpful.
Old 10-29-2013, 01:19 AM   #3
vBalaji
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi evo2, Thanks for your quickly response and clarification.

Below are the source files, I am using CentOS 6.4

hadoop-2.0.0.tar.gz
pig 0.11.1-1.i386.rpm

I am just trying to install and carry out single node operations on hadoop along with sqoop and pig.

1* Is there any command or way such that, for rpm to know that dependency is installed (like a sync from all installed sources).
2* Having download restrictions, file repository will be the only way to use yum. Hence, I had not preferred yum for installing files. Kindly correct me, if wrong.
3* I further proceeded to download tar gz file for pig and install.

Last edited by vBalaji; 10-29-2013 at 01:20 AM. Reason: Left out without a note of thanks :)
 
Old 10-29-2013, 01:44 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,329
Blog Entries: 1

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
snip - incorrect

Last edited by astrogeek; 10-29-2013 at 01:46 AM. Reason: Blind in one eye...
 
Old 10-29-2013, 01:49 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

Quote:
1* Is there any command or way such that, for rpm to know that dependency is installed (like a sync from all installed sources).
Not that I'm aware of (but I rarely use rpm)
Quote:
2* Having download restrictions, file repository will be the only way to use yum. Hence, I had not preferred yum for installing files. Kindly correct me, if wrong.
Sorry, I don't undestand these sentences.
Quote:
3* I further proceeded to download tar gz file for pig and install.
If pig depends on hadoop, then you should not be using your package manager to install pig if you did not use it to install hadoop.
So, you can probably go this path.

I strongly suggest you search online for a tutorial or howto for installing hadoop on centos (or rhel) 6.

Evo2.
 
1 members found this post helpful.
Old 10-29-2013, 02:22 AM   #6
vBalaji
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks, Let me put it more clear

For yum command, we should create a repository, give the link to download and install using the command.
Due to file download restrictions, I cant download directly from a url, but rather redirect it to a local repository or in network. Hence, I did not have much of the chance and gave preference to tar / rpm when I had the source.

Sure, I would follow up a tutorial for the installation procedure.
 
Old 10-29-2013, 02:54 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
@ vBalaji : Welcome to LQ.

$ tar xvf hadoop-2.0.5-b92d9bc.tar.gz : Will unpack the source.

I doubt you have installed hadoop, as it needs like ninety (90)
build prerequisites. See the attachment : "build dependencies".

Getting hadoop recognized as an rpm :
Build the rpm from the Fedora 20 source hadoop-2.0.5-12.fc20.src.rpm
http://dl.fedoraproject.org/pub/fedo...2.fc20.src.rpm
... and install the hadoop***.rpm
.
Attached Files
File Type: txt hadoop_build-deps.txt (5.1 KB, 13 views)
 
1 members found this post helpful.
Old 11-05-2013, 08:39 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
Found the "hadoop.repo" http://archive.cloudera.com/redhat/cdh/3/
.. for CentOS 5 and 6, etc.
i386 list http://archive.cloudera.com/redhat/cdh/3/RPMS/i386/
noarch list http://archive.cloudera.com/redhat/cdh/3/RPMS/noarch/

This is the file '/etc/yum.repos.d/hadoop.repo
Code:
[hadoop]
Name=Hadoop packages
baseurl=http://archive.cloudera.com/redhat/cdh/3/
enabled=1
gpgcheck=0
Install : # yum install hadoop

-

Last edited by knudfl; 11-05-2013 at 08:41 AM.
 
Old 11-05-2013, 09:39 AM   #9
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by vBalaji View Post
Thanks, Let me put it more clear

Due to file download restrictions, I cant download directly from a url, but rather redirect it to a local repository or in network.
Yes, you can, Read here
http://wiki.centos.org/HowTos/CreateLocalRepos
 
Old 11-05-2013, 10:38 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
OK, I forgot it should be a local repo.

May not be a demand as 'hadoop' has practically no dependencies.

The package can just be downloaded, and installed with # rpm -Uvh *


-
 
  


Reply

Tags
hadoop


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When mounting cd-image files the ISO unpacks and iso-inates it self Hevithan Linux - Newbie 6 05-04-2012 09:14 AM
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM


All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration