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

Stack Overflow | Raja | 2 years ago
  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

    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'
  3. 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'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to run Java from CMD, with Apache Commons libraries

    Stack Overflow | 3 years ago | darkace
    java.lang.NoClassDefFoundError: org/apache/commons/la ng3/StringUtils
  6. 0

    android studio: java.lang.NoClassDefFoundError

    Stack Overflow | 2 years ago | user3026820
    java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils

  1. andyglick 2 times, last 5 days ago
  2. richard77 1 times, last 1 week ago
  3. musketyr 2 times, last 1 week ago
  4. michallos 2 times, last 1 week ago
  5. batwalrus76 2 times, last 1 week ago
67 more registered users
28 unregistered visitors
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$Guess

    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. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    6 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:450)
    2. org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:458)
    3. org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:470)
    4. org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:416)
    4 frames
  7. org.apache.cassandra
    AbstractColumnFamilyInputFormat.getSplits
    1. org.apache.cassandra.hadoop.ConfigHelper.getInputPartitioner(ConfigHelper.java:422)
    2. org.apache.cassandra.hadoop.ConfigHelper.getInputPartitioner(ConfigHelper.java:426)
    3. org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.validateConfiguration(AbstractColumnFamilyInputFormat.java:85)
    4. org.apache.cassandra.hadoop.ColumnFamilyInputFormat.validateConfiguration(ColumnFamilyInputFormat.java:74)
    5. org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:122)
    5 frames
  8. Hadoop
    Job$10.run
    1. org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:493)
    2. org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:510)
    3. org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:394)
    4. org.apache.hadoop.mapreduce.Job$10.run(Job.java:1295)
    5. org.apache.hadoop.mapreduce.Job$10.run(Job.java:1292)
    5 frames
  9. Java RT
    Subject.doAs
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAs(Subject.java:415)
    2 frames
  10. Hadoop
    UserGroupInformation.doAs
    1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1554)
    1 frame
  11. Hadoop
    Job.waitForCompletion
    1. org.apache.hadoop.mapreduce.Job.submit(Job.java:1292)
    2. org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1313)
    2 frames
  12. com.test.cassandratest
    WcJob.run
    1. com.test.cassandratest.WcJob.run(WcJob.java:96)
    1 frame
  13. Hadoop
    ToolRunner.run
    1. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    1 frame
  14. com.test.cassandratest
    WcJob.main
    1. com.test.cassandratest.WcJob.main(WcJob.java:104)
    1 frame