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

HBaseImportJob should add job authtoken only if HBase is secured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.4
    • 1.4.5
    • hbase-integration
    • 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_v2.patch
          1 kB
          Aditya Kishore
        2. SQOOP-1246.patch
          1 kB
          Aditya Kishore

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: