<?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>topic Re: Slow logins to Hadoop in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/425692#M11794</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to get the script working. I had to specify the below parameters as well since we are using Kerberos:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KRB5CCNAME&lt;/P&gt;&lt;P&gt;-Djavax.security.auth.useSubjectCredsOnly=false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the script have the ability to take a schema name as parameter ? It defaults to the 'default' schema to which I don't have USE access, but I have access to other schemas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem doesn't seem to be authentication since it fails almost immediately if the wrong credentials are provided. The lag seems be between successful authentication and the point where it runs the 'show tables' command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw...I can't access the README file for this script.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2018 07:27:15 GMT</pubDate>
    <dc:creator>nhvdwalt</dc:creator>
    <dc:date>2018-01-08T07:27:15Z</dc:date>
    <item>
      <title>Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/425169#M11778</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm connecting to Hortonworks from SAS 9.4 M3 using the LIBNAME method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kerberos is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logins are all successful, but it takes 90 - 100 seconds to login i.e. assign&amp;nbsp;the libname in Enterprise Guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sounds a bit excessive. Any ideas why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 10:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/425169#M11778</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-01-05T10:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/425213#M11783</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will you be able to reproduce slowness using&amp;nbsp;a standalone Java program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="ftp://ftp.sas.com/techsup/download/blind/access/Hive.HDFS.newstandalone.zip" target="_self"&gt;ftp://ftp.sas.com/techsup/download/blind/access/Hive.HDFS.newstandalone.zip&lt;/A&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.sas.com/techsup/download/blind/access/Hive.HDFS.newstandalone.readme.txt" target="_self"&gt;ftp://ftp.sas.com/techsup/download/blind/access/Hive.HDFS.newstandalone.readme.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 13:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/425213#M11783</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-01-05T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/425692#M11794</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to get the script working. I had to specify the below parameters as well since we are using Kerberos:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KRB5CCNAME&lt;/P&gt;&lt;P&gt;-Djavax.security.auth.useSubjectCredsOnly=false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the script have the ability to take a schema name as parameter ? It defaults to the 'default' schema to which I don't have USE access, but I have access to other schemas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem doesn't seem to be authentication since it fails almost immediately if the wrong credentials are provided. The lag seems be between successful authentication and the point where it runs the 'show tables' command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw...I can't access the README file for this script.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 07:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/425692#M11794</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-01-08T07:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426047#M11809</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, looks like readme file has been removed. Basically, you have to do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;export SASJAVA=/&amp;lt;REPLACE_WITH_PATH_TO_SAS_HOME&amp;gt;/SASPrivateJavaRuntimeEnvironment/9.4/jre/bin/java
export CLASSPATH="/&amp;lt;REPLACE_WITH_PATH_TO_HADOOP_JARS&amp;gt;/*:/&amp;lt;REPLACE_WITH_PATH_TO_HADOOP_CONFIG&amp;gt;:$CLASSPATH"
$SASJAVA HiveCheck Kerberos &amp;lt;FQDN_OF_HIVE_SERVER&amp;gt; 10000 &amp;lt;REPLACE_WITH_HIVE_PRINCIPAL&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The Hive schema can be changed in file HiveCheck.java on line 196:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;connection_string = "jdbc:hive2://" + args[1] + ":" + args[2] + "/default";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do not forget to recompile HiveCheck.java using javac.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 12:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426047#M11809</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-01-09T12:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426305#M11836</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;, it worked perfectly ! I recompiled the code and can now test the connections successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get back to the original question....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that the connection to Hadoop takes 94 seconds with Java 7 (SAS supplied) and only 34 seconds with Java 8 (Red Hat supplied). Although we cannot change the SAS version, at least I have a reasonable explanation now. I guess some of the 34 seconds are taken up by Kerberos when the tickets are obtained initially. So overall, it's manageable. The key is to ensure the login timeout is set on the libname statement, since the login time is still outside of the default 30 seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 04:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426305#M11836</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-01-10T04:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426366#M11841</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I found that the connection to Hadoop takes 94 seconds with Java 7&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WOW&lt;/STRONG&gt;, that's a lot of time. Would you like to debug a problem further?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 11:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426366#M11841</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-01-10T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426368#M11842</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, if you have any suggestions about how to troubleshoot, I'll appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 11:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426368#M11842</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-01-10T11:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426385#M11843</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First off, run JAR with the option &lt;STRONG&gt;-Dsun.security.krb5.debug=true&lt;/STRONG&gt;. I would like to see what is going on with the Kerberos authentication.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 11:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426385#M11843</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-01-10T11:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426396#M11844</link>
      <description>&lt;P&gt;Absolute brilliance&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is exactly what I was looking for. Long story short, the trace clearly shows a timeout against the first KDC listed in krb5.conf. I'll chat to the AD team to see why that KDC is offline. This is a production environment, so all services should be available. So 90 of the 94 seconds is spent waiting for an offline KDC. Once the request is sent to the second KDC, the Hadoop connection is instant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting though, although Java 8 also says retries=3, it doesn't actually try 3 times. After the first try fails (30 seconds) it goes to the second KDC. So again, 30 out of the 34 seconds is spent waiting for an offline KDC. But that's just a side note. I'm confident that if the first KDC is online, we'll have almost immediate connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a mile for the help !&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 12:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426396#M11844</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-01-10T12:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Slow logins to Hadoop</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426397#M11845</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome! I'm glad that the problem has been identified and it's not SAS &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 12:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Slow-logins-to-Hadoop/m-p/426397#M11845</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-01-10T12:24:26Z</dc:date>
    </item>
  </channel>
</rss>

