Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7165

Kerberos authentication always simple

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0
    • None
    • Hadoop Integration
    • CentOS release 6.6
      MIT KDC 5
      Hadoop 2.6.0

    Description

      It seems that when creating a collection to HDFS with the " bin/solr create -c " command, the authentication is always simple, even with

      <bool name="solr.hdfs.security.kerberos.enabled">true</bool>
      <str name="solr.hdfs.security.kerberos.keytabfile">key.tab</str>
      <str name="solr.hdfs.security.kerberos.principal">principal</str>

      I have two Hadoop clusters, one with simple auth and one kerberized. I can correctly add a collection to the first one. I duplicated the solrconfig.xml, added the kerberos parameters and I can't add a collection to the second one. Here's the bin/solr log:

      bin/solr create -c collectionsecurehdfs -d Solr/collection1/

      Setup new core instance directory:
      Solr/server/solr/collectionsecurehdfs

      Creating new core 'collectionsecurehdfs' using command:
      http://localhost:8983/solr/admin/cores?action=CREATE&name=collectionsecurehdfs&instanceDir=collectionsecurehdfs

      Failed to create core 'collectionsecurehdfs' due to: Error CREATEing SolrCore 'collectionsecurehdfs': Unable to create core [collectionsecurehdfs] Caused by: hadoop.security.authentication set to: simple, not kerberos, but attempting to connect to HDFS via kerberos.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Simon.Minery Simon Minery
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment