Hi everyone, One other thing: Is there any plan to update this plugin to use virtual nodes?
Thanks! Best regards, Clint On Fri, May 2, 2014 at 1:33 PM, Clint Kelly <clint.ke...@gmail.com> wrote: > Hi everyone, > > I am having a couple of issues starting a multi-node cluster with the > Cassandra plugin on OS X. I am able to run a single-node cluster without > any problems, but when I try to run with multiple nodes, I get the > following output: > > [INFO] > [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ > cassandra-integration --- > [INFO] Building jar: > /Users/clint/play/cassandra/little_examples/cassandra-integration/target/cassandra-integration-1.0-SNAPSHOT.jar > [INFO] > [INFO] --- cassandra-maven-plugin:2.0.0-1:start-cluster (default) @ > cassandra-integration --- > [INFO] Starting for Cassandra Node 1... > [INFO] Starting for Cassandra Node 2... > [INFO] Waiting for Cassandra Node 1 to start... > [INFO] log4j:WARN No appenders could be found for logger > (org.apache.cassandra.service.CassandraDaemon). > [INFO] log4j:WARN Please initialize the log4j system properly. > [INFO] log4j:WARN See > http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. > [INFO] log4j:WARN No appenders could be found for logger > (org.apache.cassandra.service.CassandraDaemon). > [INFO] log4j:WARN Please initialize the log4j system properly. > [INFO] log4j:WARN See > http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. > [INFO] For input string: "85070591730234615865843651857942052864" > [INFO] Fatal configuration error; unable to start. See log for stacktrace. > [INFO] Cassandra cluster "Test Cluster" started. > [INFO] Waiting for Cassandra Node 2 to start... > > At this point, Maven hangs and I have to hit ctrl-C. > > I ran the appropriate "sudo ifconfig lo0 alias 127.0.0.2 up" commands for > 127.0.0.2 - 127.0.0.7. > > A couple of questions: > > 1. How do I set up logging? I was able to get rid of some errors about > log4j classes missing by adding the log4j JAR to the list of dependencies > for the plugin, but I'm not sure where to put my log4j.properties file (I > have on in src/test/resources/log4j.properties, but that doesn't seem to > get loaded by start-cluster). > > 2. Anyone have any suggestions why I'd be getting errors like what I've > shown above? > > My POM is below. I would really appreciate any help! > > Best regards, > Clint > > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > > <groupId>org.kiji.cassandra</groupId> > <artifactId>cassandra-integration</artifactId> > <version>1.0-SNAPSHOT</version> > <packaging>jar</packaging> > > <name>cassandra-integration</name> > <url>http://maven.apache.org</url> > > <properties> > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > </properties> > > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.11</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>com.datastax.cassandra</groupId> > <artifactId>cassandra-driver-core</artifactId> > <version>2.0.1</version> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <artifactId>maven-failsafe-plugin</artifactId> > <version>2.7.1</version> > <executions> > <execution> > <goals> > <goal>integration-test</goal> > <goal>verify</goal> > </goals> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>cassandra-maven-plugin</artifactId> > <version>2.0.0-1</version> > <executions> > <execution> > <goals> > <goal>start-cluster</goal> > <goal>stop-cluster</goal> > </goals> > </execution> > </executions> > <configuration> > <startNativeTransport>true</startNativeTransport> > <clusterSize>2</clusterSize> > <!-- Try to see if this will allow the server to use > src/test/resources/log4j.properties... --> > <addTestClasspath>true</addTestClasspath> > </configuration> > <dependencies> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-log4j12</artifactId> > <version>1.7.7</version> > </dependency> > </dependencies> > </plugin> > </plugins> > </build> > </project> >