AnsweredAssumed Answered

MapR Authentication error via Sqoop Job

Question asked by hitesh.sarabu on Aug 15, 2017
Latest reply on Sep 4, 2017 by snayeem

Hi, I am having an issue running a sqoop job via a Java SSH api. Basically, I SSH into an edge node and attempt to kick off a sqoop job but sqoop is throwing an error saying it cannot authenticate into MapR. There error is below. This only seems to happen with Java SSH -> Sqoop. If I SSH in through terminal, its not a problem. It happens on several different Java SSH library although right now I am using jcabi-ssh.

 

The error:

 

17/08/14 12:03:15 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: failure to login: Unable to obtain MapR credentials

                at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:751)

                at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:688)

                at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:572)

                at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2848)

                at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2838)

                at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2704)

                at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:407)

                at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:172)

                at org.apache.sqoop.tool.ImportTool.initIncrementalConstraints(ImportTool.java:295)

                at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:488)

                at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:606)

                at org.apache.sqoop.Sqoop.run(Sqoop.java:143)

                at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)

                at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)

                at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)

                at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)

                at org.apache.sqoop.Sqoop.main(Sqoop.java:236)

Caused by: javax.security.auth.login.LoginException: Unable to obtain MapR credentials

                at com.mapr.security.maprsasl.MaprSecurityLoginModule.login(MaprSecurityLoginModule.java:227)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:498)

                at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)

                at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)

                at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)

                at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)

                at java.security.AccessController.doPrivileged(Native Method)

                at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)

                at javax.security.auth.login.LoginContext.login(LoginContext.java:587)

                at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:724)

                ... 16 more

Caused by: com.mapr.login.MapRLoginException: Unable to authenticate as ticket is not available

                at com.mapr.login.client.MapRLoginHttpsClient.authenticateIfNeeded(MapRLoginHttpsClient.java:173)

                at com.mapr.login.client.MapRLoginHttpsClient.authenticateIfNeeded(MapRLoginHttpsClient.java:115)

                at com.mapr.security.maprsasl.MaprSecurityLoginModule.login(MaprSecurityLoginModule.java:221)

                ... 28 more

 

 

Thanks in advance!

Outcomes