- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已按照“入门”步骤 here 进行操作,但是当我运行 bin/cassandra -f
时,我收到运行时异常“未看到其他节点!无法引导”。我也尝试过 DataStax 版本,但也不起作用。
以下是我运行命令后得到的日志:
xss = -ea -javaagent:./bin/../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms2G -Xmx2G -Xmn200M -XX:+HeapDumpOnOutOfMemoryError
INFO 17:55:03,552 Logging initialized
INFO 17:55:03,572 JVM vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.6.0_51
INFO 17:55:03,573 Heap size: 2126512128/2126512128
INFO 17:55:03,573 Classpath: ./bin/../conf:./bin/../build/classes/main:./bin/../build/classes/thrift:./bin/../lib/antlr-3.2.jar:./bin/../lib/apache-cassandra-1.2.6.jar:./bin/../lib/apache-cassandra-clientutil-1.2.6.jar:./bin/../lib/apache-cassandra-thrift-1.2.6.jar:./bin/../lib/avro-1.4.0-fixes.jar:./bin/../lib/avro-1.4.0-sources-fixes.jar:./bin/../lib/commons-cli-1.1.jar:./bin/../lib/commons-codec-1.2.jar:./bin/../lib/commons-lang-2.6.jar:./bin/../lib/compress-lzf-0.8.4.jar:./bin/../lib/concurrentlinkedhashmap-lru-1.3.jar:./bin/../lib/guava-13.0.1.jar:./bin/../lib/high-scale-lib-1.1.2.jar:./bin/../lib/jackson-core-asl-1.9.2.jar:./bin/../lib/jackson-mapper-asl-1.9.2.jar:./bin/../lib/jamm-0.2.5.jar:./bin/../lib/jbcrypt-0.3m.jar:./bin/../lib/jline-1.0.jar:./bin/../lib/jna-3.5.2.jar:./bin/../lib/json-simple-1.1.jar:./bin/../lib/libthrift-0.7.0.jar:./bin/../lib/log4j-1.2.16.jar:./bin/../lib/lz4-1.1.0.jar:./bin/../lib/metrics-core-2.0.3.jar:./bin/../lib/netty-3.5.9.Final.jar:./bin/../lib/platform-3.5.2.jar:./bin/../lib/servlet-api-2.5-20081211.jar:./bin/../lib/slf4j-api-1.7.2.jar:./bin/../lib/slf4j-log4j12-1.7.2.jar:./bin/../lib/snakeyaml-1.6.jar:./bin/../lib/snappy-java-1.0.5.jar:./bin/../lib/snaptree-0.1.jar:./bin/../lib/jamm-0.2.5.jar
INFO 17:55:03,661 JNA link failure, one or more native method will be unavailable.
INFO 17:55:03,675 Loading settings from file:/opt/apache-cassandra/conf/cassandra.yaml
INFO 17:55:04,060 Data files directories: [/var/lib/cassandra/data]
INFO 17:55:04,060 Commit log directory: /var/lib/cassandra/commitlog
INFO 17:55:04,061 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
INFO 17:55:04,061 disk_failure_policy is stop
INFO 17:55:04,067 Global memtable threshold is enabled at 676MB
INFO 17:55:04,215 Not using multi-threaded compaction
INFO 17:55:04,578 Initializing key cache with capacity of 100 MBs.
INFO 17:55:04,587 Scheduling key cache save to each 14400 seconds (going to save all keys).
INFO 17:55:04,588 Initializing row cache with capacity of 0 MBs and provider org.apache.cassandra.cache.SerializingCacheProvider
INFO 17:55:04,594 Scheduling row cache save to each 0 seconds (going to save all keys).
INFO 17:55:04,780 Opening /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ic-2 (224 bytes)
INFO 17:55:04,826 Opening /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ic-1 (225 bytes)
INFO 17:55:04,848 Opening /var/lib/cassandra/data/system/schema_columnfamilies/system-schema_columnfamilies-ic-1 (4612 bytes)
INFO 17:55:04,852 Opening /var/lib/cassandra/data/system/schema_columnfamilies/system-schema_columnfamilies-ic-2 (4610 bytes)
INFO 17:55:04,866 Opening /var/lib/cassandra/data/system/schema_columns/system-schema_columns-ic-2 (4347 bytes)
INFO 17:55:04,869 Opening /var/lib/cassandra/data/system/schema_columns/system-schema_columns-ic-1 (4347 bytes)
INFO 17:55:04,899 Opening /var/lib/cassandra/data/system/local/system-local-ic-6 (84 bytes)
INFO 17:55:04,904 Opening /var/lib/cassandra/data/system/local/system-local-ic-5 (390 bytes)
INFO 17:55:04,904 Opening /var/lib/cassandra/data/system/local/system-local-ic-7 (238 bytes)
INFO 17:55:05,432 completed pre-loading (3 keys) key cache.
INFO 17:55:05,441 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1372783491824.log, /var/lib/cassandra/commitlog/CommitLog-2-1372783491825.log, /var/lib/cassandra/commitlog/CommitLog-2-1372783491826.log, /var/lib/cassandra/commitlog/CommitLog-2-1372783491827.log
INFO 17:55:05,452 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1372783491824.log
INFO 17:55:05,533 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1372783491824.log
INFO 17:55:05,534 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1372783491825.log
INFO 17:55:05,536 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1372783491825.log
INFO 17:55:05,557 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1372783491826.log
INFO 17:55:05,558 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1372783491826.log
INFO 17:55:05,558 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1372783491827.log
INFO 17:55:05,558 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1372783491827.log
INFO 17:55:05,578 Enqueuing flush of Memtable-local@69635270(52/52 serialized/live bytes, 4 ops)
INFO 17:55:05,615 Writing Memtable-local@69635270(52/52 serialized/live bytes, 4 ops)
INFO 17:55:05,630 Enqueuing flush of Memtable-schema_keyspaces@1007379802(251/251 serialized/live bytes, 8 ops)
INFO 17:55:05,631 Enqueuing flush of Memtable-schema_columns@271259266(24717/24717 serialized/live bytes, 398 ops)
INFO 17:55:05,632 Enqueuing flush of Memtable-schema_columnfamilies@2094184728(22187/22187 serialized/live bytes, 369 ops)
INFO 17:55:05,648 Completed flushing /var/lib/cassandra/data/system/local/system-local-ic-8-Data.db (83 bytes) for commitlog position ReplayPosition(segmentId=1372784105314, position=142)
INFO 17:55:05,666 Writing Memtable-schema_keyspaces@1007379802(251/251 serialized/live bytes, 8 ops)
INFO 17:55:05,678 Completed flushing /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ic-3-Data.db (220 bytes) for commitlog position ReplayPosition(segmentId=1372784105314, position=142)
INFO 17:55:05,680 Writing Memtable-schema_columns@271259266(24717/24717 serialized/live bytes, 398 ops)
INFO 17:55:05,713 Completed flushing /var/lib/cassandra/data/system/schema_columns/system-schema_columns-ic-3-Data.db (4306 bytes) for commitlog position ReplayPosition(segmentId=1372784105314, position=142)
INFO 17:55:05,714 Writing Memtable-schema_columnfamilies@2094184728(22187/22187 serialized/live bytes, 369 ops)
INFO 17:55:05,737 Completed flushing /var/lib/cassandra/data/system/schema_columnfamilies/system-schema_columnfamilies-ic-3-Data.db (4593 bytes) for commitlog position ReplayPosition(segmentId=1372784105314, position=142)
INFO 17:55:05,738 Log replay complete, 13 replayed mutations
INFO 17:55:06,054 Cassandra version: 1.2.6
INFO 17:55:06,054 Thrift API version: 19.36.0
INFO 17:55:06,055 CQL supported versions: 2.0.0,3.0.4 (default: 3.0.4)
INFO 17:55:06,124 Loading persisted ring state
INFO 17:55:06,128 Starting up server gossip
INFO 17:55:06,144 Enqueuing flush of Memtable-local@796902479(251/251 serialized/live bytes, 9 ops)
INFO 17:55:06,144 Writing Memtable-local@796902479(251/251 serialized/live bytes, 9 ops)
INFO 17:55:06,156 Completed flushing /var/lib/cassandra/data/system/local/system-local-ic-9-Data.db (238 bytes) for commitlog position ReplayPosition(segmentId=1372784105314, position=53949)
INFO 17:55:06,167 Compacting [SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ic-7-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ic-9-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ic-8-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ic-5-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ic-6-Data.db')]
INFO 17:55:06,261 Compacted 5 sstables to [/var/lib/cassandra/data/system/local/system-local-ic-10,]. 1,033 bytes to 395 ( 1 export SVN_EDITOR=vim
~38% of original) in 76ms = 0.004957MB/s. 5 total rows, 1 unique. Row merge counts were {1:0, 2:0, 3:0, 4:0, 5:1, }
INFO 17:55:06,336 Starting Messaging Service on port 7000
WARN 17:55:06,387 Detected previous bootstrap failure; retrying
INFO 17:55:06,389 JOINING: waiting for ring information
INFO 17:55:36,416 JOINING: schema complete, ready to bootstrap
INFO 17:55:36,419 JOINING: getting bootstrap token
ERROR 17:55:36,421 Exception encountered during startup
java.lang.RuntimeException: No other nodes seen! Unable to bootstrap.If you intended to start a single-node cluster, you should make sure your broadcast_address (or listen_address) is listed as a seed. Otherwise, you need to determine why the seed being contacted has no knowledge of the rest of the cluster. Usually, this can be solved by giving all nodes the same seed list.
at org.apache.cassandra.dht.BootStrapper.getBootstrapSource(BootStrapper.java:154)
at org.apache.cassandra.dht.BootStrapper.getBalancedToken(BootStrapper.java:135)
at org.apache.cassandra.dht.BootStrapper.getBootstrapTokens(BootStrapper.java:115)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:666)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:554)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:451)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:342)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:441)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:484)
java.lang.RuntimeException: No other nodes seen! Unable to bootstrap.If you intended to start a single-node cluster, you should make sure your broadcast_address (or listen_address) is listed as a seed. Otherwise, you need to determine why the seed being contacted has no knowledge of the rest of the cluster. Usually, this can be solved by giving all nodes the same seed list.
at org.apache.cassandra.dht.BootStrapper.getBootstrapSource(BootStrapper.java:154)
at org.apache.cassandra.dht.BootStrapper.getBalancedToken(BootStrapper.java:135)
at org.apache.cassandra.dht.BootStrapper.getBootstrapTokens(BootStrapper.java:115)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:666)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:554)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:451)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:342)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:441)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:484)
Exception encountered during startup: No other nodes seen! Unable to bootstrap.If you intended to start a single-node cluster, you should make sure your broadcast_address (or listen_address) is listed as a seed. Otherwise, you need to determine why the seed being contacted has no knowledge of the rest of the cluster. Usually, this can be solved by giving all nodes the same seed list.
ERROR 17:55:36,424 Exception in thread Thread[StorageServiceShutdownHook,5,main]
java.lang.NullPointerException
at org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:321)
at org.apache.cassandra.service.StorageService.shutdownClientServers(StorageService.java:370)
at org.apache.cassandra.service.StorageService.access$000(StorageService.java:88)
at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:519)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
at java.lang.Thread.run(Thread.java:680)
最佳答案
正如 Richard 指出的,seeds
必须与单节点环境中的 listen_address
相同。导致引导异常的原因是我的Mac上打开了远程登录,因此localhost
返回的是本地IP而不是127.0.0.1
。关闭远程登录解决了问题。
关于java - Cassandra 1.2.6 : unable to bootstrap on Mac OS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17433483/
在几个 SO 的问题中,有这些行可以访问代码的父目录,例如os.path.join(os.path.dirname(__file__)) returns nothing和 os.path.join(o
我想用 Python 更改文件模式。 os 模块具有三个功能上看似相同的功能: os.chmod os.fchmod os.lchmod 这三个版本有什么区别? 最佳答案 chmod 用于更改路径指定
考虑: pipe_read, pipe_write = os.pipe() 现在,我想知道两件事: (1) 我有两个线程。如果我保证只有一个正在读取 os.read(pipe_read,n) 而另一个
这个问题不太可能帮助任何 future 的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visit
让我们以硬盘驱动器/网络接口(interface)为例。它由多个进程共享。现在多个进程可能会向硬盘驱动器发出并发命令来读取数据。当数据可用时,内核如何知道哪个进程的数据已准备好?操作系统和硬盘驱动器之
嗨,我正在尝试编写像这样的原子写入函数...... with tempfile.NamedTemporaryFile(mode= "w", dir= target_directory) as f:
net.Conn接口(interface)提供了 SetTimeout 方法,我应该用 os.Timeout 检查返回的错误.但是我看不到在返回的 os.Error 上调用 os.Timeout 的方
我正在使用 os 模块在我的 Django 项目 settings.py 文件中具有相对路径。变量 SITE_ROOT 设置为 settings.py 文件的当前工作目录,然后用于引用同样位于同一目录
正如我们所知,Windows 接受 "\" 和 "/" 作为分隔符。但是在python中,使用的是"\"。例如,调用 os.path.join("foo","bar"),将返回 'foo\\bar'。
我有以下工作目录:/Users/jordan/Coding/Employer/code_base ,我想要获取绝对路径的文件位于 /Users/jordan/Coding/Employer/code_
在 Python 中,如果路径中包含“~”,我能否确定扩展的用户调用将是绝对路径? 例如,这个表达式是否总是为真? path = '~/.my_app' os.path.expanduser(path
我是 Django 项目的初学者。Django 项目的 settings.py 文件包含这两行: BASE_DIR = os.path.dirname(os.path.dirname(os.path.
我有一个旧 MAC OS 文件存储中的文件集合。我知道集合存在文件名/路径名问题。问题源于我认为在原始操作系统中呈现为破折号的路径中包含一个代码点,但 Windows 与代码点斗争,并且其中一个包含
Ubuntu怎么安装mac os x主题呢?下文小编将为大家分享ubuntu14.04安装mac os x主题教程,安装MAC OS X&
我有一个 Firefox OS 应用程序,我希望在该应用程序之外打开一个链接(该链接指向不同的站点,在应用程序中打开它会使应用程序在没有强制的情况下无法使用)。我怎么做? Related bug re
我想为 Firefox OS 编写我的应用程序.使用什么样的语言(如 Android 的 Java 和 iOS 的 Objective C++)和工具(如 Eclipse、Xcode)? 最佳答案 适
我正在尝试创建一个 Palm OS 应用程序,以每 X 分钟或几小时检查一次网站,并在有数据可用时提供通知。我知道这种事情可以在新的 Palm 上完成——例如,当应用程序不在顶部时,我的 Centro
我需要在 Firefox OS 中显示全屏图像。我有一个具有 qHD 分辨率(960x540 像素)的“峰值”开发预览手机。 如何确保我的应用程序在其他具有不同屏幕分辨率的 firefox-os 设备
我正在尝试在 Firefox OS 中安装一个新的语言环境,但我不确定我是否正确地按照这些步骤操作。 首先,我尝试使用 Mercurial 下载所需的语言环境:它对我不起作用,Mercurial 说访
我有这个shell脚本Test.sh: #! /bin/bash FILE_TO_CHECK="/Users/test/start.txt" EXIT=0 while [ $EXIT -eq 0 ];
我是一名优秀的程序员,十分优秀!