<?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: Ranger usersync 401 unauthorized in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207961#M169921</link>
    <description>&lt;P&gt;Is this kerberos env? If so make sure all the necessary keytabs are there with right permissions. &lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 22:47:58 GMT</pubDate>
    <dc:creator>vperiasamy</dc:creator>
    <dc:date>2018-01-31T22:47:58Z</dc:date>
    <item>
      <title>Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207960#M169920</link>
      <description>&lt;P&gt;having trouble with Ranger usersync from Active Directory.  Just trying ldap, not ldaps at the moment.  I can see in the usersync.log that it connect to my AD server &amp;amp; finds the users and groups I have set in my filters.  When it goes to try to push these into Ranger, I'm getting&lt;/P&gt;&lt;P&gt;com.sun.jersey.api.client.UniformInterfaceException: GET &lt;A href="http://fit-d-selgsv-21.sentry.com:6080/service/xusers/groups/?pageSize=1000&amp;amp;startIndex=0"&gt;http://fit-d-selgsv-21.sentry.com:6080/service/xusers/groups/?pageSize=1000&amp;amp;startIndex=0&lt;/A&gt; returned a response status of 401 Unauthorized&lt;/P&gt;&lt;P&gt;It looks like the usersync can't push to Ranger.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 21:59:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207960#M169920</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-01-31T21:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207961#M169921</link>
      <description>&lt;P&gt;Is this kerberos env? If so make sure all the necessary keytabs are there with right permissions. &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 22:47:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207961#M169921</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-01-31T22:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207962#M169922</link>
      <description>&lt;P&gt;yes, kerberos is enabled.  I see a rangerusersync.service.keytab, rangeradmin.service.keytab, and rangerlookup.service.keytab in /etc/security/keytabs all owned by ranger&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 23:09:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207962#M169922</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-01-31T23:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207963#M169923</link>
      <description>&lt;P&gt;Do you see any errors in ranger usersync log or ranger admin log?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 23:47:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207963#M169923</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-01-31T23:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207964#M169924</link>
      <description>&lt;P&gt;yes.  here is the full error I'm seeing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;com.sun.jersey.api.client.UniformInterfaceException: GET &lt;A href="http://fit-d-selgsv-21.sentry.com:6080/service/xusers/groups/?pageSize=1000&amp;amp;startIndex=0"&gt;http://fit-d-selgsv-21.sentry.com:6080/service/xusers/groups/?pageSize=1000&amp;amp;startIndex=0&lt;/A&gt; returned a response status of 401 Unauthorized&lt;BR /&gt; at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)&lt;BR /&gt; at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)&lt;BR /&gt; at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:507)&lt;BR /&gt; at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.buildGroupList(PolicyMgrUserGroupBuilder.java:429)&lt;BR /&gt; at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.access$000(PolicyMgrUserGroupBuilder.java:72)&lt;BR /&gt; at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder$1.run(PolicyMgrUserGroupBuilder.java:180)&lt;BR /&gt; at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder$1.run(PolicyMgrUserGroupBuilder.java:176)&lt;BR /&gt; at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt; at javax.security.auth.Subject.doAs(Subject.java:360)&lt;BR /&gt; at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.buildUserGroupInfo(PolicyMgrUserGroupBuilder.java:176)&lt;BR /&gt; at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.init(PolicyMgrUserGroupBuilder.java:163)&lt;BR /&gt; at org.apache.ranger.usergroupsync.UserGroupSync.run(UserGroupSync.java:51)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:745)&lt;/P&gt;&lt;P&gt;when I look in the ranger database, I see the following users: Admin, rangerusersync, keyadmin, rangertagsync.  So the rangerusersync user exists.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 01:08:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207964#M169924</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-02-01T01:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207965#M169925</link>
      <description>&lt;P&gt;Do you see any error on ranger admin log? Is there core-site.xml under /etc/ranger/admin/conf ?&lt;/P&gt;&lt;P&gt;What is the HDP version? &lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 01:13:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207965#M169925</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-02-01T01:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207966#M169926</link>
      <description>&lt;P&gt;yes, there is a core-site.xml under /etc/ranger/admin/conf.  There are errors in my xa_portal.log.  I will attach a .zip with the core-site.xml and xa_portal.log.  This is HDF not HDP but the Ranger distro is the same between the builds.  HDF 3.0.1 &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/59417-cworkhdfissue.zip"&gt;cworkhdfissue.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 01:39:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207966#M169926</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-02-01T01:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207967#M169927</link>
      <description>&lt;P&gt;I don't see any related errors. You can enable DEBUG and kerberos debug to get more info. Also zip does not contain core-site.xml &lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 01:56:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207967#M169927</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-02-01T01:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207968#M169928</link>
      <description>&lt;P&gt;I see how to enable DEBUG for Ranger admin, but not certain where you're talking about enabling for Kerberos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/49445/how-to-enable-debug-logging-for-ranger-admin.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/49445/how-to-enable-debug-logging-for-ranger-admin.html&lt;/A&gt;&lt;/P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/59418-cworkhdfcore-site.xml"&gt;cworkhdfcore-site.xml&lt;/A&gt;</description>
      <pubDate>Thu, 01 Feb 2018 02:09:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207968#M169928</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-02-01T02:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207969#M169929</link>
      <description>&lt;P&gt;You need to make sure rangerusersync is sending kerberos request. &lt;/P&gt;&lt;P&gt;To enable kerberos debug, you can add below arguments to ranger start via JAVA_OPTS in ranger-admin-services.sh&lt;/P&gt;&lt;P&gt;-Dsun.security.krb5.debug=true -Dsun.security.jgss.debug=true -Djava.security.debug="logincontext,policy,scl,gssloginconfig"&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 02:17:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207969#M169929</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-02-01T02:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207970#M169930</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/59419-cworkhdfnew-folderusersync-issue2.zip"&gt;cworkhdfnew-folderusersync-issue2.zip&lt;/A&gt; I believe I enabled correctly &amp;amp; restarted.  when I check the log files I don't see any extra Kerberos information.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 03:04:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207970#M169930</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-02-01T03:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207971#M169931</link>
      <description>&lt;P&gt;Kerberos debug messages will be in catalina.out&lt;/P&gt;&lt;P&gt;Not sure if ranger admin is properly spnego enabled. Please enable DEBUG for ranger admin logs.&lt;/P&gt;&lt;P&gt;One thing you can try is to manually kinit using rangerusersync keytab and perform the same request via Curl. &lt;A href="http://fit-d-selgsv-21.sentry.com:6080/service/xusers/groups/?pageSize=1000&amp;amp;startIndex=0"&gt;http://fit-d-selgsv-21.sentry.com:6080/service/xusers/groups/?pageSize=1000☆tIndex=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 03:09:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207971#M169931</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2018-02-01T03:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207972#M169932</link>
      <description>&lt;P&gt;is there a way to change the usersync account so that it uses just  username/password instead of Kerberos?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 03:41:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207972#M169932</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-02-01T03:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger usersync 401 unauthorized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207973#M169933</link>
      <description>&lt;P&gt;we ended up just dropping the cluster, deploying Ranger &amp;amp; Ranger usersync, then enabling Kerberos.  works perfect if you deploy ranger first.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 02:17:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-usersync-401-unauthorized/m-p/207973#M169933</guid>
      <dc:creator>ben_grant</dc:creator>
      <dc:date>2018-02-09T02:17:07Z</dc:date>
    </item>
  </channel>
</rss>

