<?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 Knox Hive HA configuration does not work when knox switch between Hiveserver2 instances. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Knox-Hive-HA-configuration-does-not-work-when-knox-switch/m-p/193504#M155568</link>
    <description>&lt;P&gt;I have configured knox to work with two hiveserver2 instances and during my testing I connected to hive through knox using beeline. Then stopped the current hiveserver2 and ran a query in beeline. I can see that knox did fail over to the second one, but my query through a 500 error. Looking into hiveserver2 log I saw the following error.&lt;/P&gt;&lt;PRE&gt;2018-01-17 14:14:38,611 WARN  servlet.ServletHandler (ServletHandler.java:doHandle(546)) - /cliservice

java.lang.IllegalArgumentException: Invalid sign, original = Qp+dxp0/PGiidNY7TWAHYo4nlJs= current = XaZLVoAJAF+88lAl9Z/9VYXWeg0=

        at org.apache.hive.service.CookieSigner.verifyAndExtract(CookieSigner.java:85)

        at org.apache.hive.service.cli.thrift.ThriftHttpServlet.getClientNameFromCookie(ThriftHttpServlet.java:253)

        at org.apache.hive.service.cli.thrift.ThriftHttpServlet.validateCookie(ThriftHttpServlet.java:309)

        at org.apache.hive.service.cli.thrift.ThriftHttpServlet.doPost(ThriftHttpServlet.java:142)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)

        at org.eclipse.jetty.server.Server.handle(Server.java:349)

        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)

        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925)

        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:952)

        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)
&lt;/PRE&gt;&lt;P&gt;The following article talks about the same exact issue :&lt;A href="https://community.hortonworks.com/content/supportkb/150288/error-opening-sessionorgapachethrifttransportttran.html"&gt; https://community.hortonworks.com/content/supportkb/150288/error-opening-sessionorgapachethrifttransportttran.html&lt;/A&gt; But, That solution is not optimal as it defeats the purpose of have HA configuration if I have to bounce knox server everytime a hiveserver2 goes down. Also the Jira ticket mentioned in it does not exist.&lt;/P&gt;&lt;P&gt;Does anyone has a better solution or suggestion?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 00:10:33 GMT</pubDate>
    <dc:creator>theyaa</dc:creator>
    <dc:date>2018-01-19T00:10:33Z</dc:date>
    <item>
      <title>Knox Hive HA configuration does not work when knox switch between Hiveserver2 instances.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Hive-HA-configuration-does-not-work-when-knox-switch/m-p/193504#M155568</link>
      <description>&lt;P&gt;I have configured knox to work with two hiveserver2 instances and during my testing I connected to hive through knox using beeline. Then stopped the current hiveserver2 and ran a query in beeline. I can see that knox did fail over to the second one, but my query through a 500 error. Looking into hiveserver2 log I saw the following error.&lt;/P&gt;&lt;PRE&gt;2018-01-17 14:14:38,611 WARN  servlet.ServletHandler (ServletHandler.java:doHandle(546)) - /cliservice

java.lang.IllegalArgumentException: Invalid sign, original = Qp+dxp0/PGiidNY7TWAHYo4nlJs= current = XaZLVoAJAF+88lAl9Z/9VYXWeg0=

        at org.apache.hive.service.CookieSigner.verifyAndExtract(CookieSigner.java:85)

        at org.apache.hive.service.cli.thrift.ThriftHttpServlet.getClientNameFromCookie(ThriftHttpServlet.java:253)

        at org.apache.hive.service.cli.thrift.ThriftHttpServlet.validateCookie(ThriftHttpServlet.java:309)

        at org.apache.hive.service.cli.thrift.ThriftHttpServlet.doPost(ThriftHttpServlet.java:142)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)

        at org.eclipse.jetty.server.Server.handle(Server.java:349)

        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)

        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925)

        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:952)

        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)
&lt;/PRE&gt;&lt;P&gt;The following article talks about the same exact issue :&lt;A href="https://community.hortonworks.com/content/supportkb/150288/error-opening-sessionorgapachethrifttransportttran.html"&gt; https://community.hortonworks.com/content/supportkb/150288/error-opening-sessionorgapachethrifttransportttran.html&lt;/A&gt; But, That solution is not optimal as it defeats the purpose of have HA configuration if I have to bounce knox server everytime a hiveserver2 goes down. Also the Jira ticket mentioned in it does not exist.&lt;/P&gt;&lt;P&gt;Does anyone has a better solution or suggestion?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 00:10:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Hive-HA-configuration-does-not-work-when-knox-switch/m-p/193504#M155568</guid>
      <dc:creator>theyaa</dc:creator>
      <dc:date>2018-01-19T00:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Hive HA configuration does not work when knox switch between Hiveserver2 instances.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Hive-HA-configuration-does-not-work-when-knox-switch/m-p/193505#M155569</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/12470/theyaamatti.html" nodeid="12470"&gt;@Theyaa Matti&lt;/A&gt; this issue should be fixed in the current 0.14.0 Knox release. &lt;/P&gt;&lt;P&gt;In case you do not want to upgrade you can set the following properties in gateway-site.xml &lt;/P&gt;&lt;P&gt;"gateway.httpclient.connectionTimeout" and "gateway.httpclient.socketTimeout"&lt;/P&gt;&lt;P&gt;to appropriate value, say 300.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 02:51:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Hive-HA-configuration-does-not-work-when-knox-switch/m-p/193505#M155569</guid>
      <dc:creator>smore</dc:creator>
      <dc:date>2018-01-19T02:51:14Z</dc:date>
    </item>
  </channel>
</rss>

