对于我的硕士论文,我必须修改Cassandra的源代码。因此,按照的建议,我使用git克隆,然后运行ant,一切看起来都很好(我成功地构建了项目,没有任何错误),但是当我运行unitTests (cassandra/test)时,我遇到了这个奇怪的错误:
org.apache.cassandra.exceptions.ConfigurationException:
Expecting URI in variable: [cassandra.config].
Found[cassandra.yaml].
Please prefix the file with [file:
我遵循这里的示例:来编写我自己的MR作业,该作业从表A读取数据并将相同的数据写入表B。表A和B都存储在DataStax版本的Cassandra中。
我的MR作业读取所有数据没有问题,然后我也可以写入HDFS,但当我尝试写回表B时,它抛出错误:
attempt_201311051600_0300_r_000000_2: java.io.IOException: InvalidRequestException(why:there were 2 markers(?) in CQL but 3 bound variables)
attempt_201311051600_0300_r_000000_2:
编辑:--尽管yukim的解决方案确实有效,但我发现,通过降级到JDK8u251和8u261,sigar正确工作。
Windows 10 x64 ProCassandra 3.11.7
注意:我的主要JDK是JDK11.0.7,因此我重写了JAVA_HOME和Cassandra批处理文件中的PATH。
打开管理提示..。
java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (bu
这一直是卡桑德拉的正常,但今天当我进入卡桑德拉的bin文件夹并运行./cassandra时,没有任何响应,只是进入一个新的命令行,没有打开进程。我也打不开cqlsh。你能帮我解决这个问题吗?
system.log显示了唯一的错误:
ERROR [main] 2017-08-07 10:33:59,154 CassandraDaemon.java:655 - Port already in use: 7199; nested exception is:
java.net.BindException: Address already in use (Bind failed)
java.net.B
我在Windows上使用Cassandra 1.2.3,我已经下载了Jna.jar和Platform.jar并将其复制到C:\Program Files (x86)\apache- Cassandra -1.2.3\lib,但是当我运行Cassandra时,我收到以下消息
INFO 16:20:42,839 JNA link failure, one or more native method will be unavailable.
我没有找到在Windows中修复它的任何解决方案
我试图在Centos服务器上构建Casandra项目。我从这里下载的文件。
这是README.txt文件
This short guide will walk you through getting a basic one node cluster up
and running, and demonstrate some simple reads and writes.
* tar -zxvf apache-cassandra-$VERSION.tar.gz
* cd apache-cassandra-$VERSION
* sudo mkdir -p /var/log/cass
为了运行Cassandra,我在Windows 7上执行了以下操作:
已安装Python。
从原始站点下载了Cassandra的压缩文件。
执行cassandra batch时,得到以下消息:
Exception calling "Start" with "0" argument(s): "The system cannot find the file
specified" At E:\apache-cassandra-3.11.2\conf\cassandra-env.ps1:212 char:5
+ $p.Start() | Ou
我在运行Windows7的本地dev box中安装了单节点集群,并且运行良好。由于某些原因,我需要重新启动我的桌面,然后每当我在命令提示符上这样做时,它总是给我以下异常-
S:\Apache Cassandra\apache-cassandra-1.2.3\bin>cassandra -f
Starting Cassandra Server
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 7199; nested exception is: