This page provides instructions on how to deploy a local cluster (on one machine, but in separate processes) for Fluss.
Fluss runs on all UNIX-like environments, e.g. Linux, Mac OS X. Before you start to set up the system, make sure you have the following software installed on your test machine:
If your cluster does not fulfill these software requirements you will need to install/upgrade it.
JAVA_HOME ConfigurationFluss requires the JAVA_HOME environment variable to be set on your test machine and point to the directory of your Java installation.
Go to the downloads page and download the latest Fluss release. Make sure to pick the Fluss package matching your Java version. After downloading the latest release, extract it:
tar -xzf fluss-$FLUSS_VERSION$-bin.tgz cd fluss-$FLUSS_VERSION$/
You can start Fluss local cluster by running the following command:
./bin/local-cluster.sh start
After that, the Fluss local cluster is started.
After Fluss local cluster is started, you can use Fluss Client (Currently, only support Flink SQL Client) to interact with Fluss. The following subsections will show you how to use Flink SQL Client to interact with Fluss.
Using Flink SQL Client to interact with Fluss.
You can start a Flink standalone cluster refer to Flink Environment Preparation
Note: Make sure the Fluss connector jar already has copied to the lib directory of your Flink home.
In Flink SQL client, a catalog is created and named by executing the following query:
CREATE CATALOG fluss_catalog WITH ( 'type' = 'fluss', 'bootstrap.servers' = 'localhost:9123' );
After the catalog is created, you can use Flink SQL Client to do more with Fluss, for example, create a table, insert data, query data, etc. More details please refer to Flink Getting Started