Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-1246

HBaseImportJob should add job authtoken only if HBase is secured

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.5
    • Component/s: hbase-integration
    • Labels:
      None

      Description

      Sqoop's HBase import job incorrectly checks if Hadoop is secured instead of HBase is secured before deciding to add an HBase authtoken,

      HBaseImportJob.java
        @Override
        /** Create the target HBase table before running the job. */
        protected void jobSetup(Job job) throws IOException, ImportException {
      ...
            // Get method isSecurityEnabled
            Method isSecurityEnabled = User.class.getMethod("isSecurityEnabled");
      ...
            // Obtain security token if needed
            if ((Boolean)isSecurityEnabled.invoke(null)) {
              obtainAuthTokenForJob.invoke(user, conf, job);
            }
      

      which of course fails if Hadoop is secured but HBase is not.

        Attachments

        1. SQOOP-1246.patch
          1 kB
          Aditya Kishore
        2. SQOOP-1246_v2.patch
          1 kB
          Aditya Kishore

          Activity

            People

            • Assignee:
              adityakishore Aditya Kishore
              Reporter:
              adityakishore Aditya Kishore
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: