Travis-ci上的Cassandra> = 3.0?

时间:2016-11-14 16:34:30

标签: cassandra travis-ci cassandra-3.0

在Travis-ci.org上有没有人有成功运行Cassandra 3.x(此时会有任何版本)的公式?我在这里尝试了这些说明:

https://www.codinglogs.com/using-travis-ci-with-cassandra-3-x/

任何数量的变化,但我得到的只是:

All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.TransportException: [/127.0.0.1:9042] Cannot connect))

1 个答案:

答案 0 :(得分:1)

我几乎跟着博客;仅在wget部分略有偏差。 代替     wget http://www.us.apache.org/dist/cassandra/3.3/apache-cassandra-3.3-bin.tar.gz && tar -xvzf apache-cassandra-3.3-bin.tar.gz

我用过

wget http://www.us.apache.org/dist/cassandra/3.9/apache-cassandra-3.9-bin.tar.gz && tar -xvzf apache-cassandra-3.9-bin.tar.gz

这是我的travis.yml

addons:  
  apt:
   packages:
    - oracle-java8-installer

before_install:    
  - sudo update-java-alternatives -s java-8-oracle
  - export JAVA_HOME=/usr/lib/jvm/java-8-oracle
  - java -version
  - sudo rm -rf /var/lib/cassandra/*
  - wget http://www.us.apache.org/dist/cassandra/3.9/apache-cassandra-3.9-bin.tar.gz && tar -xvzf apache-cassandra-3.9-bin.tar.gz
  - sudo sh ./apache-cassandra-3.3/bin/cassandra -R
  - sleep 20