<?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: hive view failing with errorMessage:Failed to validate proxy privilege of ambari-qa for gv07680 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103876#M29900</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1321/venkatagangavarapu.html" nodeid="1321"&gt;@Venkata Sridhar Gangavarapu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks buddy, Glad to know it works.&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 21:54:34 GMT</pubDate>
    <dc:creator>bandarusridhar1</dc:creator>
    <dc:date>2016-05-27T21:54:34Z</dc:date>
    <item>
      <title>hive view failing with errorMessage:Failed to validate proxy privilege of ambari-qa for gv07680</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103873#M29897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a hive view instance but when I try to run a query it gives below error&lt;/P&gt;&lt;P&gt;Caused by: org.apache.thrift.protocol.TProtocolException: Required field 'serverProtocolVersion' is unset! Struct:TOpenSessionResp(status:TStatus(statusCode:ERROR_STATUS, infoMessages:[*org.apache.hive.service.cli.HiveSQLException:Failed to validate proxy privilege of ambari-qa for gv07680:33:32, org.apache.hive.service.auth.HiveAuthFactory:verifyProxyAccess:HiveAuthFactory.java:359, org.apache.hive.service.cli.thrift.ThriftCLIService:getProxyUser:ThriftCLIService.java:731, org.apache.hive.service.cli.thrift.ThriftCLIService:getUserName:ThriftCLIService.java:367, org.apache.hive.service.cli.thrift.ThriftCLIService:getSessionHandle:ThriftCLIService.java:394, org.apache.hive.service.cli.thrift.ThriftCLIService:OpenSession:ThriftCLIService.java:297, org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession:getResult:TCLIService.java:1253, org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession:getResult:TCLIService.java:1238, org.apache.thrift.ProcessFunction:process:ProcessFunction.java:39, org.apache.thrift.TBaseProcessor:process:TBaseProcessor.java:39, org.apache.thrift.server.TServlet:doPost:TServlet.java:83, org.apache.hive.service.cli.thrift.ThriftHttpServlet:doPost:ThriftHttpServlet.java:171, javax.servlet.http.HttpServlet:service:HttpServlet.java:727, javax.servlet.http.HttpServlet:service:HttpServlet.java:820, org.eclipse.jetty.servlet.ServletHolder:handle:ServletHolder.java:565, org.eclipse.jetty.servlet.ServletHandler:doHandle:ServletHandler.java:479, org.eclipse.jetty.server.session.SessionHandler:doHandle:SessionHandler.java:225, org.eclipse.jetty.server.handler.ContextHandler:doHandle:ContextHandler.java:1031, org.eclipse.jetty.servlet.ServletHandler:doScope:ServletHandler.java:406, org.eclipse.jetty.server.session.SessionHandler:doScope:SessionHandler.java:186, org.eclipse.jetty.server.handler.ContextHandler:doScope:ContextHandler.java:965, org.eclipse.jetty.server.handler.ScopedHandler:handle:ScopedHandler.java:117, org.eclipse.jetty.server.handler.HandlerWrapper:handle:HandlerWrapper.java:111, org.eclipse.jetty.server.Server:handle:Server.java:349, org.eclipse.jetty.server.AbstractHttpConnection:handleRequest:AbstractHttpConnection.java:449, org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler:content:AbstractHttpConnection.java:925, org.eclipse.jetty.http.HttpParser:parseNext:HttpParser.java:857, org.eclipse.jetty.http.HttpParser:parseAvailable:HttpParser.java:235, org.eclipse.jetty.server.AsyncHttpConnection:handle:AsyncHttpConnection.java:76, org.eclipse.jetty.io.nio.SelectChannelEndPoint:handle:SelectChannelEndPoint.java:609, org.eclipse.jetty.io.nio.SelectChannelEndPoint$1:run:SelectChannelEndPoint.java:45, java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145, java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615, java.lang.Thread:run:Thread.java:745, *org.apache.hadoop.security.authorize.AuthorizationException:User: ambari-qa is not allowed to impersonate gv07680:0:-1], sqlState:08S01, errorCode:0, errorMessage:Failed to validate proxy privilege of ambari-qa for gv07680), serverProtocolVersion:null)&lt;/P&gt;&lt;P&gt;I did kerberos setup for ambari user using ambari-server setup-security with ambari-qa as the ambari user.&lt;/P&gt;&lt;P&gt;I  did set up proxyuser settings in core-site.xml file using below configs&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.ambari-server.groups: * &lt;/P&gt;&lt;P&gt;hadoop.proxyuser.ambari-server.hosts: *
&lt;/P&gt;&lt;P&gt;We are using ambari-2.2.2 and HDP-2.3.0.&lt;/P&gt;&lt;P&gt;Below are the configs for Hiev view instance&lt;/P&gt;&lt;P&gt;Hive Authentication: auth=KERBEROS;principal=hive/_HOST@HADOOP.COM;hive.server2.proxy.user=gv07680&lt;/P&gt;&lt;P&gt;WebHDFS Username: gv07680&lt;/P&gt;&lt;P&gt;WebHDFS Authentication: auth=KERBEROS;proxyuser=ambari-qa@HADOOP.COM&lt;/P&gt;&lt;P&gt;Scripts HDFS Directory*: /user/gv07680/hive/scripts&lt;/P&gt;&lt;P&gt;HiveServer2 Thrift port*: 10001&lt;/P&gt;&lt;P&gt;HiveServer2 Http port*: 10001HiveServer2 Http path*: cliserviceHiveServer2 Transport Mode*: http&lt;/P&gt;&lt;P&gt;WebHDFS FileSystem URI*: webhdfs://hostname:50070&lt;/P&gt;&lt;P&gt;There is no HA, so no HA related configs.&lt;/P&gt;&lt;P&gt;But still I see the Failed to validate proxy privilege of ambari-qa for gv07680 error&lt;/P&gt;&lt;P&gt;Below is the config for /etc/ambari-server/conf/krb5JAASLogin.conf&lt;/P&gt;&lt;P&gt;com.sun.security.jgss.krb5.initiate { &lt;/P&gt;&lt;P&gt;    com.sun.security.auth.module.Krb5LoginModule required &lt;/P&gt;&lt;P&gt;    renewTGT=false &lt;/P&gt;&lt;P&gt;    doNotPrompt=true &lt;/P&gt;&lt;P&gt;    useKeyTab=true &lt;/P&gt;&lt;P&gt;    keyTab="/etc/security/keytabs/smokeuser.headless.keytab" &lt;/P&gt;&lt;P&gt;    principal="ambari-qa@BCBSA.COM"
    storeKey=true
    useTicketCache=false; &lt;/P&gt;&lt;P&gt;};
&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 02:37:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103873#M29897</guid>
      <dc:creator>venkata_gangava</dc:creator>
      <dc:date>2016-05-27T02:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: hive view failing with errorMessage:Failed to validate proxy privilege of ambari-qa for gv07680</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103874#M29898</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1321/venkatagangavarapu.html"&gt;Venkata Sridhar Gangavarapu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;May I know on which user ambari server installed? root or some other user?&lt;/P&gt;&lt;P&gt;If root please add below properties: &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/_setup_HDFS_proxy_user.html"&gt;LINK&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.root.groups=*
hadoop.proxyuser.root.hosts=*&lt;/PRE&gt;&lt;P&gt;1. If your cluster is Kerberosed then follow below steps:&lt;/P&gt;&lt;P&gt;Go to Hive Service --&amp;gt; Configs --&amp;gt; General and change below property to&lt;/P&gt;&lt;PRE&gt;hive.server2.thrift.sasl.qop = auth-conf &lt;/PRE&gt;&lt;P&gt;Restart all the affected services to make sure changed are set. Then go to Ambari Views server, Manage Ambari --&amp;gt; Hive View --&amp;gt; Setting&lt;/P&gt;&lt;PRE&gt;HiveAuthentication= auth=KERBEROS;principal=hive/_HOST@EXAMPLE.COM;hive.server2.proxy.user=${username};saslQop=auth-conf&lt;/PRE&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 09:19:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103874#M29898</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-05-27T09:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: hive view failing with errorMessage:Failed to validate proxy privilege of ambari-qa for gv07680</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103875#M29899</link>
      <description>&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;It did work.&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;I accept this answer.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 21:33:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103875#M29899</guid>
      <dc:creator>venkata_gangava</dc:creator>
      <dc:date>2016-05-27T21:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: hive view failing with errorMessage:Failed to validate proxy privilege of ambari-qa for gv07680</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103876#M29900</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1321/venkatagangavarapu.html" nodeid="1321"&gt;@Venkata Sridhar Gangavarapu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks buddy, Glad to know it works.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 21:54:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-view-failing-with-errorMessage-Failed-to-validate-proxy/m-p/103876#M29900</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-05-27T21:54:34Z</dc:date>
    </item>
  </channel>
</rss>

