Thanks for the response Joel! I've tried several port numbers, including the one you suggested. I'm pretty sure they're not in use, at least I didn't see them in 'netstat.'
HOWEVER! I went ahead and tried to use Cassandra with the example here: http://wiki.apache.org/cassandra/CassandraCli and it seems to work just fine. So I guess, maybe I should just ignore the error? Dusty ----------------------- http://DustyReagan.com http://Conjunctured.com http://FloatingHeadStudios.com On Mon, Jan 11, 2010 at 12:32 AM, Joel Meyer <joel.me...@gmail.com> wrote: > Sounds like a variation of the same problem, are you sure nothing else is > using port 3076? Maybe try something higher, like 10036? > > > On Sun, Jan 10, 2010 at 9:58 PM, Dusty Reagan <dustyrea...@gmail.com>wrote: > >> Thanks for the reply Jonathan! >> >> I've already changed that port # to 3076 instead of 8080. That fixed the >> "Port already in use: 8080" error. I'm getting a brand new error: >> >> ERROR - Exception encountered during startup. >> java.net.BindException: Address already in use >> at sun.nio.ch.Net.bind(Native Method) >> at >> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) >> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) >> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:70) >> at >> org.apache.cassandra.net.MessagingService.listen(MessagingService.java:235) >> at >> org.apache.cassandra.service.StorageService.start(StorageService.java:278) >> at >> org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:72) >> at >> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:95) >> at >> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:167) >> >> Any ideas? >> >> Dusty >> ----------------------- >> http://DustyReagan.com >> http://Conjunctured.com >> http://FloatingHeadStudios.com >> >> >> >> On Fri, Jan 8, 2010 at 7:43 PM, Jonathan Ellis <jbel...@gmail.com> wrote: >> >>> stop whatever is using port 8080 or tell cassandra to use a different >>> one (in cassandra.in.sh); see also >>> http://wiki.apache.org/cassandra/RunningCassandra >>> >>> On Fri, Jan 8, 2010 at 7:13 PM, Dusty Reagan <du...@dustyreagan.com> >>> wrote: >>> > Hi! >>> > I'm trying to get Casandra running on Ubuntu 8.04.2 LTS (hardy). I've >>> got it >>> > installed but when I try and run it with "casandra -f" I get some lines >>> of >>> > debug info then the following error twice in a row: >>> > ERROR - Exception encountered during startup. >>> > java.net.BindException: Address already in use >>> > at sun.nio.ch.Net.bind(Native Method) >>> > at >>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) >>> > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) >>> > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:70) >>> > at >>> > >>> org.apache.cassandra.net.MessagingService.listen(MessagingService.java:235) >>> > at >>> > >>> org.apache.cassandra.service.StorageService.start(StorageService.java:278) >>> > at >>> > >>> org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:72) >>> > at >>> > >>> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:95) >>> > at >>> > >>> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:167) >>> > Any advice is appreciated. >>> > -Dusty >>> > This is what I've done: >>> > First upgraded my software as is. >>> >>> sudo apt-get update >>> >>> sudo apt-get upgrade >>> > Then added the following Debian Package to my /etc/apt/sources.list >>> file. >>> >>> sudo nano /etc/apt/sources.list >>> > deb http://www.apache.org/dist/incubator/cassandra/debian unstable >>> main >>> > deb-src http://www.apache.org/dist/incubator/cassandra/debian unstable >>> main >>> > Finally ran the update to install Cassandra. >>> >>> sudo apt-get update >>> > Got ERROR: >>> > W: GPG error: http://www.apache.org unstable Release: The following >>> > signatures couldn't be verified because the public key is not >>> available: >>> > NO_PUBKEY F758CE318D77295D >>> > Fixed ERROR by: >>> >>> gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 9AA38DCD55BE302B >>> >>> sudo apt-key add ~/.gnupg/pubring.gpg >>> > Retried cassandra install: >>> >>> sudo apt-get update >>> >>> sudo apt-get install cassandra >>> > Install works. Try to run: >>> >>> cassandra -f >>> > GOT Port ERROR conflict (probably due to SSH): >>> > Error: Exception thrown by the agent : java.rmi.server.ExportException: >>> Port >>> > already in use: 8080; nested exception is: >>> > java.net.BindException: Address already in use >>> > Fixed by changing Port # in cassandra.in.sh file: >>> > Dcom.sun.management.jmxremote.port=3076 >>> > Now when I try to run I get the following output: >>> > DEBUG - Loading settings from /etc/cassandra/storage-conf.xml >>> > DEBUG - Syncing log with a period of 1000 >>> > DEBUG - opening keyspace Keyspace1 >>> > DEBUG - adding Super1 as 0 >>> > DEBUG - adding Standard2 as 1 >>> > DEBUG - adding Standard1 as 2 >>> > DEBUG - adding StandardByUUID1 as 3 >>> > DEBUG - adding LocationInfo as 4 >>> > DEBUG - adding HintsColumnFamily as 5 >>> > DEBUG - Starting CFS Standard2 >>> > DEBUG - Starting CFS Super1 >>> > DEBUG - Starting CFS Standard1 >>> > DEBUG - Starting CFS StandardByUUID1 >>> > DEBUG - opening keyspace system >>> > DEBUG - Starting CFS LocationInfo >>> > DEBUG - INDEX LOAD TIME for >>> > /var/lib/cassandra/data/system/LocationInfo-1-Data.db: 0 ms. >>> > DEBUG - INDEX LOAD TIME for >>> > /var/lib/cassandra/data/system/LocationInfo-2-Data.db: 60 ms. >>> > DEBUG - Starting CFS HintsColumnFamily >>> > INFO - Replaying >>> /var/lib/cassandra/commitlog/CommitLog-1262945083831.log >>> > DEBUG - collecting Generation:false:4...@1 >>> > DEBUG - collecting Token:false:1...@0 >>> > INFO - Saved Token found: 78423312310466069721899695896283852742 >>> > ERROR - Exception encountered during startup. >>> > java.net.BindException: Address already in use >>> > at sun.nio.ch.Net.bind(Native Method) >>> > at >>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) >>> > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) >>> > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:70) >>> > at >>> > >>> org.apache.cassandra.net.MessagingService.listen(MessagingService.java:235) >>> > at >>> > >>> org.apache.cassandra.service.StorageService.start(StorageService.java:278) >>> > at >>> > >>> org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:72) >>> > at >>> > >>> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:95) >>> > at >>> > >>> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:167) >>> > Exception encountered during startup. >>> > java.net.BindException: Address already in use >>> > at sun.nio.ch.Net.bind(Native Method) >>> > at >>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) >>> > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) >>> > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:70) >>> > at >>> > >>> org.apache.cassandra.net.MessagingService.listen(MessagingService.java:235) >>> > at >>> > >>> org.apache.cassandra.service.StorageService.start(StorageService.java:278) >>> > at >>> > >>> org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:72) >>> > at >>> > >>> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:95) >>> > at >>> > >>> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:167) >>> > >>> >> >> >