Uploaded image for project: 'Spring for Apache Hadoop'
  1. Spring for Apache Hadoop
  2. SHDP-111

HDFSResource loader goes into infinite loop in hadoop 2.0.3-SNAPSHOT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.0.RC1
    • Fix Version/s: 1.0.0.RC2
    • Component/s: None
    • Labels:
      None

      Description

      code:
      /* create hadoop configuration with default parameters */
      ConfigurationFactoryBean cfactory;
      cfactory = new ConfigurationFactoryBean();
      cfactory.setRegisterUrlHandler(true);
      cfactory.afterPropertiesSet();
      LOG.trace("cfactory configured");

      /* create hdfs resource loader */
      loader = new HdfsResourceLoader(cfactory.getObject(), null, null);
      /** — here it hangs – */
      LOG.trace("hdfs resource loader created");

      stacktrace

      12/11/12 03:32:58 TRACE spring.SpringHadoopRunner: cfactory configured
      Exception in thread "main" java.lang.StackOverflowError
      at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
      at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
      at java.io.File.exists(File.java:772)
      at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1057)
      at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:1024)
      at sun.misc.URLClassPath$1.next(URLClassPath.java:222)
      at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:232)
      at java.net.URLClassLoader$3$1.run(URLClassLoader.java:583)
      at java.net.URLClassLoader$3$1.run(URLClassLoader.java:581)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader$3.next(URLClassLoader.java:580)
      at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:605)
      at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
      at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
      at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
      at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
      at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:346)
      at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)
      at java.net.URL.getURLStreamHandler(URL.java:1150)
      at java.net.URL.<init>(URL.java:590)
      at java.net.URL.<init>(URL.java:482)
      at java.net.URL.<init>(URL.java:431)
      at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179)
      at java.net.JarURLConnection.<init>(JarURLConnection.java:162)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81)
      at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41)
      at java.net.URL.openConnection(URL.java:971)
      at java.net.URL.openStream(URL.java:1037)
      at java.util.ServiceLoader.parse(ServiceLoader.java:296)
      at java.util.ServiceLoader.access$200(ServiceLoader.java:181)
      at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349)
      at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)
      at java.net.URL.getURLStreamHandler(URL.java:1150)
      at java.net.URL.<init>(URL.java:590)
      at java.net.URL.<init>(URL.java:482)
      at java.net.URL.<init>(URL.java:431)
      at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179)
      at java.net.JarURLConnection.<init>(JarURLConnection.java:162)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81)
      at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41)
      at java.net.URL.openConnection(URL.java:971)
      at java.net.URL.openStream(URL.java:1037)
      at java.util.ServiceLoader.parse(ServiceLoader.java:296)
      at java.util.ServiceLoader.access$200(ServiceLoader.java:181)
      at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349)
      at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)
      at java.net.URL.getURLStreamHandler(URL.java:1150)
      at java.net.URL.<init>(URL.java:590)
      at java.net.URL.<init>(URL.java:482)
      at java.net.URL.<init>(URL.java:431)
      at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179)
      at java.net.JarURLConnection.<init>(JarURLConnection.java:162)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81)
      at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41)
      at java.net.URL.openConnection(URL.java:971)
      at java.net.URL.openStream(URL.java:1037)
      at java.util.ServiceLoader.parse(ServiceLoader.java:296)
      at java.util.ServiceLoader.access$200(ServiceLoader.java:181)
      at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349)
      at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)

        Attachments

          Activity

            People

            Assignee:
            costin Costin Leau
            Reporter:
            hsn Radim Kolar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: