Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.4
-
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.