Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-208

GH-260: improve error messages when hitting invalid hdfs:// URIs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Currently Oozie is propagating the exception from Hadoop which is not clear at all

      org.apache.oozie.action.ActionExecutorException: NumberFormatException: For input string: ""
      at org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:367)
      at org.apache.oozie.action.hadoop.FsActionExecutor.delete(FsActionExecutor.java:176)
      at org.apache.oozie.action.hadoop.FsActionExecutor.doOperations(FsActionExecutor.java:88)
      at org.apache.oozie.action.hadoop.JavaActionExecutor.prepare(JavaActionExecutor.java:558)
      at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:509)
      at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:571)
      at org.apache.oozie.command.wf.ActionStartCommand.call(ActionStartCommand.java:128)
      at org.apache.oozie.command.wf.ActionStartCommand.execute(ActionStartCommand.java:249)
      at org.apache.oozie.command.wf.ActionStartCommand.execute(ActionStartCommand.java:47)
      at org.apache.oozie.command.Command.call(Command.java:202)
      at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:211)
      at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:128)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.NumberFormatException: For input string: ""
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:470)
      at java.lang.Integer.parseInt(Integer.java:499)
      at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:150)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:173)
      at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:88)
      at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1489)
      at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
      at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1523)
      at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1505)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:227)
      at org.apache.oozie.service.KerberosHadoopAccessorService$3.run(KerberosHadoopAccessorService.java:192)
      at org.apache.oozie.service.KerberosHadoopAccessorService$3.run(KerberosHadoopAccessorService.java:188)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1063)
      at org.apache.oozie.service.KerberosHadoopAccessorService.createFileSystem(KerberosHadoopAccessorService.java:188)
      at org.apache.oozie.action.hadoop.FsActionExecutor.getFileSystemFor(FsActionExecutor.java:123)
      at org.apache.oozie.action.hadoop.FsActionExecutor.delete(FsActionExecutor.java:166)
      ... 13 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            hadoopqa Hadoop QA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: