4

I am trying to use MLCP to bulk load files into MarkLogic. Command line and error are below. I followed the instructions in one of the tutorials. I dont know why its doing anything with hadoop if my mode is local. Any ideas what I'm doing wrong?

T:\temp\gs>mlcp.bat import -mode local -host localhost -port 8000 -username admin -password admin -input_file_path T:\temp\gs\import -input_file_type documents -document_type xml

The error is:

java.lang.RuntimeException: java.io.IOException: failure to login: No LoginModules configured for hadoop_simple

Mads Hansen
  • 63,927
  • 12
  • 112
  • 147
Jeff
  • 41
  • 1
  • 1
    Can you update the question to include the versions of MLCP and ML? – wst Dec 21 '16 at 00:13
  • I believe mlcp still uses some hadoop libraries for local mode, though I don't know the details of how that works (though source code is at https://github.com/marklogic/marklogic-contentpump ). A search for "No LoginModules configured for hadoop_simple" shows other instances of this, and it seems related to JAAS configuration. Perhaps there's something in your JVM configuration related to JAAS that's creating issues here? Just grasping, I've never seen this error with mlcp before. Try ingesting just a single document, and don't include the "-mode" argument, as it defaults to local. – rjrudin Dec 21 '16 at 13:31
  • I'm using version 8.0.6 of mlcp. I tried without the mode and just one file. no luck. – Jeff Dec 23 '16 at 02:39
  • Caused by: javax.security.auth.login.LoginException: No LoginModules configured for hadoop_simple at javax.security.auth.login.LoginContext.init(LoginContext.java:264) at javax.security.auth.login.LoginContext.(LoginContext.java:381) at org.apache.hadoop.security.UserGroupInformation.newLoginContext(UserGroupInformation.java:462) at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:723) – Jeff Dec 23 '16 at 02:42
  • Looks like it works! if you post as an answer I can verify it. Thanks. – Jeff Dec 29 '16 at 22:36

1 Answers1

1

You may have downloaded the MapR version - I just tried a minimal import with the MapR version and got the same error. Make sure you get the non-MapR version (I'm assuming you don't need MapR here) - it's the first Download link at developer.marklogic.com/products/mlcp

rjrudin
  • 2,108
  • 9
  • 7