2

( updateRequestProcessor チェーンを使用して) mahout を solr に統合しようとしていますが、classifierContext を初期化しようとすると、次のエラーが発生します。

情報: モデル パス:/home/bayes-model

java.lang.IllegalStateException: /home/bayes-model/trainer-weights/Sigma_j/part-*
    at org.apache.mahout.common.iterator.sequencefile.SequenceFileDirIterable.iterator(SequenceFileDirIterable.java:79)
    at org.apache.mahout.classifier.bayes.SequenceFileModelReader.loadFeatureWeights(SequenceFileModelReader.java:72)
    at org.apache.mahout.classifier.bayes.SequenceFileModelReader.loadModel(SequenceFileModelReader.java:46)
    at org.apache.mahout.classifier.bayes.InMemoryBayesDatastore.initialize(InMemoryBayesDatastore.java:72)
    at org.apache.mahout.classifier.bayes.ClassifierContext.initialize(ClassifierContext.java:44)
    at solr.mypkg.CategorizeDocumentFactory.init(CategorizeDocumentFactory.java:67)
    at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:449)
    at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1569)
    at org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:57)
Caused by: javax.security.auth.login.LoginException: unable to find LoginModule 
class: org.apache.hadoop.security.UserGroupInformation$HadoopLoginModule
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    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:579)
    at org.apache.hadoop.security.UserGroupInformation.getLoginUse

私のコードは以下の通りです: params = SolrParams.toSolrParams((NamedList) args);

BayesParameters p = new BayesParameters();
String modelPath = params.get("model");
File file=new File(modelPath);

p.set("basePath",file.getAbsolutePath());
LOG.info("model path :"+file.getAbsolutePath());

p.set("classifierType","bayes");
p.set("dataSource","hdfs");


Datastore ds = new InMemoryBayesDatastore(p);
Algorithm alg = new BayesAlgorithm();
ctx = new ClassifierContext(alg,ds);
ctx.initialize();

その理由は何ですか?

4

0 に答える 0