메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


아래와 같이 bin/cassandra -f -R로 cassandra를 기동할때 정상적으로 기동되는 듯하다가 
index관련 처리부분에서 NullPointerException오류가 발생하는 경우는 /data/cassandra밑의 data폴더를 지워주고 
다시 시작한다.

-----------------------------------------오류내용의 일부 ---------------------------
15067347904517, 8522817942925129354, 8524406648301154087, 8663722799961391309, 8668079866152391863, 8679491161910936027, 8805579721382281499, 8808965633431700018, 9044464793187867648, 9146317112899005756, 9177583013542206722]

INFO  01:04:33 Initializing system_schema.keyspaces
INFO  01:04:33 Initializing system_schema.tables
INFO  01:04:33 Initializing system_schema.columns
INFO  01:04:33 Initializing system_schema.triggers
INFO  01:04:33 Initializing system_schema.dropped_columns
INFO  01:04:33 Initializing system_schema.views
INFO  01:04:33 Initializing system_schema.types
INFO  01:04:33 Initializing system_schema.functions
INFO  01:04:33 Initializing system_schema.aggregates
INFO  01:04:33 Initializing system_schema.indexes
Exception (java.lang.NullPointerException) encountered during startup: null
java.lang.NullPointerException
        at org.apache.cassandra.index.internal.CassandraIndexFunctions.getIndexedValueType(CassandraIndexFunctions.java:51)
        at org.apache.cassandra.index.internal.CassandraIndex.indexCfsMetadata(CassandraIndex.java:710)
        at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:635)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:239)
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:551)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:680)
ERROR 01:04:34 Exception encountered during startup
java.lang.NullPointerException: null
        at org.apache.cassandra.index.internal.CassandraIndexFunctions.getIndexedValueType(CassandraIndexFunctions.java:51) ~[apache-cassandra-3.4.jar:3.4]
        at org.apache.cassandra.index.internal.CassandraIndex.indexCfsMetadata(CassandraIndex.java:710) ~[apache-cassandra-3.4.jar:3.4]
        at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:635) ~[apache-cassandra-3.4.jar:3.4]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:239) [apache-cassandra-3.4.jar:3.4]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:551) [apache-cassandra-3.4.jar:3.4]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:680) [apache-cassandra-3.4.jar:3.4]
위로