Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.5 #67

Draft
wants to merge 58 commits into
base: master
Choose a base branch
from
Draft

5.5 #67

wants to merge 58 commits into from

Conversation

ivan-shevtsov
Copy link

Connection Successful!

Creating mapping for cities...OK.
Cleaning up the 'cities' map...Cleanup...OK.
Inserting cities into 'cities' map...Insert...OK.
Putting a city into 'cities' map...OK.
Fetching cities via SQL...OK.
--Results of 'SELECT __key, this FROM cities'
  id |              country |                 city |      population |
   2 |       United Kingdom |           Manchester |         2770434 |
   6 |              Türkiye |               Ankara |         5309690 |
   1 |       United Kingdom |               London |         9540576 |
   8 |               Brazil |       Rio de Janeiro |        13634274 |
   5 |              Türkiye |             Istanbul |        15636243 |
   4 |        United States |          Los Angeles |         3985520 |
   3 |        United States |             New York |        19223191 |
   7 |               Brazil |           Sao Paulo  |        22429800 |

!! Hint !! You can execute your SQL queries on your Hazelcast Cloud cluster using the "SQL Broswer" UI.
1. Start one of the preloaded demos in your Trial Experience.
2. This will open the 'SQL Browser'.
3. Add a new Tab.
4. Try to execute 'SELECT * FROM cities'.

Submitting Jet job
Jet job submitted. 
You can see the results in the logs (go to your cluster page in the Hazelcast Cloud console and click the 'Logs' link) or in Management Center - Jobs section (also available through the Hazelcast Cloud cluster page).


Generating embeddings for 500 plot summaries took 3 seconds
Found those results for the request [stars and planets] :
  # | Title                                    | Release Date   | Plot                                                        ..
  1 | Journey to the Far Side of the Sun       | 1969           | Travelling through the Solar System in 2069, the unmanned Su
  2 | Judgement Day                            | 1999           | Cultists with an enigmatic leader  seize the only man capabl
  3 | Planet of the Apes                       | 2001-07-26     | In 2029, aboard the United States Air Force space station Ob
  4 | Transformers: Revenge of the Fallen      | 2009-06-19     | Thousands of years ago, the 13 Primes travel the galaxy to c
  5 | Ultraman Cosmos 2: The Blue Planet       |                | Once again, Musashi has encountered Cosmos. Now Cosmos has g
  6 | The 27th Day                             | 1957-07        | Five people – Englishwoman Evelyn Wingate, American reporter
  7 | One False Move                           | 1991-10        | The film opens with three criminals - Ray , an immoral and s
  8 | Plumíferos                               | 2010-02-18     | "It's an everyday universe that exists 7 feet over our heads
  9 | Kamen Rider Fourze the Movie: Everyone,  | 2012-08-04     | The mysterious Space Ironmen begin threatening Earth and the
 10 | Cats Dancing on Jupiter                  | 2011-05-24     | The film revolves around two best friends since childhood, J
Found those results for the request [cats] :
  # | Title                                    | Release Date   | Plot                                                        ..
  1 | Notes to You                             |                | When Porky tries to go to sleep a cat  starts singing in his
  2 | The Butcher Boy                          | 1932-09-26     | Pooch operates a meat store in the city. One day, he receive
  3 | Krazy Spooks                             | 1933-10-05     | Krazy and his spaniel girlfriend are in an automobile, ridin
  4 | Sabretooth                               | 2002-11-16     | Using fossilized DNA, a scientist clones a prehistoric saber
  5 | Tainá 2: A New Amazon Adventure          | 2004-10-24     | The evil woman Zuzu gets these two men to goto the jungle an
  6 | Ghost Cat                                | 2003           | A widower  and his teen daughter  move into a house that was
  7 | The Apache Kid                           | 1930-10-09     | In a tavern, Krazy is playing the piano while his spaniel gi
  8 | Plumíferos                               | 2010-02-18     | "It's an everyday universe that exists 7 feet over our heads
  9 | Work In Progress                         | 2000           | A tall, thin inventor with a wisp of white smoke for hair (v
 10 | Peopletoys                               | 1974           | Five children crawl from the wreckage of a deadly van accide
Found those results for the request [robots] :
  # | Title                                    | Release Date   | Plot                                                        ..
  1 | The Earth Dies Screaming                 | 1964-10-14     | After a mysterious gas attack which kills off most of the ea
  2 | Mort & Phil. Mission: Save Earth         | 2008-01-25     | Coinciding with the worst drought ever, much of the world's 
  3 | Judgement Day                            | 1999           | Cultists with an enigmatic leader  seize the only man capabl
  4 | Transformers: Revenge of the Fallen      | 2009-06-19     | Thousands of years ago, the 13 Primes travel the galaxy to c
  5 | Static                                   | 1986-09-10     | A quirky, out-of-of place worker  at a crucifix factory in t
  6 | Obselidia                                | 2010           | On his quest to catalogue soon obsolete occupations, George 
  7 | Television Spy                           | 1939-10-20     | A scientist invents a television called the Iconoscope, whic
  8 | Where's Marlowe?                         | 1999           | After making a 3-hour fiasco about New York City's water sup
  9 | Peopletoys                               | 1974           | Five children crawl from the wreckage of a deadly van accide
 10 | Dial D for Demons                        | 2000-03-18     | A group of six youngsters travel to Lantau Island for a holi

Umit UNAL and others added 30 commits March 9, 2020 10:18
ClusterName added. Client changed to enterprise.
* HZC-521 - Regular printing of progress

* HZC-521 - Use int instead of byte for the iteration counter

(cherry picked from commit 5f6589f)
# Conflicts:
#	src/main/java/com/hazelcast/cloud/Client.java
#	src/main/java/com/hazelcast/cloud/ClientWithSsl.java
# Conflicts:
#	src/main/java/com/hazelcast/cloud/Client.java
#	src/main/java/com/hazelcast/cloud/ClientWithSsl.java
HZC-1723 Use hazelcast-enterprise jar
HZC-2013: Add SQL section to the 5.0 client sample
* HZX-2039 sample with json serialization and SQL queries

* move additional examples with JSON serialization into main Client class

* added javadocs and duplicated example in ClientWithSsl

* removed compact serialization in cities
We have deprecated the `STATISTICS` properties, as in 4.0, we have
introduced `MetricsConfig`, which enables metrics collection by
default.

So, there is no need to set this deprecated property anymore.

Co-authored-by: Ivan Shevtsov <[email protected]>
…nfig-5_1

HZC-847 Use ClientCloudConfig to pass cluster discovery token 5.1
* Update the Java code samples

This PR updates the code sample according to the decision made
with the documentation and the APIs team, to provide consistent
code samples across all clients.

Instead of populating a map with random entries all the time,
the default code sample to run now populates a map with HJV
entries so that it can be queryable. The part that queries the
map will be handled by the documentation team in their tutorials.

This PR also contains some small changes to the code sample like
getting rid of unnecessary abstractions, fixing the formatting, making
create mapping statements more friendly to non-java developers, etc.

* address review comments

* address review comments

* add non-stop map example
It seems that the exec plugin has some problems cleaning up the
daemon threads.

Adding an explicit exit at the end of the code samples solves
this problem.

The former code was producing an error like below when run
with mvn.

```
[WARNING] thread Thread[ForkJoinPool.commonPool-worker-3,5,com.hazelcast.cloud.ClientWithSsl] was interrupted but is still alive after waiting at least 15000msecs
[WARNING] thread Thread[ForkJoinPool.commonPool-worker-3,5,com.hazelcast.cloud.ClientWithSsl] will linger despite being asked to die via interruption
[WARNING] NOTE: 1 thread(s) did not finish despite being asked to  via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
```
sergeyshakhov and others added 24 commits October 10, 2022 14:26
* Simplified the example. [API-1977] (#45)

* Simplified the example.

* Exmaples changed to city to be synced with docs.

* Update src/main/java/com/hazelcast/cloud/ClientWithSsl.java

Co-authored-by: Metin Dumandag <[email protected]>

* Review changes.

* Add license headers.

* Fix syntax.

* Non ssl sample aligned with ssl one.

---------

Co-authored-by: Metin Dumandag <[email protected]>

* Update Hazelcast version to 5.2.3 (#47)

* Add MC Jobs tip to sample client (#48)

---------

Co-authored-by: Metin Dumandag <[email protected]>
Co-authored-by: Eugene Abramchuk <[email protected]>
* HZC-4718: Bump the Hazelcast version to 5.3.0

* HZC-4719: Add the 5.3.0 JDBC dependency
Following the publishing of the new artifact
Remove maven warnings and improve stability across all platforms
@devOpsHazelcast
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
12 out of 13 committers have signed the CLA.

✅ yunussandikci
✅ huseyinbabal
✅ nosan
✅ sdreger
✅ kubamarchwicki
✅ ivan-shevtsov
✅ mdumandag
✅ kprzygudzki
✅ pivovarit
✅ sergeyshakhov
✅ emreyigit
✅ abramche
❌ Umit UNAL


Umit UNAL seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.