whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiss Tibor <kiss.ti...@gmail.com>
Subject Re: CassandraServiceTest integration test does not complete
Date Wed, 03 Nov 2010 16:39:08 GMT
I repeated the tests and I see that the script buket exists because the
/tmp/runscript/stderr.log showed me java install and more... at the end I
see:

> + '[' '!' -e apache-cassandra-0.6.2-bin.tar.gz ']'
> + tar zxf apache-cassandra-0.6.2-bin.tar.gz -C /usr/local
> + rm -f apache-cassandra-0.6.2-bin.tar.gz
> apache-cassandra-0.6.2-bin.tar.gz.md5
> + echo 'export CASSANDRA_HOME=/usr/local/apache-cassandra-0.6.2'
> + echo 'export PATH=$CASSANDRA_HOME/bin:$PATH'
> + mkdir -p /mnt/cassandra/logs
> + ln -s /mnt/cassandra/logs /var/log/cassandra
> + mkdir -p /etc/cassandra/conf
> + cp /usr/local/apache-cassandra-0.6.2/conf/log4j.properties
> /etc/cassandra/conf
> + cp /usr/local/apache-cassandra-0.6.2/conf/storage-conf.xml
> /etc/cassandra/conf
> + sed -i -e
> 's|CASSANDRA_CONF=$cassandra_home/conf|CASSANDRA_CONF=/etc/cassandra/conf|'
> /usr/local/apache-cassandra-0.6.2/bin/cassandra.in.sh
> + cat
>

In the /tmp/runscript/stdout.log I see:

> Unpacking...
> Checksumming...
> Extracting...
> UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
>   inflating: jdk-6u21-linux-amd64.rpm
>   inflating: sun-javadb-common-10.5.3-0.2.i386.rpm
>   inflating: sun-javadb-core-10.5.3-0.2.i386.rpm
>   inflating: sun-javadb-client-10.5.3-0.2.i386.rpm
>   inflating: sun-javadb-demo-10.5.3-0.2.i386.rpm
>   inflating: sun-javadb-docs-10.5.3-0.2.i386.rpm
>   inflating: sun-javadb-javadoc-10.5.3-0.2.i386.rpm
> Preparing...
> ##################################################
> jdk
> ##################################################
> Unpacking JAR files...
>         rt.jar...
>         jsse.jar...
>         charsets.jar...
>         tools.jar...
>         localedata.jar...
>         plugin.jar...
>         javaws.jar...
>         deploy.jar...
> Installing JavaDB
> Preparing...
> ##################################################
> sun-javadb-common
> ##################################################
> sun-javadb-core
> ##################################################
> sun-javadb-client
> ##################################################
> sun-javadb-demo
> ##################################################
> sun-javadb-docs
> ##################################################
> sun-javadb-javadoc
> ##################################################
>
> Done.
> apache-cassandra-0.6.2-bin.tar.gz: OK
>


But the problem is it in /var/log/cassandra/system.log

>  INFO [main] 2010-11-03 16:15:49,078 DatabaseDescriptor.java (line 232)
> Auto DiskAccessMode determined to be mmap
> ERROR [main] 2010-11-03 16:15:49,317 CassandraDaemon.java (line 195)
> Exception encountered during startup.
> java.lang.ExceptionInInitializerError
>         at
> org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:64)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177)
> Caused by: java.lang.RuntimeException: java.net.UnknownHostException: -c
>         at
> org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:539)
>         ... 2 more
> Caused by: java.net.UnknownHostException: -c
>         at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>         at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
>         at
> java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
>         at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
>         at java.net.InetAddress.getAllByName(InetAddress.java:1084)
>         at java.net.InetAddress.getAllByName(InetAddress.java:1020)
>         at java.net.InetAddress.getByName(InetAddress.java:970)
>         at
> org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:528)
>         ... 2 more
>


Here are some more related info:
the cassandra.in.sh contains:

> # "License"); you may not use this file except in compliance
> # with the License.  You may obtain a copy of the License at
> #
> #     http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
>
>
> cassandra_home=`dirname $0`/..
>
> # The directory where Cassandra's configs live (required)
> CASSANDRA_CONF=/etc/cassandra/conf
>
> # This can be the path to a jar file, or a directory containing the
> # compiled classes. NOTE: This isn't needed by the startup script,
> # it's just used here in constructing the classpath.
> cassandra_bin=$cassandra_home/build/classes
> #cassandra_bin=$cassandra_home/build/cassandra.jar
>
> # JAVA_HOME can optionally be set here
> #JAVA_HOME=/usr/local/jdk6
>
> # The java classpath (required)
> CLASSPATH=$CASSANDRA_CONF:$cassandra_bin
>
> for jar in $cassandra_home/lib/*.jar; do
>     CLASSPATH=$CLASSPATH:$jar
> done
>
> # Arguments to pass to the JVM
> JVM_OPTS=" \
>         -ea \
>         -Xms256M \
>         -Xmx1G \
>         -XX:+UseParNewGC \
>         -XX:+UseConcMarkSweepGC \
>         -XX:+CMSParallelRemarkEnabled \
>         -XX:SurvivorRatio=8 \
>         -XX:MaxTenuringThreshold=1 \
>         -XX:+HeapDumpOnOutOfMemoryError \
>         -Dcom.sun.management.jmxremote.port=8080 \
>         -Dcom.sun.management.jmxremote.ssl=false \
>         -Dcom.sun.management.jmxremote.authenticate=false"
>

I also attached the storage-conf.xml to this email...

Interesting is that in my integration test directory
(services/cassandra/target/... ) it says that the

-------------------------------------------------------------------------------
Test set: org.apache.whirr.service.cassandra.CassandraServiceTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.385 sec

but the instances are not stopped or terminated.

Cheers,
Tibor

On Wed, Nov 3, 2010 at 4:36 PM, Tom White <tom.e.white@gmail.com> wrote:

> I think this is because there is no 0.3.0-incubation-SNAPSHOT directory,
> which trunk is now looking for since 0.2.0 was branched.
>
> I'll fix it.
>
> Tom
> On Nov 3, 2010 8:28 AM, "Patrick Hunt" <phunt@cloudera.com> wrote:
> > (moving this to whirr-user)
> >
> > Sounds like this jira I recently created:
> > https://issues.apache.org/jira/browse/WHIRR-123
> >
> > You can verify by logging into the instance and checking the stderr
> > file (/tmp/runscript.../stderr (something like that))
> >
> > Basically you need to ensure that the script bucket exists.
> >
> > Tom, could this be related to the release activities? Now that we
> > added the bucket (last night) should that address it? Or the bucket
> > name is diff for trunk vs branch0.2
> >
> > Patrick
> >
> > ps. I noticed the test doesn't cleanup properly in this case, you
> > should check your ec2 instances and terminate any zombies that are
> > associated with this test.
> >
> > On Wed, Nov 3, 2010 at 3:50 AM, Kiss Tibor <kiss.tibor@gmail.com> wrote:
> >> In order to submit a JIRA issue eventually with a patch, I started to
> >> perform all the steps described here
> >> https://cwiki.apache.org/confluence/display/WHIRR/How+To+Contribute but
> I
> >> experienced a problem with the integration test that my
> CassandraServiceTest
> >> did not ended at all. I waited a half an hour while working on something
> >> else, but manually I had to kill the tests and drop the two new
> instances
> >> created by the test.
> >>
> >>
> >> This is what I saw it...
> >> There is no failed test until that...
> >> ------------------------------------------------------
> >>  T E S T S
> >> -------------------------------------------------------
> >> Running
> org.apache.whirr.service.cassandra.integration.CassandraServiceTest
> >> 2010-11-03 10:20:15,369 INFO
> >> [org.apache.whirr.service.cassandra.CassandraService] (main) Launching
> >> cassandraclustertest cluster
> >> 2010-11-03 10:20:21,020 INFO
> >> [org.apache.whirr.service.cassandra.CassandraService] (main) Configuring
> >> template
> >> 2010-11-03 10:20:29,684 WARN  [org.jclouds.http.internal.HttpWire] (i/o
> >> thread 0) over limit 556527/262144: wrote temp file
> >> 2010-11-03 10:20:30,227 WARN  [org.jclouds.http.internal.HttpWire] (i/o
> >> thread 3) over limit 415229/262144: wrote temp file
> >> 2010-11-03 10:20:30,506 WARN  [org.jclouds.http.internal.HttpWire] (i/o
> >> thread 2) over limit 319497/262144: wrote temp file
> >> 2010-11-03 10:20:32,155 WARN  [org.jclouds.http.internal.HttpWire] (i/o
> >> thread 1) over limit 823243/262144: wrote temp file
> >> 2010-11-03 10:20:42,770 INFO
> >> [org.apache.whirr.service.cassandra.CassandraService] (main) Starting 2
> >> node(s)
> >> 2010-11-03 10:24:03,147 INFO
> >> [org.apache.whirr.service.cassandra.CassandraService] (main) Nodes
> started:
> >> [[id=us-east-1/i-c8c77ba5, providerId=i-c8c77ba5,
> tag=cassandraclustertest,
> >> name=null, location=[id=us-east-1c, scope=ZONE, description=us-east-1c,
> >> parent=us-east-1], uri=null, imageId=us-east-1/ami-2272864b,
> os=[name=null,
> >> family=amzn-linux, version=0.9.9-beta, arch=paravirtual, is64Bit=true,
> >> description=137112412989/amzn-ami-0.9.9-beta.x86_64-ebs],
> userMetadata={},
> >> state=RUNNING, privateAddresses=[10.122.126.73],
> >> publicAddresses=[50.16.30.244], hardware=[id=t1.micro,
> providerId=t1.micro,
> >> name=t1.micro, processors=[[cores=1.0, speed=1.0]], ram=630,
> >> volumes=[[id=vol-70fce519, type=SAN, size=null, device=/dev/sda1,
> >> durable=true, isBootDevice=true]],
> supportsImage=hasRootDeviceType(ebs)]],
> >> [id=us-east-1/i-cec77ba3, providerId=i-cec77ba3,
> tag=cassandraclustertest,
> >> name=null, location=[id=us-east-1c, scope=ZONE, description=us-east-1c,
> >> parent=us-east-1], uri=null, imageId=us-east-1/ami-2272864b,
> os=[name=null,
> >> family=amzn-linux, version=0.9.9-beta, arch=paravirtual, is64Bit=true,
> >> description=137112412989/amzn-ami-0.9.9-beta.x86_64-ebs],
> userMetadata={},
> >> state=RUNNING, privateAddresses=[10.123.2.175],
> >> publicAddresses=[184.72.92.141], hardware=[id=t1.micro,
> providerId=t1.micro,
> >> name=t1.micro, processors=[[cores=1.0, speed=1.0]], ram=630,
> >> volumes=[[id=vol-7efce517, type=SAN, size=null, device=/dev/sda1,
> >> durable=true, isBootDevice=true]],
> supportsImage=hasRootDeviceType(ebs)]]]
> >> 2010-11-03 10:24:03,148 INFO
> >> [org.apache.whirr.service.cassandra.CassandraService] (main) Authorizing
> >> firewall
> >> 2010-11-03 10:24:04,552 INFO
> >> [org.apache.whirr.service.cassandra.CassandraService] (main) Running
> >> configuration script
> >> 2010-11-03 10:24:17,814 INFO
> >> [org.apache.whirr.service.cassandra.CassandraService] (main) Completed
> >> launch of cassandraclustertest
> >>
> >> Somebody has an ideea what was wrong?
> >>
> >> Cheers,
> >> Tibor K.
> >>
>

Mime
View raw message