Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

HDinsight Storm Examples - Connection time out issue with Event Generator Code

$
0
0

Hello,

I am trying to run the HDinsight Storm Examples provided in link https://github.com/hdinsight/hdinsight-storm-examples/tree/master/IotExample

I have set up/ installed all the pre-requisites mentioned in the readme.md file that is:

  1. Java 1.7/1.8 SDK.
  2. Maven 3.x - If you have M2_HOME configured, the examples should detect your mvn automatically.
  3. Latest version of Azure Powershell (0.8.13 or later).

I am running Event Generator code from this link and trying to push the data into EventHub, but every time I am getting below error:

Exception in creating senders:org.apache.qpid.amqp_1_0.client.ConnectionException:java.net.ConnectException: Connection timed out: connect

This might be because of the TCP port blocked in my network for machine on which I am running this code, hence I have opened the port 9350 to 9354 to make sure it work, but even after that I am facing the same issue.

Also, as an alternate I know we can change Service Bus Environment to Http from TCP. I know how to do it in .NET that is ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;

But i don't know how to do it in Java. I have tried searching ServiceBusEnvironmentclass after installing Azure Java SDK but I am unable to find it and hence bcoz of this I am not able to change the environment of the run time.

So how can we change/ set the ServiceBusEnvironment in Java and which package I need to import in my project to make sure I can set it up correctly.


Thanks, Manthan Upadhyay


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>