<commit_before>
[[get-started]]
= Get Started

In this section we'll get you started using Hazelcast Jet. We'll show
you how to set up a Java project with the proper dependencies and a
quick Hello World example to verify your setup.

[[requirements]]
== Requirements

In the good tradition of Hazelcast products, Jet is distributed as a JAR
with no other dependencies. It requires JRE version 8 or higher to run.

== Use Hazelcast Jet as an Embedded Runtime

If you want to use Jet embedded into your existing distributed
application, all you need is a single Jet JAR on your classpath. These
are the Maven and Gradle snippets you can use:

[source,xml,subs="attributes+"]
----
<dependencies>
  <dependency>
    <groupId>com.hazelcast.jet</groupId>
    <artifactId>hazelcast-jet</artifactId>
    <version>{jet-version}</version>
  </dependency>
</dependencies>
----

[source,groovy,subs="attributes+"]
----
compile 'com.hazelcast.jet:hazelcast-jet:{jet-version}'
----

== Install Jet as a Standalone Cluster

If you are setting up Jet as a standalone cluster, download the
https://jet.hazelcast.org/download[distribution package] of Hazelcast Jet
and use the `bin/start-jet` command to start an instance.

The distribution package contains a ready-made JAR,
`examples/hello-world.jar`, that you can use to run a simple smoke
test. In the base directory of the Jet distribution, type:

[source,bash]
----
$ bin/jet-start &
... wait for Jet to start ...
$ bin/jet submit examples/hello-world.jar
----

If everything works out, you should see this in the log output:

[source]
----
INFO [HelloWorld] [main] - Top 10 random numbers observed so far in the stream are:<commit_msg>fixing command name (start-jet -> jet-start) (#2063)<commit_after>
[[get-started]]
= Get Started

In this section we'll get you started using Hazelcast Jet. We'll show
you how to set up a Java project with the proper dependencies and a
quick Hello World example to verify your setup.

[[requirements]]
== Requirements

In the good tradition of Hazelcast products, Jet is distributed as a JAR
with no other dependencies. It requires JRE version 8 or higher to run.

== Use Hazelcast Jet as an Embedded Runtime

If you want to use Jet embedded into your existing distributed
application, all you need is a single Jet JAR on your classpath. These
are the Maven and Gradle snippets you can use:

[source,xml,subs="attributes+"]
----
<dependencies>
  <dependency>
    <groupId>com.hazelcast.jet</groupId>
    <artifactId>hazelcast-jet</artifactId>
    <version>{jet-version}</version>
  </dependency>
</dependencies>
----

[source,groovy,subs="attributes+"]
----
compile 'com.hazelcast.jet:hazelcast-jet:{jet-version}'
----

== Install Jet as a Standalone Cluster

If you are setting up Jet as a standalone cluster, download the
https://jet.hazelcast.org/download[distribution package] of Hazelcast Jet
and use the `bin/jet-start` command to start an instance.

The distribution package contains a ready-made JAR,
`examples/hello-world.jar`, that you can use to run a simple smoke
test. In the base directory of the Jet distribution, type:

[source,bash]
----
$ bin/jet-start &
... wait for Jet to start ...
$ bin/jet submit examples/hello-world.jar
----

If everything works out, you should see this in the log output:

[source]
----
INFO [HelloWorld] [main] - Top 10 random numbers observed so far in the stream are:
{'fraction_non_alphanumeric': 0.10126956008266903, 'fraction_numerical': 0.002952465308532625, 'mean_word_length': 4.041666666666667, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 24, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7584195', 'n_tokens_mistral': 1028, 'n_tokens_neox': 975, 'n_words': 430}