java.lang.NoSuchMethodError: com.mongodb.DB.isAuthenticated()Z

Stack Overflow | user6851925 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    while mongoDB , hive integration getting error

    Stack Overflow | 7 months ago | user6851925
    java.lang.NoSuchMethodError: com.mongodb.DB.isAuthenticated()Z

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.mongodb.DB.isAuthenticated()Z

      at com.mongodb.hadoop.util.MongoConfigUtil.getCollection()
    2. com.mongodb.hadoop
      HiveMongoInputFormat.getSplits
      1. com.mongodb.hadoop.util.MongoConfigUtil.getCollection(MongoConfigUtil.java:328)
      2. com.mongodb.hadoop.splitter.MongoSplitterFactory.getSplitterByStats(MongoSplitterFactory.java:76)
      3. com.mongodb.hadoop.splitter.MongoSplitterFactory.getSplitter(MongoSplitterFactory.java:114)
      4. com.mongodb.hadoop.hive.input.HiveMongoInputFormat.getSplits(HiveMongoInputFormat.java:64)
      5. com.mongodb.hadoop.hive.input.HiveMongoInputFormat.getSplits(HiveMongoInputFormat.java:44)
      5 frames
    3. Hive Query Language
      Driver.getResults
      1. org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:442)
      2. org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:588)
      3. org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:561)
      4. org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:138)
      5. org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1621)
      5 frames
    4. org.apache.hadoop
      CliDriver.main
      1. org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:267)
      2. org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:199)
      3. org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:410)
      4. org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:783)
      5. org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
      6. org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)
      6 frames
    5. 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
    6. 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