Event Hub failed during initialization

Hi,

I get a error that the logstash.inputs.azureeventhubs could not be initialized.
I am using version 7.0.1 with the default installed plugin: logstash-input-azure_event_hubs

Complaining about undefined method `getEventHubPath'. Thie method can be found in four azure-eventhubs jars files in /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems

[2019-05-16T14:52:08,497][ERROR][logstash.inputs.azureeventhubs] Event Hub failed during initialization. {:event_hub_name=>"logstash", :exception=>java.util.concurrent.ExecutionException: org.jruby.exceptions.NoMethodError: (NoMethodError) undefined method `getEventHubPath' for #Java::ComMicrosoftAzureEventprocessorhost::HostContext:0x89f9bdd, :backtrace=>["java.util.concurrent.CompletableFuture.reportGet(java/util/concurrent/CompletableFuture.java:395)", "java.util.concurrent.CompletableFuture.get(java/util/concurrent/CompletableFuture.java:1999)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:62)", "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:566)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:425)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:292)", "usr.share.logstash.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_input_minus_azure_event_hubs_minus_1_dot_1_dot_1.lib.logstash.inputs.azure_event_hubs.run(/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-azure_event_hubs-1.1.1/lib/logstash/inputs/azure_event_hubs.rb:430)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:295)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:274)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:270)", "java.lang.Thread.run(java/lang/Thread.java:834)"]}

This is the input section of logstash:
input {
azure_event_hubs {
event_hub_connections => ["Endpoint=sb://xxxxxxxxx-t.servicebus.windows.net/;SharedAccessKeyName=logstash_dev;SharedAccessKey=xxxxxxxxxxxxxxxxxxxxxxxx=;EntityPath=logstash"]
}
}

Anybody a clue why this happens?

Regards, Evert Jan

De-installed java 11 and installed jre 8, that fixed my problem.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.