You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Thomas Koch <th...@koch.ro> on 2009/12/30 19:53:43 UTC
debian package of hadoop
Hi,
today I tried to run the cloudera debian dist on a 4 machine cluster. I still
have some itches, see my list below. Some of them may require a fix in the
packaging.
Therefor I thought that it may be time to start an official debian package of
hadoop with a public GIT repository so that everybody can participate.
Would cloudera support this? I'd package hadoop 0.20 and apply all the
cloudera patches (managed with topgit[1]).
At this point I'd like to have your opinion whether it would be wise to have
versioned binary packages like hadoop-18, hadoop-20 or just plain hadoop for
the Debian package?
My issues so far:
start-dfs.sh started only the local namenode, not the secondary NN nor the
datanodes without indicating any error. masters and slaves were configured
correctly.
When starting the datanodes manually they were recognized and HDFS worked.
However the web UIs at port 50075 show only a directory view with a WEB-INF/
directory in it. This may most likely be a packaging/configuration issue.
The same with the SNN on port 50090.
The SNN shows:
java.io.FileNotFoundException:
http://192.168.122.166:50070/getimage?putimage=1&port=50090&machine=127.0.1.1&token=-18:737152035:0:1262195990000:1262194649873
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1288
I did not get MapReduce working yet. It seems that it would be very helpfull
to have some more verbose example configuration files. These should have
commented properties for the most important settings.
[1] http://lists.alioth.debian.org/pipermail/vcs-pkg-discuss/2009-
December/000688.html
Have a nice New Year's Eve,
Thomas Koch, http://www.koch.ro
hostname requirement, was: debian package of hadoop
Posted by Thomas Koch <th...@koch.ro>.
Hi Todd,
> > The SNN shows:
> > java.io.FileNotFoundException:
> >
> > http://192.168.122.166:50070/getimage?putimage=1&port=50090&machine=127.0
> >.1.1&token=-18:737152035:0:1262195990000:1262194649873 at
> >
> > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnect
> >ion.java:1288
>
> This sounds like HDFS-62: https://issues.apache.org/jira/browse/HDFS-62
>
> The workaround can be found here:
> http://www.cloudera.com/blog/2009/02/10/multi-host-secondarynamenode-config
> uration/
Maybe my mistake was, that my virtual test cluster doesn't have DNS and I
configured everything with IP addresses. Writing hostnames in /etc/hostname
and /etc/hosts solved the issue.
Thanks for your help,
Thomas Koch, http://www.koch.ro
Re: debian package of hadoop
Posted by Todd Lipcon <to...@cloudera.com>.
Hi Thomas (and Debian developers),
My responses inline below:
On Wed, Dec 30, 2009 at 10:53 AM, Thomas Koch <th...@koch.ro> wrote:
> Hi,
>
> today I tried to run the cloudera debian dist on a 4 machine cluster. I
> still
> have some itches, see my list below. Some of them may require a fix in the
> packaging.
> Therefor I thought that it may be time to start an official debian package
> of
> hadoop with a public GIT repository so that everybody can participate.
> Would cloudera support this? I'd package hadoop 0.20 and apply all the
> cloudera patches (managed with topgit[1]).
>
Our distribution and all of our patches are licensed Apache 2.0, so we're of
course happy to have the community work on packaging with us. Our goals are
slightly different than the Debian project's goals, which is why we run our
own repository separate from the Debian/Ubuntu distributions. One main
difference is that we have an internal build process that ensures parity
between the RPM and Debian packages with little manual work; most existing
packaging solutions we found were either Debian or RPM specific. A second
difference is that we believe Hadoop is most stable when we maintain the
exact versions of depended-upon Java software within Hadoop's own directory,
which is contrary to the Debian Java packaging policy.
That said, we're certainly happy to help the community with questions about
our packages or patch set.
> At this point I'd like to have your opinion whether it would be wise to
> have
> versioned binary packages like hadoop-18, hadoop-20 or just plain hadoop
> for
> the Debian package?
>
>
We originally had a single package "hadoop", and later moved to the
versioned packages due to community demand. Some users prefer to run older
versions of the software, as a cluster-wide major version upgrade can
involve API changes and mandates a reasonably lengthy downtime window for
the metadata upgrade process. Rather than point those users at separate
repositories, we elected to package the two versions in parallel. This also
enables client machines that may speed to multiple separate clusters within
an enterprise to have both client versions installed.
My issues so far:
>
> start-dfs.sh started only the local namenode, not the secondary NN nor the
> datanodes without indicating any error. masters and slaves were configured
> correctly.
>
>
We generally do not advise users of the debian packages to use start-*.sh.
Rather, we recommend that they simply use the init scripts on each machine
in the cluster, usually automatically started at boot, or maintained running
using a configuration management system like puppet/chef/etc.
That said, there's no reason why those scripts shouldn't work correctly. Did
you run these scripts as the hadoop user, and ensure that the hadoop user
can ssh throughout the cluster without password entry (either using a
passphrase-less SSH key, or ssh-agent)?
> When starting the datanodes manually they were recognized and HDFS worked.
> However the web UIs at port 50075 show only a directory view with a
> WEB-INF/
> directory in it. This may most likely be a packaging/configuration issue.
> The same with the SNN on port 50090.
>
>
This is correct - the DN and 2NN in currently released versions of Hadoop do
not have web UIs. Port 50070 should be the NN Web UI, which should properly
show cluster statistics and allow you to browse the DFS.
> The SNN shows:
> java.io.FileNotFoundException:
>
> http://192.168.122.166:50070/getimage?putimage=1&port=50090&machine=127.0.1.1&token=-18:737152035:0:1262195990000:1262194649873
> at
>
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1288
>
>
This sounds like HDFS-62: https://issues.apache.org/jira/browse/HDFS-62
The workaround can be found here:
http://www.cloudera.com/blog/2009/02/10/multi-host-secondarynamenode-configuration/
I did not get MapReduce working yet. It seems that it would be very helpfull
> to have some more verbose example configuration files. These should have
> commented properties for the most important settings.
>
>
The entire configuration can be found in src/hdfs/hdfs-default.xml,
src/mapred/mapred-default.xml, and src/core/core-default.xml
We've put some basic configurations as well in the example-confs/ directory
of our distribution.
Thanks, and happy new year to you as well,
-Todd
Re: debian package of hadoop
Posted by Edward Capriolo <ed...@gmail.com>.
As for your
2) to deploy small clusters
I think that is outside the scope of packaging. Take mysql for
example. you could configure mysql to be master/slave or even
master/master. That is all done through the configuration not through
the package.
The hadoop configuration is very dependent on hostnames nn,jt,snn,(dn)
disks mounted outside of root. So I don't think you should package up
the logic to auto deploy a cluster of any size, if that was what you
were implying.
Edward
On Thu, Jan 7, 2010 at 6:30 PM, Jordà Polo <jo...@ettin.org> wrote:
> On Mon, Jan 04, 2010 at 12:37:48PM +0000, Steve Loughran wrote:
>> If you want "official" as in can say "Apache Hadoop" on it, then it
>> will need to be managed and released as an apache project. That
>> means somewhere in ASF SVN. If you want to cut your own, please give
>> it a different name to avoid problems later.
>
> I actually meant "official" as in "Debian official", that is, a package
> that is compatible with the Debian policies and follows the standard
> best practices, and thus is able to be included in the official Debian
> distribution. (Note that I come from the Debian side where I maintain a
> few packages. Sorry about the misunderstanding, I took that for
> granted.)
>
>> Well, we'll just have to ignore the debian autobuilding process
>> then, won't we?
>>
>> There are some hooks in Ivy and Ant to give local machine artifacts
>> priority over other stuff, but it's not ideal. Let's just say there
>> are differences in opinion between some of the linux packaging
>> people and others as to what is the correct way to manage
>> dependencies. I'm in the "everything is specified under SCM" camp;
>> others are in the "build against what you find" world.
>
> Well, if you want an official Debian package, you can't really ignore
> the autobuilding process, but that's not necessarily a problem. I mean,
> you only need to take it into account when building the official
> package, not your customized packages.
>
> So, for the initial versions of this "official Debian package" I was
> thinking of the following use cases: 1) developers that need the
> libraries and maybe even to test applications locally, 2) to deploy
> small clusters, and 3) as a base _source_ package that can be customized
> and rebuilt for larger environments. IMHO, an official Debian package
> would be worth it even if it only provides 1 and 2.
>
>> >(Anyway, I'm interested in the package, so let me know if you need some
>> >help and want to set up a group on alioth or something.)
>>
>> A lot of the fun here is not going to be setting up the package files (
>
> Hmm, I'm not sure what you mean, but I'm don't think my sentence was
> correctly understood either, so I'll try to put it into context: Debian
> packages can be either maintained by a single maintainer or by a group
> of them. Alioth[1] is a project-management service used mostly for
> Debian-related projects (such as packages). An Alioth project could be
> useful to create a mailing list and deal with Debian-specific bug
> reports and packaging issues (which are off-topic here).
>
> 1. http://alioth.debian.org/
>
Re: debian package of hadoop
Posted by Jordà Polo <jo...@ettin.org>.
On Mon, Jan 04, 2010 at 12:37:48PM +0000, Steve Loughran wrote:
> If you want "official" as in can say "Apache Hadoop" on it, then it
> will need to be managed and released as an apache project. That
> means somewhere in ASF SVN. If you want to cut your own, please give
> it a different name to avoid problems later.
I actually meant "official" as in "Debian official", that is, a package
that is compatible with the Debian policies and follows the standard
best practices, and thus is able to be included in the official Debian
distribution. (Note that I come from the Debian side where I maintain a
few packages. Sorry about the misunderstanding, I took that for
granted.)
> Well, we'll just have to ignore the debian autobuilding process
> then, won't we?
>
> There are some hooks in Ivy and Ant to give local machine artifacts
> priority over other stuff, but it's not ideal. Let's just say there
> are differences in opinion between some of the linux packaging
> people and others as to what is the correct way to manage
> dependencies. I'm in the "everything is specified under SCM" camp;
> others are in the "build against what you find" world.
Well, if you want an official Debian package, you can't really ignore
the autobuilding process, but that's not necessarily a problem. I mean,
you only need to take it into account when building the official
package, not your customized packages.
So, for the initial versions of this "official Debian package" I was
thinking of the following use cases: 1) developers that need the
libraries and maybe even to test applications locally, 2) to deploy
small clusters, and 3) as a base _source_ package that can be customized
and rebuilt for larger environments. IMHO, an official Debian package
would be worth it even if it only provides 1 and 2.
> >(Anyway, I'm interested in the package, so let me know if you need some
> >help and want to set up a group on alioth or something.)
>
> A lot of the fun here is not going to be setting up the package files (
Hmm, I'm not sure what you mean, but I'm don't think my sentence was
correctly understood either, so I'll try to put it into context: Debian
packages can be either maintained by a single maintainer or by a group
of them. Alioth[1] is a project-management service used mostly for
Debian-related projects (such as packages). An Alioth project could be
useful to create a mailing list and deal with Debian-specific bug
reports and packaging issues (which are off-topic here).
1. http://alioth.debian.org/
Re: debian package of hadoop
Posted by Steve Loughran <st...@apache.org>.
Isabel Drost wrote:
> On Monday 04 January 2010 13:37:48 Steve Loughran wrote:
>> Jordà Polo wrote:
>>> I have been thinking about an official Hadoop Debian package for a while
>>> too.
>> If you want "official" as in can say "Apache Hadoop" on it, then it will
>> need to be managed and released as an apache project. That means
>> somewhere in ASF SVN. If you want to cut your own, please give it a
>> different name to avoid problems later.
>
> Huh? I am lost and confused here: As far as I understood Thomas is trying to
> create a Debian package which then goes into the Debian distribution
> (possibly sid at the moment).
I was confused by the term "official". The Hadoop team could certainly
release Hadoop RPMs and deb files. which I think is a good idea, just
because we should recognise that these are the primary ways you install
Hadoop in big clusters. Having RPM/deb files as part of your build
process keeps you focused, though it mean that hudson instances not
running on linux have to skip some stages (i.e. you need a linux CI
server/VM too, plus another one for your install testing)
> Same was done e.g. with Lucene, httpd, Tomcat etc. All of these packages are
> maintained by Debian people and not pushed by Apache guys. Still the packages
> are named tomcat5.5, apache2.2-common, liblucene-java. So it seems possible
> to name official Debian packages similar to the upstream Apache project w/o
> much problems.
OK
Re: debian package of hadoop
Posted by Isabel Drost <is...@apache.org>.
On Monday 04 January 2010 13:37:48 Steve Loughran wrote:
> Jordà Polo wrote:
> > I have been thinking about an official Hadoop Debian package for a while
> > too.
>
> If you want "official" as in can say "Apache Hadoop" on it, then it will
> need to be managed and released as an apache project. That means
> somewhere in ASF SVN. If you want to cut your own, please give it a
> different name to avoid problems later.
Huh? I am lost and confused here: As far as I understood Thomas is trying to
create a Debian package which then goes into the Debian distribution
(possibly sid at the moment).
Same was done e.g. with Lucene, httpd, Tomcat etc. All of these packages are
maintained by Debian people and not pushed by Apache guys. Still the packages
are named tomcat5.5, apache2.2-common, liblucene-java. So it seems possible
to name official Debian packages similar to the upstream Apache project w/o
much problems.
Isabel
--
|\ _,,,---,,_ Web: <http://www.isabel-drost.de>
/,`.-'`' -. ;-;;,_
|,4- ) )-,_..;\ ( `'-'
'---''(_/--' `-'\_) (fL) IM: <xm...@spaceboyz.net>
Re: debian package of hadoop
Posted by Steve Loughran <st...@apache.org>.
Jordà Polo wrote:
> On Wed, Dec 30, 2009 at 07:53:43PM +0100, Thomas Koch wrote:
>> today I tried to run the cloudera debian dist on a 4 machine cluster. I still
>> have some itches, see my list below. Some of them may require a fix in the
>> packaging.
>> Therefor I thought that it may be time to start an official debian package of
>> hadoop with a public GIT repository so that everybody can participate.
>> Would cloudera support this? I'd package hadoop 0.20 and apply all the
>> cloudera patches (managed with topgit[1]).
>> At this point I'd like to have your opinion whether it would be wise to have
>> versioned binary packages like hadoop-18, hadoop-20 or just plain hadoop for
>> the Debian package?
>
> Hi Thomas,
>
> I have been thinking about an official Hadoop Debian package for a while
> too.
If you want "official" as in can say "Apache Hadoop" on it, then it will
need to be managed and released as an apache project. That means
somewhere in ASF SVN. If you want to cut your own, please give it a
different name to avoid problems later.
> The main issue that prevents the inclusion of the current Cloudera
> package into Debian is that it depends on Sun's Java. I think it would
> be interesting, at least for an official Debian package, to depend on
> OpenJDK in order to make it possible to distribute it in "main" instead
> of "contrib".
+1 to more on packaging; I'd go so far as push for a separate
"deployment" subproject which would be downstream of everything,
including HBase and other layers.
I view .deb and .RPM releases as stuff you would push out to clusters,
maybe with custom config files for everything else. Having the ability
to create your own packages on demand would appear to be something that
people need (disclaimer, I do create my own RPMs)
I would go for the package to not bother mentioning which Java it
depends on, as that lets you run on any Java version, jrockit included.
Or drive the .deb creation process such that you can decide at release
time what the options are for any specific target cluster.
> Also, note that in order to fit into Debian's package autobuilding
> system, some scripts will probably require some tweaking. For instance,
> by default Hadoop downloads dependencies at build time using ivy, but
> Debian packages should use already existing packages. Incidentally,
> Hadoop depends on some libraries that aren't available in Debian yet,
> such as xmlenc, so there is even more work to do.
Well, we'll just have to ignore the debian autobuilding process then,
won't we?
There are some hooks in Ivy and Ant to give local machine artifacts
priority over other stuff, but it's not ideal. Let's just say there are
differences in opinion between some of the linux packaging people and
others as to what is the correct way to manage dependencies. I'm in the
"everything is specified under SCM" camp; others are in the "build
against what you find" world.
I cut my rpms by
* pushing the .rpm template through a <copy> with property expansion;
this creates an RPM containing all the version markers set up right and
driven my build's properties files.
* not declaring dependencies on anything, java or any other JAR like
log4J. This ensures my code runs with the JARs I told it to, not
anything else. Also it gives me the option to sign all the JARs, which
the normal Linux packaging doesn't like.
* releasing the tar of everything needed to sign the JARs and create the
RPMs as a redistributable. This gives anyone else the option to create
their own RPMs too. You don' t need to move the entire build/release
process to source RPMs or .debs for this, any more than the Ant or log4J
packages get built/released this way.
* <scp> the packages to a VMWare or Virtualbox image of each supported
platform, ssh in and exec the rpm uninstall/install commands, then walk
the scripts through their lifecycle. You were planning on testing the
upgrade process weren't you ?
-steve
>
> (Anyway, I'm interested in the package, so let me know if you need some
> help and want to set up a group on alioth or something.)
A lot of the fun here is not going to be setting up the package files (
Re: debian package of hadoop
Posted by Isabel Drost <is...@apache.org>.
On Monday 04 January 2010 15:46:55 Steve Loughran wrote:
> What use cases are you thinking of here?
>
> 1) developer coding against the hadoop Java and C APIs
+1
> 2) Someone setting up a small 1-5 machine cluster
+0
> 3) large production datacentre of hundreds of worker nodes
> 4) transient virtualised worker nodes
Installing Hadoop on Debian for me would mean something like providing the
minimal installation that gives me a running Hadoop node. I would guess that
clusters of hundreds of worker nodes are different enough from one another to
require additional configuration work on the administrators side anyways.
If this were a wish list, I would love to be able to install a package "hdfs",
one for "map reduce", another one for "hbase" (that itself depends on hdfs
and map reduce). There should be one that is binary only, one for the
development libs (as I would love to code against the Hadoop APIs), there
will probably be one for the documentation. I would find configuration files
where I expect them to be (somewhere at /etc/hadoop/ maybe) and data where it
belongs (/var/hadoop?). The setup would help me to easily get Hadoop up and
running as a newbie (something like apt-get install hadoop - maybe adjusting
some configuration afterwards to add more nodes to the cluster). It would
make upgrading to new Hadoop versions less painful. ;)
Isabel
--
|\ _,,,---,,_ Web: <http://www.isabel-drost.de>
/,`.-'`' -. ;-;;,_
|,4- ) )-,_..;\ ( `'-'
'---''(_/--' `-'\_) (fL) IM: <xm...@spaceboyz.net>
Re: debian package of hadoop
Posted by Steve Loughran <st...@apache.org>.
Thomas Koch wrote:
> Hi Jordà,
>
>> The main issue that prevents the inclusion of the current Cloudera
>> package into Debian is that it depends on Sun's Java. I think it would
>> be interesting, at least for an official Debian package, to depend on
>> OpenJDK in order to make it possible to distribute it in "main" instead
>> of "contrib".
> The build-depends line can easily be changed as long as hadoop will build with
> openjdk. The binary will depend on java5-runtime-headless which is provided by
> any java runtime. So the user of the package is free to choose either Sun or
> openjdk.
Java6+ only. It will build on openjdk or jrockit, the Hadoop team
merely chooses to ignore all bug reports that you can't recreate on the
official JDKs. You are still free to fix them yourself. You must also
know that your JVM hasn't been tested at scale, unless you have the
scale to compare with the big datacentres.
What use cases are you thinking of here?
1) developer coding against the hadoop Java and C APIs
2) Someone setting up a small 1-5 machine cluster
3) large production datacentre of hundreds of worker nodes
4) transient virtualised worker nodes
for (3) and (4) the challenge is getting the right configuration out
there, where configuration =
hadoop XML files
log4j settings
rack awareness scripts
and such like
For virtualised clusters you set up one node then ask the infrastructure
for 100 instances; for physical ones you just need to get the right
files out everywhere. Packaging them up and pushing it out as a .deb or
RPM is one option -the cloudera one- and is better than trying to by
hand -but it is only one option.
Re: debian package of hadoop
Posted by Thomas Koch <th...@koch.ro>.
Hi Jordà,
> The main issue that prevents the inclusion of the current Cloudera
> package into Debian is that it depends on Sun's Java. I think it would
> be interesting, at least for an official Debian package, to depend on
> OpenJDK in order to make it possible to distribute it in "main" instead
> of "contrib".
The build-depends line can easily be changed as long as hadoop will build with
openjdk. The binary will depend on java5-runtime-headless which is provided by
any java runtime. So the user of the package is free to choose either Sun or
openjdk.
> Also, note that in order to fit into Debian's package autobuilding
> system, some scripts will probably require some tweaking. For instance,
> by default Hadoop downloads dependencies at build time using ivy, but
> Debian packages should use already existing packages. Incidentally,
> Hadoop depends on some libraries that aren't available in Debian yet,
> such as xmlenc, so there is even more work to do.
The ivy thing will of course be patched out and replaced by the correct
classpath entries to /usr/share/java/...
I already packaged xmlenc but am waiting for a sponsor. The remaining two
dependencies are optional. Please have a look at
https://wiki.ubuntu.com/HadoopPackagingSpec
Thomas Koch, http://www.koch.ro
Re: debian package of hadoop
Posted by Jordà Polo <jo...@ettin.org>.
On Wed, Dec 30, 2009 at 07:53:43PM +0100, Thomas Koch wrote:
> today I tried to run the cloudera debian dist on a 4 machine cluster. I still
> have some itches, see my list below. Some of them may require a fix in the
> packaging.
> Therefor I thought that it may be time to start an official debian package of
> hadoop with a public GIT repository so that everybody can participate.
> Would cloudera support this? I'd package hadoop 0.20 and apply all the
> cloudera patches (managed with topgit[1]).
> At this point I'd like to have your opinion whether it would be wise to have
> versioned binary packages like hadoop-18, hadoop-20 or just plain hadoop for
> the Debian package?
Hi Thomas,
I have been thinking about an official Hadoop Debian package for a while
too.
The main issue that prevents the inclusion of the current Cloudera
package into Debian is that it depends on Sun's Java. I think it would
be interesting, at least for an official Debian package, to depend on
OpenJDK in order to make it possible to distribute it in "main" instead
of "contrib".
Also, note that in order to fit into Debian's package autobuilding
system, some scripts will probably require some tweaking. For instance,
by default Hadoop downloads dependencies at build time using ivy, but
Debian packages should use already existing packages. Incidentally,
Hadoop depends on some libraries that aren't available in Debian yet,
such as xmlenc, so there is even more work to do.
(Anyway, I'm interested in the package, so let me know if you need some
help and want to set up a group on alioth or something.)
Re: debian package of hadoop
Posted by Isabel Drost <is...@apache.org>.
On Wednesday 30 December 2009 19:53:43 Thomas Koch wrote:
> Therefor I thought that it may be time to start an official debian package
> of hadoop with a public GIT repository so that everybody can participate.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535861
Just for reference: This is the request for packaging (Hadoop) in the debian
bug tracker. There is a related page in the Ubuntu wiki* that contains
information on issues blocking packaging.
Isabel
* https://wiki.ubuntu.com/HadoopPackagingSpec
--
|\ _,,,---,,_ Web: <http://www.isabel-drost.de>
/,`.-'`' -. ;-;;,_
|,4- ) )-,_..;\ ( `'-'
'---''(_/--' `-'\_) (fL) IM: <xm...@spaceboyz.net>