Hi All, I was trying to create indexes on HDFSDirectory. So I tried to use lucene-hdfs-directory-4.7.0 but it seems to be incompatible with lucene-5.2.0. The class HdfsDirectory requires to create an instance of BufferedIndexOutput which has been deprecated in the lucene-5.2.0 hence my application is repeatedly failing with NoClassDefFoundError exception. Following is the stack trace:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/store/BufferedIndexOutput at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.poc.lucene.core.Indexer2.startIndexing(Indexer2.java:102) at com.poc.lucene.core.Indexer2.indexFiles(Indexer2.java:72) at com.poc.lucene.client.IndexFieldClient.main(IndexFieldClient.java:17) Can someone guide me to sort out this problem? Or help to understand the correct way to create indexes on HDFS using lucene? Is Solr the only way to create indexes on HDFS using Lucene? Thanks in advance. Regards, Sandeep