Hive
  1. Hive
  2. HIVE-2411

Metastore server tries to connect to NN without authenticating itself

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: Metastore, Security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When metastore server is launching it first calls new HMSHandler() even before it has done a login. That results in createDefaultDB() gets called which then results in getFileSystem() calls which tries to create a connection to NN and then it fails since NN cannot authenticate metastore.

      1. hive-2411.patch
        2 kB
        Ashutosh Chauhan

        Activity

        Hide
        Hudson added a comment -

        Integrated in Hive-0.8.0-SNAPSHOT-h0.21 #96 (See https://builds.apache.org/job/Hive-0.8.0-SNAPSHOT-h0.21/96/)
        HIVE-2411. Metastore server tries to connect to NN without authenticating itself (Ashutosh Chauhan via cws)

        cws : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202444
        Files :

        • /hive/branches/branch-0.8/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
        Show
        Hudson added a comment - Integrated in Hive-0.8.0-SNAPSHOT-h0.21 #96 (See https://builds.apache.org/job/Hive-0.8.0-SNAPSHOT-h0.21/96/ ) HIVE-2411 . Metastore server tries to connect to NN without authenticating itself (Ashutosh Chauhan via cws) cws : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202444 Files : /hive/branches/branch-0.8/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-h0.21 #1088 (See https://builds.apache.org/job/Hive-trunk-h0.21/1088/)
        HIVE-2411. Metastore server tries to connect to NN without authenticating itself (Ashutosh Chauhan via cws)

        cws : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202443
        Files :

        • /hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-h0.21 #1088 (See https://builds.apache.org/job/Hive-trunk-h0.21/1088/ ) HIVE-2411 . Metastore server tries to connect to NN without authenticating itself (Ashutosh Chauhan via cws) cws : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202443 Files : /hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
        Hide
        Carl Steinbach added a comment -

        Committed to trunk and branch-0.8. Thanks Ashutosh!

        Show
        Carl Steinbach added a comment - Committed to trunk and branch-0.8. Thanks Ashutosh!
        Hide
        Ashutosh Chauhan added a comment -

        @Carl,
        Did tests pass ?

        Show
        Ashutosh Chauhan added a comment - @Carl, Did tests pass ?
        Hide
        Carl Steinbach added a comment -

        +1. Will commit if tests pass.

        Show
        Carl Steinbach added a comment - +1. Will commit if tests pass.
        Hide
        Ashutosh Chauhan added a comment -

        Any feedback for this?

        Show
        Ashutosh Chauhan added a comment - Any feedback for this?
        Hide
        Ashutosh Chauhan added a comment -

        I think this should be included in 0.8 branch also as without this its impossible to bring up a metastore server on a secure cluster.

        Show
        Ashutosh Chauhan added a comment - I think this should be included in 0.8 branch also as without this its impossible to bring up a metastore server on a secure cluster.
        Hide
        Ashutosh Chauhan added a comment -

        Simple patch which makes sure metastore does a login first before attempting to create dir.

        Show
        Ashutosh Chauhan added a comment - Simple patch which makes sure metastore does a login first before attempting to create dir.

          People

          • Assignee:
            Ashutosh Chauhan
            Reporter:
            Ashutosh Chauhan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development