FAQ
Hi,
I changed some config. parameters in core-site/mapred.xml files and then
stopped dfs, mapred services.
While restarting them again, I am unable to do so and looking at the logs,
the following error occurs:

2011-04-12 17:27:39,343 INFO org.mortbay.log: Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
2011-04-12 17:27:39,453 ERROR org.apache.hadoop.mapred.TaskTracker: Can not
start task tracker because java.lang.NoClassDefFoundError:
org/json/JSONException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.hadoop.metrics.ContextFactory.getContext(ContextFactory.java:132)
at
org.apache.hadoop.metrics.MetricsUtil.getContext(MetricsUtil.java:56)
at
org.apache.hadoop.metrics.MetricsUtil.getContext(MetricsUtil.java:45)
at
org.apache.hadoop.mapred.TaskTracker$ShuffleServerMetrics.(TaskTracker.java:917)
at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:2834)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 8 more

2011-04-12 17:27:39,455 INFO org.apache.hadoop.mapred.TaskTracker:
SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down TaskTracker at inti79.cse.psu.edu/130.203.58.207
************************************************************/


Also, am unable to do namenode -format to fresh start the cluster.
Any suggestions please?

Thanks,
Bikash

Search Discussions

  • Bikash sharma at Apr 12, 2011 at 9:39 pm
    p.s.
    Also, am unable to connect while doing hadoop/bin/hadoop fs -ls with the
    following error:

    inti76.cse.psu.edu: starting tasktracker, logging to
    /i3c/hpcl/bus145/cse598g/hadoop/bin/../logs/hadoop-bus145-tasktracker-inti76.cse.psu.edu.out
    inti79.cse.psu.edu 36% hadoop/bin/hadoop fs -ls
    11/04/12 17:37:34 INFO ipc.Client: Retrying connect to server:
    inti79.cse.psu.edu/130.203.58.207:54310. Already tried 0 time(s).
    11/04/12 17:37:35 INFO ipc.Client: Retrying connect to server:
    inti79.cse.psu.edu/130.203.58.207:54310. Already tried 1 time(s).
    11/04/12 17:37:36 INFO ipc.Client: Retrying connect to server:
    inti79.cse.psu.edu/130.203.58.207:54310. Already tried 2 time(s).

    On Tue, Apr 12, 2011 at 5:34 PM, bikash sharma wrote:

    Hi,
    I changed some config. parameters in core-site/mapred.xml files and then
    stopped dfs, mapred services.
    While restarting them again, I am unable to do so and looking at the logs,
    the following error occurs:

    2011-04-12 17:27:39,343 INFO org.mortbay.log: Logging to
    org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
    org.mortbay.log.Slf4jLog
    2011-04-12 17:27:39,453 ERROR org.apache.hadoop.mapred.TaskTracker: Can not
    start task tracker because java.lang.NoClassDefFoundError:
    org/json/JSONException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at
    org.apache.hadoop.metrics.ContextFactory.getContext(ContextFactory.java:132)
    at
    org.apache.hadoop.metrics.MetricsUtil.getContext(MetricsUtil.java:56)
    at
    org.apache.hadoop.metrics.MetricsUtil.getContext(MetricsUtil.java:45)
    at
    org.apache.hadoop.mapred.TaskTracker$ShuffleServerMetrics.<init>(TaskTracker.java:250)
    at
    org.apache.hadoop.mapred.TaskTracker.<init>(TaskTracker.java:917)
    at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:2834)
    Caused by: java.lang.ClassNotFoundException: org.json.JSONException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 8 more

    2011-04-12 17:27:39,455 INFO org.apache.hadoop.mapred.TaskTracker:
    SHUTDOWN_MSG:
    /************************************************************
    SHUTDOWN_MSG: Shutting down TaskTracker at
    inti79.cse.psu.edu/130.203.58.207
    ************************************************************/


    Also, am unable to do namenode -format to fresh start the cluster.
    Any suggestions please?

    Thanks,
    Bikash

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedApr 12, '11 at 9:35p
activeApr 12, '11 at 9:39p
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Bikash sharma: 2 posts

People

Translate

site design / logo © 2022 Grokbase