2016-05-24 9 views
4

folgte ich dieses Tutorial den Streaming-Analysedienst in Bluemix zu verwenden, um mit Message-Hub-Schnittstelle: https://developer.ibm.com/bluemix/2015/10/16/streaming-analytics-message-hub-2/?cm_mc_uid=45284031179414585919178&cm_mc_sid_50200000=1464112496Fehler bei Streaming-Analysedienst in Bluemix

Ich erhalte eine Fehlermeldung:

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

Dank

Antwort

3

In Bezug auf den Fehler scheint es, dass Sie folgende Klasse fehlen: com.ibm.messagehub.login.MessageHubLoginModule.

Überprüfen dieser Schritt von Tutorial:

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

Nach this können Sie überprüfen, ob messagehub.login-1.0.0.jar in Ihrer .sab Datei enthalten ist:

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

Wenn es fehlt, fügen Sie es in /lib Ordner .