<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Impala query hangs with No lease on error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-query-hangs-with-No-lease-on-error/m-p/17506#M1872</link>
    <description>&lt;P&gt;The thing is, that this query is only selecting one partition. Since parquet table is identical (except file format), we are excepting only one partition to be written in too.&lt;/P&gt;&lt;P&gt;It's a shame that a long time passed since first answer. I am not able to check if SHUFFLE and NOSHUFFLE keywords will help in this situation. But I will accept this answer.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2014 10:58:27 GMT</pubDate>
    <dc:creator>Minutis</dc:creator>
    <dc:date>2014-08-25T10:58:27Z</dc:date>
    <item>
      <title>Impala query hangs with No lease on error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-query-hangs-with-No-lease-on-error/m-p/13014#M1870</link>
      <description>&lt;P&gt;Platform info:&lt;/P&gt;&lt;P&gt;CDH 4.6.0 (without CM).&lt;/P&gt;&lt;P&gt;Server version: impalad version 1.3.1-cdh4 RELEASE (build 907481bf45b248a7bb3bb077d54831a71f484e5f)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query that hangs:&lt;/P&gt;&lt;P&gt;set PARQUET_COMPRESSION_CODEC=gzip;&lt;/P&gt;&lt;P&gt;INSERT INTO TABLE t2 PARTITION(dt) SELECT * FROM t WHERE dt='2014-05-27-00';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Info about tables:&lt;/P&gt;&lt;P&gt;t - parquet format, without any compression ~9.9GB data.&lt;/P&gt;&lt;P&gt;t2 - schema is copied from t table - parquet format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have inserted same data to other table with&amp;nbsp;set PARQUET_COMPRESSION_CODEC=snappy; and it worked well. But gzip comppresion is somehow hanging whole query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query profile log hanged on this:&amp;nbsp;&lt;A href="http://pastebin.com/MWcpUQiA" target="_blank"&gt;http://pastebin.com/MWcpUQiA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-server.log has this to say:&lt;/P&gt;&lt;P&gt;FSDataOutputStream#close error:&lt;BR /&gt;org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException): No lease on /user/hive/warehouse/db.db/table/.impala_insert_staging/ad4de1e28a843230_b5aeba0046576e96/.ad4de1e28a843230-b5aeba0046576e97_1592503968_dir/dt=2014-05-27-00/ad4de1e28a843230-b5aeba0046576e97_1536053034_data.2: File does not exist. Holder DFSClient_NONMAPREDUCE_-1006280791_1 does not have any open files.&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:2543)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.analyzeFileState(FSNamesystem.java:2360)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:2273)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:501)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:299)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:44954)&lt;BR /&gt;at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:453)&lt;BR /&gt;at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1002)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1752)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1748)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:415)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1438)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1746)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.ipc.Client.call(Client.java:1238)&lt;BR /&gt;at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:202)&lt;BR /&gt;at $Proxy9.addBlock(Unknown Source)&lt;BR /&gt;at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:164)&lt;BR /&gt;at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:83)&lt;BR /&gt;at $Proxy9.addBlock(Unknown Source)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.addBlock(ClientNamenodeProtocolTranslatorPB.java:291)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.locateFollowingBlock(DFSOutputStream.java:1177)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1030)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:488)&lt;BR /&gt;E0530 15:40:03.365649 19261 impala-beeswax-server.cc:380] unknown query id: ad4de1e28a843230:b5aeba0046576e96&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. insert code button opens empty popup.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:59:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-query-hangs-with-No-lease-on-error/m-p/13014#M1870</guid>
      <dc:creator>Minutis</dc:creator>
      <dc:date>2022-09-16T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Impala query hangs with No lease on error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-query-hangs-with-No-lease-on-error/m-p/14778#M1871</link>
      <description>&lt;P&gt;How many resulting partitions are you expecting? The query is generating all the output partitions&lt;/P&gt;&lt;P&gt;on each DN which can result in instability. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at these docs, in particular the SHUFFLE and NOSHUFFLE sections.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/Impala/latest/Installing-and-Using-Impala/ciiu_insert.html"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/Impala/latest/Installing-and-Using-Impala/ciiu_insert.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 18:48:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-query-hangs-with-No-lease-on-error/m-p/14778#M1871</guid>
      <dc:creator>nong</dc:creator>
      <dc:date>2014-07-07T18:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Impala query hangs with No lease on error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-query-hangs-with-No-lease-on-error/m-p/17506#M1872</link>
      <description>&lt;P&gt;The thing is, that this query is only selecting one partition. Since parquet table is identical (except file format), we are excepting only one partition to be written in too.&lt;/P&gt;&lt;P&gt;It's a shame that a long time passed since first answer. I am not able to check if SHUFFLE and NOSHUFFLE keywords will help in this situation. But I will accept this answer.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 10:58:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-query-hangs-with-No-lease-on-error/m-p/17506#M1872</guid>
      <dc:creator>Minutis</dc:creator>
      <dc:date>2014-08-25T10:58:27Z</dc:date>
    </item>
  </channel>
</rss>

