<?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 LoginException: Algorithm HmacMD5 not available when login hdfs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/LoginException-Algorithm-HmacMD5-not-available-when-login/m-p/44177#M38451</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;we are working with security cdh5.7 cluster. I have a java programe to access the hdfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Java Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;conf.addResource(path1);
			UserGroupInformation.setConfiguration(conf);

				&lt;STRONG&gt;UserGroupInformation.loginUserFromKeytab("arch_onedata@OD.BETA",
						filePath));&lt;/STRONG&gt;

			fs = FileSystem.get(conf);&lt;/PRE&gt;&lt;P&gt;When I run the code with java main in eclipse, It is normally.&lt;/P&gt;&lt;P&gt;When I run the code with shell script call java main, the below exception hadppened:&lt;/P&gt;&lt;PRE&gt;15:17:02,718 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory:42 - field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginSuccess with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, always=false, sampleName=Ops, type=DEFAULT, valueName=Time, value=[Rate of successful kerberos logins and latency (milliseconds)])
15:17:02,736 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory:42 - field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginFailure with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, always=false, sampleName=Ops, type=DEFAULT, valueName=Time, value=[Rate of failed kerberos logins and latency (milliseconds)])
15:17:02,743 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory:42 - field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.getGroups with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, always=false, sampleName=Ops, type=DEFAULT, valueName=Time, value=[GetGroups])
15:17:02,746 DEBUG org.apache.hadoop.metrics2.impl.MetricsSystemImpl:231 - UgiMetrics, User and group related metrics
15:17:03,244 DEBUG org.apache.hadoop.security.SecurityUtil:110 - Setting hadoop.security.token.service.use_ip to true
15:17:03,358 DEBUG org.apache.hadoop.security.Groups:301 -  Creating new Groups object
15:17:03,546 DEBUG org.apache.hadoop.util.Shell:419 - setsid exited with exit code 0
15:17:03,601 DEBUG org.apache.hadoop.security.Groups:112 - Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000; warningDeltaMs=5000
15:17:03,726 DEBUG org.apache.hadoop.security.UserGroupInformation:221 - hadoop login
java.io.IOException: Login failure for arch_onedata@OD.BETA from keytab ../conf/arch_onedata.keytab: javax.security.auth.login.LoginException: Algorithm HmacMD5 not available
	at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:962)&lt;/PRE&gt;&lt;P&gt;What happened? How to resolved this issue?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2016 07:29:56 GMT</pubDate>
    <dc:creator>Paul Yang</dc:creator>
    <dc:date>2016-08-22T07:29:56Z</dc:date>
    <item>
      <title>LoginException: Algorithm HmacMD5 not available when login hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/LoginException-Algorithm-HmacMD5-not-available-when-login/m-p/44177#M38451</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;we are working with security cdh5.7 cluster. I have a java programe to access the hdfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Java Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;conf.addResource(path1);
			UserGroupInformation.setConfiguration(conf);

				&lt;STRONG&gt;UserGroupInformation.loginUserFromKeytab("arch_onedata@OD.BETA",
						filePath));&lt;/STRONG&gt;

			fs = FileSystem.get(conf);&lt;/PRE&gt;&lt;P&gt;When I run the code with java main in eclipse, It is normally.&lt;/P&gt;&lt;P&gt;When I run the code with shell script call java main, the below exception hadppened:&lt;/P&gt;&lt;PRE&gt;15:17:02,718 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory:42 - field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginSuccess with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, always=false, sampleName=Ops, type=DEFAULT, valueName=Time, value=[Rate of successful kerberos logins and latency (milliseconds)])
15:17:02,736 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory:42 - field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginFailure with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, always=false, sampleName=Ops, type=DEFAULT, valueName=Time, value=[Rate of failed kerberos logins and latency (milliseconds)])
15:17:02,743 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory:42 - field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.getGroups with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, always=false, sampleName=Ops, type=DEFAULT, valueName=Time, value=[GetGroups])
15:17:02,746 DEBUG org.apache.hadoop.metrics2.impl.MetricsSystemImpl:231 - UgiMetrics, User and group related metrics
15:17:03,244 DEBUG org.apache.hadoop.security.SecurityUtil:110 - Setting hadoop.security.token.service.use_ip to true
15:17:03,358 DEBUG org.apache.hadoop.security.Groups:301 -  Creating new Groups object
15:17:03,546 DEBUG org.apache.hadoop.util.Shell:419 - setsid exited with exit code 0
15:17:03,601 DEBUG org.apache.hadoop.security.Groups:112 - Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000; warningDeltaMs=5000
15:17:03,726 DEBUG org.apache.hadoop.security.UserGroupInformation:221 - hadoop login
java.io.IOException: Login failure for arch_onedata@OD.BETA from keytab ../conf/arch_onedata.keytab: javax.security.auth.login.LoginException: Algorithm HmacMD5 not available
	at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:962)&lt;/PRE&gt;&lt;P&gt;What happened? How to resolved this issue?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 07:29:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/LoginException-Algorithm-HmacMD5-not-available-when-login/m-p/44177#M38451</guid>
      <dc:creator>Paul Yang</dc:creator>
      <dc:date>2016-08-22T07:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: LoginException: Algorithm HmacMD5 not available when login hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/LoginException-Algorithm-HmacMD5-not-available-when-login/m-p/44193#M38452</link>
      <description>Can you re-check what JDK/JRE version gets picked up when you run it on the&lt;BR /&gt;cluster, vs. when you're using your developer machine's IDE?&lt;BR /&gt;&lt;BR /&gt;Some older Linux distributions may have installed GNU Java version that's&lt;BR /&gt;very outdated and may not carry this specific class amongst others, and if&lt;BR /&gt;your app runs with such an older version then the error may be seen.&lt;BR /&gt;&lt;BR /&gt;If you are using 'hadoop jar' to run the application, try exporting an&lt;BR /&gt;explicit JAVA_HOME that points to an Oracle JDK7 or JDK8 install path&lt;BR /&gt;before running the command to have it pick up the intended JVM.&lt;BR /&gt;&lt;BR /&gt;Alternatively you may be missing the right crypo extensions installed on&lt;BR /&gt;your JDK.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Aug 2016 14:30:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/LoginException-Algorithm-HmacMD5-not-available-when-login/m-p/44193#M38452</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-08-22T14:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: LoginException: Algorithm HmacMD5 not available when login hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/LoginException-Algorithm-HmacMD5-not-available-when-login/m-p/44223#M38453</link>
      <description>&lt;P&gt;Hi, Harsh,&lt;/P&gt;&lt;P&gt;the issue gone when i package the&amp;nbsp;sunjce_provider.jar of JRE into lib folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 06:24:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/LoginException-Algorithm-HmacMD5-not-available-when-login/m-p/44223#M38453</guid>
      <dc:creator>Paul Yang</dc:creator>
      <dc:date>2016-08-23T06:24:10Z</dc:date>
    </item>
  </channel>
</rss>

