<?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: Hiveserver2 fails to connect after a while, in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hiveserver2-fails-to-connect-after-a-while/m-p/105631#M54490</link>
    <description>&lt;P&gt;hey Rajesh, &lt;/P&gt;&lt;P&gt;After looking through logs for a while i found out that hiveserver couldn't able to open new sockets due to limits in ulimits. Increasing ulimits for files fix this problem. &lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 12:23:24 GMT</pubDate>
    <dc:creator>jeyanth_k</dc:creator>
    <dc:date>2017-02-24T12:23:24Z</dc:date>
    <item>
      <title>Hiveserver2 fails to connect after a while,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hiveserver2-fails-to-connect-after-a-while/m-p/105629#M54488</link>
      <description>&lt;P&gt;We recently upgraded to HDP 2.5 and now hiveserver2 fails to connect after a day or two &lt;/P&gt;&lt;P&gt;org.apache.hive.service.cli.HiveSQLException: Failed to open new session: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.UnknownHostException: NAMENODE_FQDN at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:289)
        at org.apache.hive.service.cli.CLIService.openSessionWithImpersonation(CLIService.java:204)
        at org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(ThriftCLIService.java:421)
        at org.apache.hive.service.cli.thrift.ThriftCLIService.OpenSession(ThriftCLIService.java:316)
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1257)
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1242)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.UnknownHostException: NAMENODE_FQDN at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:83)
        at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36)
        at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
        at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59)
        at com.sun.proxy.$Proxy23.open(Unknown Source)
        at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:281)
        ... 12 more
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.UnknownHostException: NAMENODE_FQDN at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:543)
        at org.apache.hive.service.cli.session.HiveSessionImpl.open(HiveSessionImpl.java:144)
        at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78)
        ... 20 more
Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: NAMENODE_FQDN at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:438)
        at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:311)
        at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
        at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:688)
        at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:629)
        at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:159)
        at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2761)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99)
        at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2795)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2777)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:386)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:179)
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:526)
        ... 25 more
Caused by: java.net.UnknownHostException: NAMENODE_FQDN&lt;/P&gt;&lt;P&gt;I do have my NAMENODE_FQDN in /etc/hosts file. But after restart of hiveserver2 in ambari it works just fine but fails again after a day or two.&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 11:42:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hiveserver2-fails-to-connect-after-a-while/m-p/105629#M54488</guid>
      <dc:creator>jeyanth_k</dc:creator>
      <dc:date>2017-02-15T11:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hiveserver2 fails to connect after a while,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hiveserver2-fails-to-connect-after-a-while/m-p/105630#M54489</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/16069/jeyanthk.html"&gt;Jeyanth Kumar Kathiresan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It could be a bug or network issue between hive server and namenode server.&lt;/P&gt;&lt;P&gt;Try to start with hive server log and name node log, see if you can find any timeouts or errors during that time.&lt;/P&gt;&lt;P&gt;If you found no issues with the logs, then work with Hortonworks support, it could be a bug.&lt;/P&gt;&lt;P&gt;It &lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 12:18:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hiveserver2-fails-to-connect-after-a-while/m-p/105630#M54489</guid>
      <dc:creator>rrrajesh</dc:creator>
      <dc:date>2017-02-17T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hiveserver2 fails to connect after a while,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hiveserver2-fails-to-connect-after-a-while/m-p/105631#M54490</link>
      <description>&lt;P&gt;hey Rajesh, &lt;/P&gt;&lt;P&gt;After looking through logs for a while i found out that hiveserver couldn't able to open new sockets due to limits in ulimits. Increasing ulimits for files fix this problem. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 12:23:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hiveserver2-fails-to-connect-after-a-while/m-p/105631#M54490</guid>
      <dc:creator>jeyanth_k</dc:creator>
      <dc:date>2017-02-24T12:23:24Z</dc:date>
    </item>
  </channel>
</rss>

