<?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: Unable to connect to HiveServer2 from JMeter using Kerberos in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215377#M69159</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/44351/kumarbrahma.html"&gt;KUMAR PEDDIBHOTLA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;a) I assume that you use a hive user keytab in jaas.conf and you tested hive access from command line successfully. That is the must do first step. Make sure that you have a valid ticket (kinit, klist etc.). See documentation on docs.hortonworks.com for Hive and Kerberos.&lt;/P&gt;&lt;P&gt;b) There are 2 files under /bin folder of the JMeter installation which are used for Kerberos configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;krb5.conf - file of .ini format which contains Kerberos configuration details&lt;/LI&gt;&lt;LI&gt;jaas.conf - file which holds configuration details of Java Authentication and Authorization service&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These files aren’t being used by default, so you have to tell JMeter where they are via system properties such as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-Djava.security.krb5.conf=krb5.conf&lt;/LI&gt;&lt;LI&gt;-Djava.security.auth.login.config=jaas.conf&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Alternatively you can add the next two lines to the system.properties file which is located at the same /bin folder.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;java.security.krb5.conf=krb5.conf&lt;/LI&gt;&lt;LI&gt;java.security.auth.login.config=jaas.conf&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I suggest using full paths to files.&lt;/P&gt;&lt;P&gt;c) Enable debug by adding the following to your command&lt;/P&gt;&lt;PRE&gt;-Djava.security.debug=gssloginconfig,configfile,configparser,logincontext&lt;/PRE&gt;&lt;P&gt;d) Check jmeter.log to see whether all properties are set as expected and map to existent file paths.&lt;/P&gt;&lt;P&gt;e) Turn off subject credentials:&lt;/P&gt;&lt;P&gt;-&lt;A href="http://djavax.security.auth/"&gt;Djavax.security.auth&lt;/A&gt;.useSubjectCredsOnly=false&lt;/P&gt;</description>
    <pubDate>Sat, 07 Oct 2017 01:36:01 GMT</pubDate>
    <dc:creator>cstanca</dc:creator>
    <dc:date>2017-10-07T01:36:01Z</dc:date>
    <item>
      <title>Unable to connect to HiveServer2 from JMeter using Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215376#M69158</link>
      <description>&lt;P&gt;I am trying to connect to HiveServer2 from JMeter over Kerberos. These are the two articles I have used:
&lt;A href="https://community.hortonworks.com/articles/60580/jmeter-setup-for-hive-load-testing-draft.html" target="_blank"&gt;https://community.hortonworks.com/articles/60580/jmeter-setup-for-hive-load-testing-draft.html&lt;/A&gt;
&lt;A href="https://www.blazemeter.com/blog/windows-authentication-apache-jmeter" target="_blank"&gt;https://www.blazemeter.com/blog/windows-authentication-apache-jmeter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
And this is the JMeter command I am using:
JVM_ARGS="-Xms1024m -Xmx1024m" bin/jmeter -Dsun.security.krb5.debug=true -Djava.security.krb5.conf=/path/to/krb5.conf -Djava.security.auth.login.config=/path/to/jaas.conf -n -t test_plan.jmx -l results -e -o output &lt;/P&gt;&lt;P&gt;But for some reason, it is not picking the keytab information from the jaas.conf file and so I could not get the connection over Kerberos. &lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 01:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215376#M69158</guid>
      <dc:creator>kumarbrahma</dc:creator>
      <dc:date>2017-10-07T01:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to HiveServer2 from JMeter using Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215377#M69159</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/44351/kumarbrahma.html"&gt;KUMAR PEDDIBHOTLA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;a) I assume that you use a hive user keytab in jaas.conf and you tested hive access from command line successfully. That is the must do first step. Make sure that you have a valid ticket (kinit, klist etc.). See documentation on docs.hortonworks.com for Hive and Kerberos.&lt;/P&gt;&lt;P&gt;b) There are 2 files under /bin folder of the JMeter installation which are used for Kerberos configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;krb5.conf - file of .ini format which contains Kerberos configuration details&lt;/LI&gt;&lt;LI&gt;jaas.conf - file which holds configuration details of Java Authentication and Authorization service&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These files aren’t being used by default, so you have to tell JMeter where they are via system properties such as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-Djava.security.krb5.conf=krb5.conf&lt;/LI&gt;&lt;LI&gt;-Djava.security.auth.login.config=jaas.conf&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Alternatively you can add the next two lines to the system.properties file which is located at the same /bin folder.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;java.security.krb5.conf=krb5.conf&lt;/LI&gt;&lt;LI&gt;java.security.auth.login.config=jaas.conf&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I suggest using full paths to files.&lt;/P&gt;&lt;P&gt;c) Enable debug by adding the following to your command&lt;/P&gt;&lt;PRE&gt;-Djava.security.debug=gssloginconfig,configfile,configparser,logincontext&lt;/PRE&gt;&lt;P&gt;d) Check jmeter.log to see whether all properties are set as expected and map to existent file paths.&lt;/P&gt;&lt;P&gt;e) Turn off subject credentials:&lt;/P&gt;&lt;P&gt;-&lt;A href="http://djavax.security.auth/"&gt;Djavax.security.auth&lt;/A&gt;.useSubjectCredsOnly=false&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 01:36:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215377#M69159</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2017-10-07T01:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to HiveServer2 from JMeter using Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215378#M69160</link>
      <description>&lt;P&gt;Yes, Constantin. I am using the Hive user keytab and have a valid Kerberos ticket for this user. Also, I have uncommented the lines related to krb5.conf and jaas.conf paths in the bin/system.properties. I have also provided the full paths to these files in the jmeter command.&lt;/P&gt;&lt;P&gt;But adding the -&lt;A href="http://djavax.security.auth/"&gt;Djavax.security.auth&lt;/A&gt;.useSubjectCredsOnly=false did the trick. Now it is correctly picking up the principal/keytab information from the jaas.conf.&lt;/P&gt;&lt;P&gt;Thanks a lot for the quick repsonse, &lt;A rel="user" href="https://community.cloudera.com/users/3486/cstanca.html" nodeid="3486"&gt;@Constantin Stanca&lt;/A&gt;. I have been working on this for more than one week. This is my final jmeter command that worked for me:&lt;/P&gt;&lt;P&gt;JVM_ARGS="-Xms1024m -Xmx1024m" bin/jmeter -Dsun.security.krb5.debug=true -Djavax.security.auth.useSubjectCredsOnly=false -Djava.security.debug=gssloginconfig,configfile,configparser,logincontext -Djava.security.krb5.conf=/path/to/krb5.conf -Djava.security.auth.login.config=/path/to/jaas.conf -n -t t1.jmx -l results -e -o output&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 01:51:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215378#M69160</guid>
      <dc:creator>kumarbrahma</dc:creator>
      <dc:date>2017-10-07T01:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to HiveServer2 from JMeter using Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215379#M69161</link>
      <description>&lt;P&gt;Hello! &lt;/P&gt;&lt;P&gt;I have a issue with hive2 connection pool using Jmeter.I run a test and the errors allways is "JDBC connection pool "&lt;/P&gt;&lt;P&gt;NB: I added all the jars  in lib/ext&lt;/P&gt;&lt;P&gt;Any suggesion &lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nisrine&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 22:12:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-connect-to-HiveServer2-from-JMeter-using-Kerberos/m-p/215379#M69161</guid>
      <dc:creator>nisrine</dc:creator>
      <dc:date>2018-09-28T22:12:11Z</dc:date>
    </item>
  </channel>
</rss>

