hazelcast-guides / airline-connections Goto Github PK
View Code? Open in Web Editor NEWUse SQL to Join Two Streams and Detect Tight Connections
Use SQL to Join Two Streams and Detect Tight Connections
Images cannot be displayed on the tutorial page.
I've honestly struggled to get this airline connections demo working, and I'm going to try and summarize some of the steps I had to take to get things working...
I had to manually create a local config directory with the same name as my cluster when attempting to run the local client at Step 5 of this guide, as I would get an error expecting the config to be found under a directory with the same name as the cluster:
cd connection-monitor
mvn clean package exec:java -Dexec.mainClass=hazelcast.platform.labs.airline.AirlineConnectionListener -Dexec.args=white-handsome-terabyte
...
Caused by: java.lang.RuntimeException: Did not find expected configuration at /Users/benheymink/.hazelcast/configs/white-handsome-terabyte
Fine, I can manually create that local config directory, copying the same config that was created when I ran the config import
step from the browser. Other users might not know to do this though.
api-base
propertyAfter getting the config.json
file in the right place, Step 5 then fails with an error, as the config is missing api-base
:
mvn -X clean package exec:java -Dexec.mainClass=hazelcast.platform.labs.airline.AirlineConnectionListener -Dexec.args=white-handsome-terabyte
...
Caused by: java.lang.NullPointerException: Cannot invoke "com.fasterxml.jackson.databind.JsonNode.asText()" because the return value of "com.fasterxml.jackson.databind.JsonNode.get(String)" is null
This is due to api-base being missing in the config that is created/downloaded to the users machine. It looks like the code is meant to handle this:
if (apiBase == null)
apiBase = "https://api.viridian.hazelcast.com";
But this default value fallback occurs after the code attempts to read it and parse is as a string value, which obviously blows up. Manually adding the api-base
property to my config file allowed me to get around this, and to get the demo working, but there is NO WAY a normal user would know, or be prepared to, mess around looking through the code to try to troubleshoot what is going on!
Following the tutorial here, I'm instructed to:
Go to the dashboard for your cluster and open Management Center.
In Management Center, select Stream Processing > Jobs
I can't seem to find this anywhere!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.