Giter Club home page Giter Club logo

airline-connections's People

Contributors

naadhira avatar rebekah-lawrence avatar serdaro avatar wrmay avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

serdaro

airline-connections's Issues

Extra steps needed to get airline-connections demo working

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...

Missing local config for new cluster

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.

Config seems to be missing api-base property

After 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!

Incorrect CLI usage example

Was running through the airline connections demo but got stuck at the section where you are instructed to run the script connections_job.sql from the repo:

Screenshot 2024-01-25 at 14 31 12

I believe this should be:
clc -c <your-cloud-config> script run connections_job.sql (Note the addition of the run command)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.