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

Setup fixes #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,53 @@ brew install apache-flink
```

#### Java V8
Check if you have `Java v8` installed:
Check if you have `Java v8` installed (Java 18 was
tested and is not compatible with Apache Flink)

```bash
java --version
```

Some Java versions use `java -version` to query
the version of the runtime environment.

If not, then you can install it according to this [tutorial](https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html).

If you already have a Java environment installed,
but in the wrong version, then you need to switch
the default RTE used. First check all current Java
environments installed by running:

```
/usr/libexec/java_home -V
```

Here you should have a Java version `1.8` or `8`
installed. Go into your shell config file
(`.zshrc`/ `.bashrc`) and set the global
`JAVA_HOME` environment variable by adding this
line into the config file.

```
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
```

Exit the file and source the changes `source
.zshrc` (in the case of `zsh` as default shell).
Now running `java --version` (or `java -version`
should return the version specified in the config
file.

#### Python >3.7
Again, check if you have python installed with at least version 3.7:
#### Python==3.7
Again, check if you have python installed with at
version 3.7 (both lower and higher version might
not be compatible) It is recommended to create
a virtual env with this Python version. This is an
example in conda.

```bash
python --version
conda env create python=3.7
pip install -r requirements.txt
```

If not, you can follow the official [docs](https://www.python.org/downloads/) to install it.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pyflink==1.0
redis==4.1.2
redis-server==6.0.9
scikit-learn==1.0.2
numpy==1.22.2
numpy==1.19.5