Friday, September 21, 2012
NoClassDefFoundError: org/apache/lucene/util/Version
I make a project with blueprint-neo4j-graph and pellet , but pellet use lucene-core 2.3.1 and blueprint-neo4j-graph use lucene-core 3.5.0
I have a new error in neo4j to load lucene version
Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/util/Version
at org.neo4j.index.impl.lucene.LuceneDataSource.<clinit>(LuceneDataSource.java:110)
at org.neo4j.index.lucene.LuceneIndexProvider.load(LuceneIndexProvider.java:70)
at org.neo4j.kernel.InternalAbstractGraphDatabase$DefaultKernelExtensionLoader.loadIndexImplementations(InternalAbstractGraphDatabase.java:1191)
at org.neo4j.kernel.InternalAbstractGraphDatabase$DefaultKernelExtensionLoader.init(InternalAbstractGraphDatabase.java:1163)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:382)
... 39 more
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.util.Version
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 44 more
I have pellet dependence
<dependency>
<groupId>com.owldl</groupId>
<artifactId>pellet</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-neo4j-graph</artifactId>
<version>2.1.0</version>
</dependency>
With plugin m2e resolve depencence add this code in pom.xml project
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>3.5.0</version>
</dependency>
</dependencies>
</dependencyManagement>
Thursday, September 6, 2012
Install cassandra database
To install cassandra database distribution http://www.datastax.com/download/community
Dont work in 32 bit architecture. java Heap space error
To see web service
http://<publicIP>:8888/opscenter/
Ubuntu 12, 64 bit
Before
**** remove version of java openjdk and install java oracle
sudo apt-ger purge openjdk*
java 7
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java7-installer
****openssl python
sudo apt-get install libssl0.9.8
sudo apt-get install sysstat
sudo apt-get install python-cql
****Install cassandra, DataStax Community distribution of Cassandra. Read more in http://www.datastax.com/docs/1.1/install/install_deb
sudo apt-get install dsc1.1
****install web service. Read more in http://www.datastax.com/docs/opscenter/install/install_deb
sudo apt-get install opscenter-free
***web service configure
sudo vi /etc/opscenter/opscenterd.conf
***add in file
[cassandra]
seed_hosts=publicIP
[logging]
level=INFO
[jmx]
port =7199
***configure cassadra
sudo vi /etc/cassandra/cassandra.yaml
***change IP and localhost for publiIP
***start cassandra
sudo service cassandra start
***node cassandra
nodetool ring -h publicIP
**start web
sudo service opscenterd start
*** check web service
wget http://publicIP:8888/
***to see log
/var/log/opscenter/opscenterd.log
*** to start client cassandra
cassandra-cli -h publicIP -p 9160
***to see log of cassandra
/var/log/cassandra/output.log
/var/log/cassandra/system.log
*** delete database cassandra if you want , stop service before
sudo bash -c '/var/lib/cassandra/data/system/*'
Dont work in 32 bit architecture. java Heap space error
To see web service
http://<publicIP>:8888/opscenter/
Ubuntu 12, 64 bit
Before
**** remove version of java openjdk and install java oracle
sudo apt-ger purge openjdk*
java 7
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java7-installer
****openssl python
sudo apt-get install libssl0.9.8
sudo apt-get install sysstat
sudo apt-get install python-cql
****Install cassandra, DataStax Community distribution of Cassandra. Read more in http://www.datastax.com/docs/1.1/install/install_deb
sudo apt-get install dsc1.1
****install web service. Read more in http://www.datastax.com/docs/opscenter/install/install_deb
sudo apt-get install opscenter-free
***web service configure
sudo vi /etc/opscenter/opscenterd.conf
***add in file
[cassandra]
seed_hosts=publicIP
[logging]
level=INFO
[jmx]
port =7199
***configure cassadra
sudo vi /etc/cassandra/cassandra.yaml
***change IP and localhost for publiIP
***start cassandra
sudo service cassandra start
***node cassandra
nodetool ring -h publicIP
**start web
sudo service opscenterd start
*** check web service
wget http://publicIP:8888/
***to see log
/var/log/opscenter/opscenterd.log
*** to start client cassandra
cassandra-cli -h publicIP -p 9160
***to see log of cassandra
/var/log/cassandra/output.log
/var/log/cassandra/system.log
*** delete database cassandra if you want , stop service before
sudo bash -c '/var/lib/cassandra/data/system/*'
Subscribe to:
Posts (Atom)