Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

nick avatar image
nick asked ·

安装cassandra数据库报错

----操作步骤来源--

https://www.huaweicloud.com/kunpeng/software/cassandra.html

----报错疑问----

编译安装cassandra

http://archive.apache.org/dist/cassandra/3.11.6/debian/

tar -zxvf cassandra_3.11.6.tar.gz

cd apache-cassandra-3.11.6-src/

./apache-ant-1.10.9/bin/ant clean build release

Downloading: junit/junit/4.6/junit-4.6.pom from repository central at https://repo1.maven.org/maven2


-----操作系统版本---

CentOS Linux release 7.6

----安装步骤---

安装openjdk

yum install java-1.8.0-openjdk

yum install java-1.8.0-openjdk-devel

下载依赖包解压后放到指定目录:

tar -zxvf apache-ant-1.10.9-src.tar.gz

tar -zxvf commons-net-3.8.0-bin.tar.gz

cp commons-net-3.8.0/commons-net-3.8.0.jar ./apache-ant-1.10.9/lib/optional/

cp jsch-0.1.55.jar ./apache-ant-1.10.9/lib/optional/

tar -zxvf xml-commons-resolver-1.2.tar.gz

cp xml-commons-resolver-1.2/resolver.jar ./apache-ant-1.10.9/lib/optional/

tar -zxvf jakarta-regexp-1.5.tar.gz

cp jakarta-regexp-1.5/jakarta-regexp-1.5.jar ./apache-ant-1.10.9/lib/optional/

tar -zxvf jakarta-oro-2.0.8.tar.gz

cp jakarta-oro-2.0.8/jakarta-oro-2.0.8.jar ./apache-ant-1.10.9/lib/optional/

安装ant:

su - xxx

cd apache-ant-1.10.9/

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk

export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

sh build.sh -Ddist.dir=./ dist

export ANT_HOME=/xxx/apache-ant-1.10.9

sh build.sh install

cassandra installationcentos
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

It looks like you want to install Cassandra but instead you're following the procedure for compiling it.

Please follow the instructions I documented on the Installing Cassandra page. Go the section on installing the binary tarball and follow the steps in detail. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.