java.io.IOException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner'

Apache's JIRA Issue Tracker | madheswaran | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    I am successfully able create keyspace and table in Cassandra using Hive. Select operation fails and throws error: 15/05/12 09:33:36 [main]: INFO ql.Driver: OK 15/05/12 09:33:36 [main]: INFO log.PerfLogger: <PERFLOG method=releaseLocks from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=releaseLocks start=1431408816048 end=1431408816049 duration=1 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=Driver.run start=1431408814335 end=1431408816049 duration=1714 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir 15/05/12 09:33:36 [main]: INFO hadoop2.AbstractColumnFamilyInputFormat: -------------------- Getting input splits -------------------- Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' 15/05/12 09:33:36 [main]: ERROR CliDriver: Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' java.io.IOException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:507) at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:414) at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:138) at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1655) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:227) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:754) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:401) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.validateConfiguration(AbstractColumnFamilyInputFormat.java:87) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:117) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:192) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:149) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:362) at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:294) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:445) ... 15 more Caused by: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:462) at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:474) at org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:420) at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:399) ... 22 more Caused by: java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter at org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34) at org.apache.cassandra.dht.RandomPartitioner.<clinit>(RandomPartitioner.java:45) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:454) ... 25 more Caused by: java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 30 more 15/05/12 09:33:36 [main]: INFO exec.TableScanOperator: 0 finished. closing...

    Apache's JIRA Issue Tracker | 2 years ago | madheswaran
    java.io.IOException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner'
  2. 0

    I am successfully able create keyspace and table in Cassandra using Hive. Select operation fails and throws error: 15/05/12 09:33:36 [main]: INFO ql.Driver: OK 15/05/12 09:33:36 [main]: INFO log.PerfLogger: <PERFLOG method=releaseLocks from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=releaseLocks start=1431408816048 end=1431408816049 duration=1 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=Driver.run start=1431408814335 end=1431408816049 duration=1714 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir 15/05/12 09:33:36 [main]: INFO hadoop2.AbstractColumnFamilyInputFormat: -------------------- Getting input splits -------------------- Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' 15/05/12 09:33:36 [main]: ERROR CliDriver: Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' java.io.IOException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:507) at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:414) at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:138) at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1655) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:227) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:754) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:401) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.validateConfiguration(AbstractColumnFamilyInputFormat.java:87) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:117) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:192) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:149) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:362) at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:294) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:445) ... 15 more Caused by: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:462) at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:474) at org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:420) at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:399) ... 22 more Caused by: java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter at org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34) at org.apache.cassandra.dht.RandomPartitioner.<clinit>(RandomPartitioner.java:45) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:454) ... 25 more Caused by: java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 30 more 15/05/12 09:33:36 [main]: INFO exec.TableScanOperator: 0 finished. closing...

    Apache's JIRA Issue Tracker | 2 years ago | madheswaran
    java.io.IOException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner'
  3. 0

    Unable to find partitioner class - Cassandra

    Stack Overflow | 2 years ago | Raja
    java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  6. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.github.jamm.MemoryMeter

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    7 frames
  3. Apache Cassandra
    ObjectSizes.<clinit>
    1. org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34)
    1 frame
  4. org.apache.cassandra
    RandomPartitioner.<clinit>
    1. org.apache.cassandra.dht.RandomPartitioner.<clinit>(RandomPartitioner.java:45)
    1 frame
  5. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:190)
    2 frames
  6. Apache Cassandra
    FBUtilities.newPartitioner
    1. org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:454)
    2. org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:474)
    3. org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:420)
    3 frames
  7. org.apache.cassandra
    AbstractColumnFamilyInputFormat.getSplits
    1. org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:399)
    2. org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.validateConfiguration(AbstractColumnFamilyInputFormat.java:87)
    3. org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:117)
    3 frames
  8. org.apache.hadoop
    HiveCqlInputFormat.getSplits
    1. org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:192)
    2. org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:149)
    2 frames
  9. Hive Query Language
    Driver.getResults
    1. org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:362)
    2. org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:294)
    3. org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:445)
    4. org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:414)
    5. org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:138)
    6. org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1655)
    6 frames
  10. org.apache.hadoop
    CliDriver.main
    1. org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:227)
    2. org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159)
    3. org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370)
    4. org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:754)
    5. org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
    6. org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
    6 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  12. Hadoop
    RunJar.main
    1. org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    2. org.apache.hadoop.util.RunJar.main(RunJar.java:136)
    2 frames