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:
- Java 1.7/1.8 SDK.
- Maven 3.x - If you have M2_HOME configured, the examples should detect your mvn automatically.
- 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