Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # dev >> Need help: TestCLI hangs while executing within Eclipse env.


Copy link to this message
-
Need help: TestCLI hangs while executing within Eclipse env.
Hadoop= hadoop 1.0.3 (build with Oracle JAVA 7)
platform=RHEL 6.2 x86_64
while executing JUnit testcase TestCLI produces serious of
NullPointerException (below) and then it loops in (detail msg at the end)
"  ipc.Client (Client.java:handleConnectionFailure(666)) - Retrying connect
to server: localhost/127.0.0.1:0. Already tried x time(s)."
This behavior is reproducible only within Eclipse environment..
any help would be greatly appreciated .

java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at org.mortbay.jetty.servlet.ServletHolder.doStart
(ServletHolder.java:256)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:736)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart
(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart
(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.apache.hadoop.http.HttpServer.start(HttpServer.java:617)
<==================wbServer.start() in httpserver
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2341)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2192)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2186)
at org.apache.hadoop.mapred.JobTracker.startTracker
(JobTracker.java:300)
at org.apache.hadoop.mapred.MiniMRCluster$JobTrackerRunner$1.run
(MiniMRCluster.java:114)
at org.apache.hadoop.mapred.MiniMRCluster$JobTrackerRunner$1.run
(MiniMRCluster.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs
(UserGroupInformation.java:1121)
at org.apache.hadoop.mapred.MiniMRCluster$JobTrackerRunner.run
(MiniMRCluster.java:112)
at java.lang.Thread.run(Thread.java:722)
2012-10-04 13:27:22,973 INFO  mapred.MiniMRCluster
(MiniMRCluster.java:<init>(188)) - mapred.local.dir
is /home/sanjar/development/hadoop-common-1.0.3/build/test/mapred/local/0_0
2012-10-04 13:27:22,983 WARN  impl.MetricsSystemImpl
(MetricsSystemImpl.java:registerSource(200)) - Source name ugi already
exists!
2012-10-04 13:27:23,135 INFO  http.HttpServer
(HttpServer.java:addGlobalFilter(411)) - Added global filtersafety
(class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
2012-10-04 13:27:23,160 INFO  mapred.TaskLogsTruncater
(TaskLogsTruncater.java:<init>(72)) - Initializing logs' truncater with
mapRetainSize=-1 and reduceRetainSize=-1
2012-10-04 13:27:23,175 INFO  mapred.TaskTracker
(TaskTracker.java:initialize(694)) - Starting tasktracker with owner as
sanjar
2012-10-04 13:27:23,176 INFO  mapred.TaskTracker
(TaskTracker.java:initialize(710)) - Good mapred local directories
are: /home/sanjar/development/hadoop-common-1.0.3/build/test/mapred/local/0_0
2012-10-04 13:27:23,181 WARN  util.NativeCodeLoader
(NativeCodeLoader.java:<clinit>(52)) - Unable to load native-hadoop library
for your platform... using builtin-java classes where applicable
2012-10-04 13:27:23,185 WARN  impl.MetricsSystemImpl
(MetricsSystemImpl.java:registerSource(200)) - Source name jvm already
exists!
2012-10-04 13:27:23,187 INFO  impl.MetricsSourceAdapter
(MetricsSourceAdapter.java:start(90)) - MBean for source TaskTrackerMetrics
registered.
2012-10-04 13:27:23,297 INFO  impl.MetricsSourceAdapter
(MetricsSourceAdapter.java:start(90)) - MBean for source
RpcDetailedActivityForPort45314 registered.
2012-10-04 13:27:23,298 INFO  impl.MetricsSourceAdapter
(MetricsSourceAdapter.java:start(90)) - MBean for source
RpcActivityForPort45314 registered.
2012-10-04 13:27:23,299 INFO  ipc.Server (Server.java:run(328)) - Starting
SocketReader
2012-10-04 13:27:23,308 INFO  ipc.Server (Server.java:run(598)) - IPC
Server Responder: starting
2012-10-04 13:27:23,320 INFO  ipc.Server (Server.java:run(1358)) - IPC
Server handler 0 on 45314: starting
2012-10-04 13:27:23,324 INFO  ipc.Server (Server.java:run(1358)) - IPC
Server handler 1 on 45314: starting
2012-10-04 13:27:23,330 INFO  ipc.Server (Server.java:run(1358)) - IPC
Server handler 2 on 45314: starting
2012-10-04 13:27:23,332 INFO  mapred.TaskTracker
(TaskTracker.java:initialize(794)) - TaskTracker up at:
localhost.localdomain/127.0.0.1:45314
2012-10-04 13:27:23,333 INFO  mapred.TaskTracker
(TaskTracker.java:initialize(797)) - Starting tracker
tracker_host0.foo.com:localhost.localdomain/127.0.0.1:45314
2012-10-04 13:27:23,334 INFO  ipc.Server (Server.java:run(434)) - IPC
Server listener on 45314: starting
2012-10-04 13:27:23,340 INFO  ipc.Server (Server.java:run(1358)) - IPC
Server handler 3 on 45314: starting
2012-10-04 13:27:24,392 INFO  ipc.Client
(Client.java:handleConnectionFailure(666)) - Retrying connect to server:
localhost/127.0.0.1:0. Already tried 0 time(s).
2012-10-04 13:27:25,394 INFO  ipc.Client
(Client.java:handleConnectionFailure(666)) - Retrying connect to server:
localhost/127.0.0.1:0. Already tried 1 time(s).
2012-10-04 13:27:26,397 INFO  ipc.Client
(Client.java:handleConnectionFailure(666)) - Retrying connect to server:
localhost/127.0.0.1:0. Already tried 2 time(s).
2012-10-04 13:27:27,398 INFO  ipc.Client
(Client.java:handleConnectionFailure(666)) - Retrying connect to server:
localhost/127.0.0.1:0. Already tried 3 time(s).
2012-10-04 13:27:28,399 INFO  ipc.
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB