Advertisement
mrmb

Untitled

Dec 6th, 2011
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.03 KB | None | 0 0
  1. Hello,
  2.  
  3. I've been running into the following issue when running HBase tests. A lot of them would fail with an exception similar to the one shown below (I added more information to the exception messages). Exit code 141 seems to correspond to SIGPIPE, but I did not find anything obvious in Shell.java in Hadoop. In Shell.runCommand we read the error stream on a separate thread and the output stream on the main thread, and consume both streams completely before waiting for the external process to terminate. I ended up doing a hacky work-around (patch attached) to be able to run HBase tests, but any insight about what could be causing this issue is appreciated. HBase trunk uses hadoop-0.20.205.0 by default.
  4.  
  5. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.544 sec <<< FAILURE!
  6. org.apache.hadoop.hbase.coprocessor.TestRegionServerCoprocessorExceptionWithAbort Time elapsed: 0 sec <<< ERROR!
  7. java.lang.RuntimeException: Error while running command to get file permissions : org.apache.hadoop.util.Shell$ExitCodeException: Command: [/bin/ls, -ld, /data/users/mbautin/workdirs/hb-os/target/test-data/37d6e996-cba6-4a12-85bc-dbcf2e91d297/dfscluster_76df8fc0-6827-4d9d-8728-eb5ee43b0bae/dfs/data/data3], message:
  8. , exitCode: 141
  9. at org.apache.hadoop.util.Shell.runCommand(Shell.java:283)
  10. at org.apache.hadoop.util.Shell.run(Shell.java:183)
  11. at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:405)
  12. at org.apache.hadoop.util.Shell.execCommand(Shell.java:491)
  13. at org.apache.hadoop.util.Shell.execCommand(Shell.java:474)
  14. at org.apache.hadoop.fs.FileUtil.execCommand(FileUtil.java:703)
  15. at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:418)
  16. at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.getPermission(RawLocalFileSystem.java:393)
  17. at org.apache.hadoop.util.DiskChecker.mkdirsWithExistsAndPermissionCheck(DiskChecker.java:146)
  18. at org.apache.hadoop.util.DiskChecker.checkDir(DiskChecker.java:162)
  19. at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1537)
  20. at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1484)
  21. at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1459)
  22. at org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:417)
  23. at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:280)
  24. at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:369)
  25. at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:537)
  26. at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:493)
  27. at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:480)
  28. at org.apache.hadoop.hbase.coprocessor.TestRegionServerCoprocessorExceptionWithAbort.setupBeforeClass(TestRegionServerCoprocessorExceptionWithAbort.java:94)
  29. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  30. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  31. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  32. at java.lang.reflect.Method.invoke(Method.java:597)
  33. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
  34. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  35. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
  36. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
  37. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
  38. at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
  39. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
  40. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
  41. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
  42. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  43. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  44. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  45. at java.lang.reflect.Method.invoke(Method.java:597)
  46. at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
  47. at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
  48. at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
  49. at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:81)
  50. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
  51.  
  52. Thanks,
  53. --Mikhail
  54.  
  55.  
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement