Bluemix 中的流分析服务出错

Error in streaming-analytic service in Bluemix

我按照本教程使用 Bluemix 中的流分析服务来连接消息中心:https://developer.ibm.com/bluemix/2015/10/16/streaming-analytics-message-hub-2/?cm_mc_uid=45284031179414585919178&cm_mc_sid_50200000=1464112496

我收到一个错误:

Caused by: org.apache.kafka.common.KafkaException: javax.security.auth.login.LoginException: unable to find LoginModule class: com.ibm.messagehub.login.MessageHubLoginModule

谢谢

关于错误,您似乎缺少以下 class: com.ibm.messagehub.login.MessageHubLoginModule.

检查教程中的这一步:

First add the following jars to the opt/downloaded directory of the messaging toolkit.

  • jackson-core-2.5.4.jar
  • messagehub.login-1.0.0.jar

根据 this,您可以检查您的 .sab 文件中是否包含 messagehub.login-1.0.0.jar

To help application and toolkit developers understand which files are included in an application bundle file, you can use the spl-app-info command. For example, the following command lists the toolkits included in the bundle, and the files within those toolkits that are included in the bundle.

spl-app-info output/MyApp.sab --files

如果缺少,请将其添加到 /lib 文件夹中。