Uploaded image for project: 'Apache Apex Malhar'
  1. Apache Apex Malhar
  2. APEXMALHAR-1656

AbstractFileOutputOperator LeaseExpired exception when cache reaches its threshold

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • adapters other
    • None

    Description

      2015-01-27 18:01:05,713 WARN org.apache.hadoop.hdfs.DFSClient: Unable to persist blocks in hflush for /user/chandni/ingestion/output/application_1418950769964_2137/4294969671
      org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException): No lease on /user/chandni/ingestion/output/application_1418950769964_2137/4294969671 (inode 44637601): File is not open for writing. [Lease. Holder: DFSClient_NONMAPREDUCE_755959188_1626, pendingcreates: 95]
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:3006)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.fsync(FSNamesystem.java:3790)
      at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.fsync(NameNodeRpcServer.java:926)
      at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.fsync(ClientNamenodeProtocolServerSideTranslatorPB.java:822)
      at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
      at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585)
      at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1026)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1986)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1982)
      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:1554)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1980)
      at org.apache.hadoop.ipc.Client.call(Client.java:1409)
      at org.apache.hadoop.ipc.Client.call(Client.java:1362)
      at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
      at com.sun.proxy.$Proxy9.fsync(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
      at com.sun.proxy.$Proxy9.fsync(Unknown Source)
      at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.fsync(ClientNamenodeProtocolTranslatorPB.java:763)
      at org.apache.hadoop.hdfs.DFSOutputStream.flushOrSync(DFSOutputStream.java:1935)
      at org.apache.hadoop.hdfs.DFSOutputStream.hflush(DFSOutputStream.java:1813)
      at org.apache.hadoop.fs.FSDataOutputStream.hflush(FSDataOutputStream.java:127)
      at com.datatorrent.lib.io.fs.AbstractFileOutputOperator.endWindow(AbstractFileOutputOperator.java:640)
      at com.datatorrent.apps.ingestion.io.BlockWriter.endWindow(BlockWriter.java:62)
      at com.datatorrent.stram.engine.GenericNode.processEndWindow(GenericNode.java:127)
      at com.datatorrent.stram.engine.GenericNode.run(GenericNode.java:289)
      at com.datatorrent.stram.engine.StreamingContainer$2.run(StreamingContainer.java:1297)
      2015-01-27 18:01:05,714 WARN org.apache.hadoop.hdfs.DFSClient: Error while syncing

      Suspect that in the endWindow streamsCache.asMap() returns output streams which are already closed

      Attachments

        Activity

          People

            csingh Chandni Singh
            csingh Chandni Singh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: