org.apache.solr.common.SolrException: SolrCore 'mycore' is not available due to init failure: Error loading class 'solr.admin.AdminHandlers'

tip

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

tip

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

tip

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Error - newbie-
    via GitHub by MyraBaba
    ,
  • Error in spark-submit but not in pyspark
    via Stack Overflow by nanounanue
    ,
  • GitHub comment 2886#275626070
    via GitHub by jheijkoop
    ,
  • Scala 2.11 support?
    via GitHub by Hydrotoast
    ,
  • command line interface is failing when i tried to load 1gb file. I tried to increase the memory using command line I am getting fallowing error. can you please advice how i can work around it? [root@bda1node03 forecast]# flags="-Xmx2048m" kite-dataset csv-import AccuWeatherForecast11222015.csv ctest1 Exception in thread "main" java.lang.ClassNotFoundException: -Xmx2048m at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.hadoop.util.RunJar.run(RunJar.java:214) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) ---------------------------------------------------------------------------- Exception in thread "main" java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects at java.util.Arrays.copyOfRange(Arrays.java:3664) at java.lang.String.<init>(String.java:201) at java.lang.StringBuilder.toString(StringBuilder.java:407) at au.com.bytecode.opencsv.CSVParser.parseLine(CSVParser.java:250) at au.com.bytecode.opencsv.CSVParser.parseLineMulti(CSVParser.java:174) at au.com.bytecode.opencsv.CSVReader.readNext(CSVReader.java:237) at org.kitesdk.data.spi.filesystem.CSVFileReader.advance(CSVFileReader.java:174) at org.kitesdk.data.spi.filesystem.CSVFileReader.next(CSVFileReader.java:168) at org.kitesdk.shaded.com.google.common.collect.Iterators$7.computeNext(Iterators.java:648) at org.kitesdk.shaded.com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at org.kitesdk.shaded.com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at org.kitesdk.data.spi.filesystem.MultiFileDatasetReader.hasNext(MultiFileDatasetReader.java:125) at com.google.common.collect.Lists.newArrayList(Lists.java:138) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) at org.apache.crunch.impl.mem.collect.MemCollection.<init>(MemCollection.java:79) at org.apache.crunch.impl.mem.MemPipeline.read(MemPipeline.java:166) at org.apache.crunch.impl.mem.MemPipeline.read(MemPipeline.java:157) at org.kitesdk.tools.TransformTask.run(TransformTask.java:135) at org.kitesdk.cli.commands.CSVImportCommand.run(CSVImportCommand.java:186) at org.kitesdk.cli.Main.run(Main.java:178) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at org.kitesdk.cli.Main.main(Main.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) [root@bda1node03 forecast]# vi test6.csv
    via by chandra s koripella,
    • org.apache.solr.common.SolrException: SolrCore 'mycore' is not available due to init failure: Error loading class 'solr.admin.AdminHandlers' at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1066) at uk.ac.ntu.sac.sense.SenseProperty.getClassIndex(SenseProperty.java:91) at uk.ac.ntu.sac.sense.kb.indexer.IndexMaster.<init>(IndexMaster.java:31) at uk.ac.ntu.sac.sense.test.TestIndexer.main(TestIndexer.java:14) Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.admin.AdminHandlers' at org.apache.solr.core.SolrCore.<init>(SolrCore.java:773) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:647) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:812) at org.apache.solr.core.CoreContainer.lambda$load$0(CoreContainer.java:466) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(ExecutorUtil.java:229) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.admin.AdminHandlers' at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:536) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:467) at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:570) at org.apache.solr.core.PluginBag.createPlugin(PluginBag.java:125) at org.apache.solr.core.PluginBag.init(PluginBag.java:225) at org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:130) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:732) ... 8 more Caused by: java.lang.ClassNotFoundException: solr.admin.AdminHandlers at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:520) ... 14 more

    Users with the same issue

    jokester
    jokester1 times, last one,
    olle.hallin
    olle.hallin1 times, last one,
    poroszd
    poroszd1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    1579 more bugmates