The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HBase Forum

Hbase shell exception:Exception in thread "main" java.lang.NoClassDefFoundError:

  • #14825
    shi xinpo

    Exception in thread “main” java.lang.NoClassDefFoundError: is
    Caused by: java.lang.ClassNotFoundException: is
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    Could not find the main class: is. Program will exit.

  • Author
  • #14891
    Larry Liu

    Hi, Shi Xinpo

    What version of HDP are you using? Can you please provide more detail about the issue you had?



    Bajeesh TB


    I have same issue when running
    hadoop jar wordcount.jar g.myorg.WordCount /input /output
    Exception in thread “main” java.lang.ClassNotFoundException: g.myorg.WordCount
    at Method)
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(
    at org.apache.hadoop.util.RunJar.main(
    #]javac -classpath /usr/lib/hadoop/hadoop-core- -d wordcount_classes

    Its working fine and it doesn’t showing any errors. I am using HDP 1.2.1.

    Please help me?


    Hi Bajeesh,
    I believe your question would be best answered in this forum:

    I understand the error looks familiar regarding the class not found exception, but your error is regarding to a mapreduce job. A couple of things you should add so the rest of the community can get a better understanding:

    Did you use manual rpm or Ambari installation?
    Are you able to run the default wordcount program like this:
    NOTE: you will need to make sure your input folder has a file to process
    hadoop jar /usr/lib/hadoop/hadoop-examples.jar wordcount wordcount/input output

    If the above works fine, then issue might be specific to your wordcount program.


    Bajeesh TB

    Hi Robert,

    Its working fine now, that was package name issue. I have only basics of JAVA, so the issue was happened.

    Thanks for your help.

    Bajeesh T.B


    Hi Bajeesh,

    Thanks for letting us know that it is working for you now.

    Thanks again,

The forum ‘HBase’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.