You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Joseph Crotty <jo...@gmail.com> on 2013/01/14 19:23:06 UTC
kafka-0.7.2 sbt and remote installs help
Trying to install kafka on remote machines with no internet access. Not
sure how to approach the sbt update && sbt package pieces. I tried using
sbt (lib/sbt-launch.jar) on a local machine with internet access as follows:
$ sudo su - kafka
$ cd /usr/local/kafka-0.7.2-incubating-src
$ cat ./sbt
java -Xmx1024M -XX:MaxPermSize=512m\
-Dsbt.ivy.home=$HOME/.ivy2/ -Divy.home=$HOME/.ivy2/\
-jar `dirname $0`/lib/sbt-launch.jar "$@"
$ ./sbt publish-local
Looking over /home/kafka/.ivy2/ I see everything I think kafka needs except
for scala itself.
I then copied /home/kafka/.ivy2/ to an internet-less target machine which
is set up identically to my local box. I then run sbt to no avail - gist is
here <https://gist.github.com/4532051>. At the bottom of the gist I have
included the contents of /home/kafka/.ivy2/.
Ideas?
Joe
Re: kafka-0.7.2 sbt and remote installs help
Posted by Jun Rao <ju...@gmail.com>.
It should work on at least all versions of java 6 and beyond.
Thanks,
Jun
On Tue, Jan 15, 2013 at 8:24 AM, Joseph Crotty <jo...@gmail.com>wrote:
> Jun,
>
> Will it matter if the versions of Java are different between the two
> machines?
>
> Joe
>
>
> On Mon, Jan 14, 2013 at 4:04 PM, Jun Rao <ju...@gmail.com> wrote:
>
> > You need to do "./sbt update " and "./sbt package" on your local machine
> > with internet access. Then, you can copy the whole dir to your remote
> > machine.
> >
> > Thanks,
> >
> > Jun
> >
> > On Mon, Jan 14, 2013 at 10:23 AM, Joseph Crotty <josephcrotty@gmail.com
> > >wrote:
> >
> > > Trying to install kafka on remote machines with no internet access. Not
> > > sure how to approach the sbt update && sbt package pieces. I tried
> using
> > > sbt (lib/sbt-launch.jar) on a local machine with internet access as
> > > follows:
> > >
> > > $ sudo su - kafka
> > > $ cd /usr/local/kafka-0.7.2-incubating-src
> > > $ cat ./sbt
> > > java -Xmx1024M -XX:MaxPermSize=512m\
> > > -Dsbt.ivy.home=$HOME/.ivy2/ -Divy.home=$HOME/.ivy2/\
> > > -jar `dirname $0`/lib/sbt-launch.jar "$@"
> > > $ ./sbt publish-local
> > >
> > > Looking over /home/kafka/.ivy2/ I see everything I think kafka needs
> > except
> > > for scala itself.
> > >
> > > I then copied /home/kafka/.ivy2/ to an internet-less target machine
> which
> > > is set up identically to my local box. I then run sbt to no avail -
> gist
> > is
> > > here <https://gist.github.com/4532051>. At the bottom of the gist I
> have
> > > included the contents of /home/kafka/.ivy2/.
> > >
> > > Ideas?
> > >
> > > Joe
> > >
> >
>
Re: kafka-0.7.2 sbt and remote installs help
Posted by Joseph Crotty <jo...@gmail.com>.
Jun,
Will it matter if the versions of Java are different between the two
machines?
Joe
On Mon, Jan 14, 2013 at 4:04 PM, Jun Rao <ju...@gmail.com> wrote:
> You need to do "./sbt update " and "./sbt package" on your local machine
> with internet access. Then, you can copy the whole dir to your remote
> machine.
>
> Thanks,
>
> Jun
>
> On Mon, Jan 14, 2013 at 10:23 AM, Joseph Crotty <josephcrotty@gmail.com
> >wrote:
>
> > Trying to install kafka on remote machines with no internet access. Not
> > sure how to approach the sbt update && sbt package pieces. I tried using
> > sbt (lib/sbt-launch.jar) on a local machine with internet access as
> > follows:
> >
> > $ sudo su - kafka
> > $ cd /usr/local/kafka-0.7.2-incubating-src
> > $ cat ./sbt
> > java -Xmx1024M -XX:MaxPermSize=512m\
> > -Dsbt.ivy.home=$HOME/.ivy2/ -Divy.home=$HOME/.ivy2/\
> > -jar `dirname $0`/lib/sbt-launch.jar "$@"
> > $ ./sbt publish-local
> >
> > Looking over /home/kafka/.ivy2/ I see everything I think kafka needs
> except
> > for scala itself.
> >
> > I then copied /home/kafka/.ivy2/ to an internet-less target machine which
> > is set up identically to my local box. I then run sbt to no avail - gist
> is
> > here <https://gist.github.com/4532051>. At the bottom of the gist I have
> > included the contents of /home/kafka/.ivy2/.
> >
> > Ideas?
> >
> > Joe
> >
>
Re: kafka-0.7.2 sbt and remote installs help
Posted by Jun Rao <ju...@gmail.com>.
You need to do "./sbt update " and "./sbt package" on your local machine
with internet access. Then, you can copy the whole dir to your remote
machine.
Thanks,
Jun
On Mon, Jan 14, 2013 at 10:23 AM, Joseph Crotty <jo...@gmail.com>wrote:
> Trying to install kafka on remote machines with no internet access. Not
> sure how to approach the sbt update && sbt package pieces. I tried using
> sbt (lib/sbt-launch.jar) on a local machine with internet access as
> follows:
>
> $ sudo su - kafka
> $ cd /usr/local/kafka-0.7.2-incubating-src
> $ cat ./sbt
> java -Xmx1024M -XX:MaxPermSize=512m\
> -Dsbt.ivy.home=$HOME/.ivy2/ -Divy.home=$HOME/.ivy2/\
> -jar `dirname $0`/lib/sbt-launch.jar "$@"
> $ ./sbt publish-local
>
> Looking over /home/kafka/.ivy2/ I see everything I think kafka needs except
> for scala itself.
>
> I then copied /home/kafka/.ivy2/ to an internet-less target machine which
> is set up identically to my local box. I then run sbt to no avail - gist is
> here <https://gist.github.com/4532051>. At the bottom of the gist I have
> included the contents of /home/kafka/.ivy2/.
>
> Ideas?
>
> Joe
>