hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthiek C <karthi...@gmail.com>
Subject hadoop 1.0.3 fairscheduler - all junit tests failing
Date Sun, 10 Feb 2013 00:29:24 GMT
I have setup hadoop 1.0.3 source in eclipse. The project got built
successfully. But all tests in fair-scheduler are failing because
job-tracker object is not getting created.

Here is the stacktrace:

java.lang.RuntimeException: Could not start JT
    at
org.apache.hadoop.mapred.TestFairScheduler.setUpCluster(TestFairScheduler.java:556)
    at
org.apache.hadoop.mapred.TestFairScheduler.setUp(TestFairScheduler.java:528)
    at junit.framework.TestCase.runBare(TestCase.java:132)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.NullPointerException
    at java.io.File.<init>(File.java:239)
    at org.apache.hadoop.mapred.JobHistory.initLogDir(JobHistory.java:533)
    at org.apache.hadoop.mapred.JobHistory.init(JobHistory.java:499)
    at org.apache.hadoop.mapred.JobTracker$2.run(JobTracker.java:2334)
    at org.apache.hadoop.mapred.JobTracker$2.run(JobTracker.java:1)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:416)
    at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
    at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2331)
    at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2192)
    at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2177)
    at
org.apache.hadoop.mapred.TestFairScheduler.setUpCluster(TestFairScheduler.java:554)

The exception occurs in "*
org.apache.hadoop.security.UserGroupInformation.doAs*" method. Many test
cases in other modules (like mapred or hdfs) are also failing due to same
exception.

Can someone please help?

Thanks,
Karthiek

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message