This section describes how to configure the server and client parameters of the Flume service (including the Flume and MonitorServer roles) after the cluster is installed to ensure proper running of the service.
This section applies to MRS 3.x or later clusters.
The cluster and Flume service have been installed.
cd ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/bin
The version 8.1.0.1 is used as an example. Replace it with the actual version number.
All user-defined passwords involved in this section must meet the following requirements:
cd ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/bin
./genPwFile.sh
cat password.property
For example, use Avro Source, File Channel, and HDFS Sink.
Parameter |
Description |
Example Value |
---|---|---|
ssl |
Specifies whether to enable the SSL authentication. (You are advised to enable this function to ensure security.)
|
true |
keystore |
Indicates the server certificate. |
${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/flume_sChat.jks |
keystore-password |
Specifies the password of the key library, which is the password required to obtain the keystore information. Enter the value of password obtained in 2.b. |
- |
truststore |
Indicates the SSL certificate trust list of the server. |
${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/flume_sChatt.jks |
truststore-password |
Specifies the trust list password, which is the password required to obtain the truststore information. Enter the value of password obtained in 2.b. |
- |
scp ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/flume_cChat.jks user@10.196.26.1:/opt/flume-client/fusionInsight-flume-1.9.0/conf/
scp ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/flume_cChatt.jks user@10.196.26.1:/opt/flume-client/fusionInsight-flume-1.9.0/conf/
When copying the client certificate, you need to enter the password of user user of the host (for example, 10.196.26.1) where the client resides.
cd opt/flume-client/fusionInsight-flume-1.9.0/bin
./genPwFile.sh
cat password.property
If the following error message is displayed, run the export JAVA_HOME=JDK path command.
JAVA_HOME is null in current user,please install the JDK and set the JAVA_HOME
For example, use SpoolDir Source, File Channel, and Avro Sink.
Parameter |
Description |
Example Value |
---|---|---|
ssl |
Indicates whether to enable the SSL authentication. (You are advised to enable this function to ensure security.)
|
true |
keystore |
Specified the client certificate. |
/opt/flume-client/fusionInsight-flume-1.9.0/conf/flume_cChat.jks |
keystore-password |
Specifies the password of the key library, which is the password required to obtain the keystore information. Enter the value of password obtained in 3.c. |
- |
truststore |
Indicates the SSL certificate trust list of the client. |
/opt/flume-client/fusionInsight-flume-1.9.0/conf/flume_cChatt.jks |
truststore-password |
Specifies the trust list password, which is the password required to obtain the truststore information. Enter the value of password obtained in 3.c. |
- |
Go to the ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/bin directory.
cd ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/bin
The generated certificate is saved in the ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf path. Where:
./genPwFile.sh
cat password.property
vi ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/service/application.properties
Parameter |
Description |
Example Value |
---|---|---|
ssl_need_kspasswd_decrypt_key |
Specifies whether to enable the user-defined key encryption and decryption function. (You are advised to enable this function to ensure security.)
|
true |
ssl_server_enable |
Indicates whether to enable the SSL authentication. (You are advised to enable this function to ensure security.)
|
true |
ssl_server_key_store |
Set this parameter based on the specific storage location. |
${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/ms_sChat.jks |
ssl_server_trust_key_store |
Set this parameter based on the specific storage location. |
${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/ms_sChatt.jks |
ssl_server_key_store_password |
Indicates the client certificate password. Set this parameter based on the actual situation of certificate creation (the plaintext key used to generate the certificate). Enter the value of password obtained in 5.a. |
- |
ssl_server_trust_key_store_password |
Specifies the trustkeystore password. Set this parameter based on the actual situation of certificate creation (the plaintext key used to generate the trust list). Enter the value of password obtained in 5.a. |
- |
ssl_need_client_auth |
Indicates whether to enable the client authentication. (You are advised to enable this function to ensure security.)
|
true |
scp ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/ms_cChat.jks user@10.196.26.1:/opt/flume-client/fusionInsight-flume-1.9.0/conf/
scp ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/ms_cChatt.jks user@10.196.26.1:/opt/flume-client/fusionInsight-flume-1.9.0/conf/
cd /opt/flume-client/fusionInsight-flume-1.9.0/bin
./genPwFile.sh
cat password.property
vi /opt/flume-client/fusionInsight-flume-1.9.0/flume/conf/service/application.properties
Parameter |
Description |
Example Value |
---|---|---|
ssl_need_kspasswd_decrypt_key |
Indicates whether to enable the user-defined key encryption and decryption function. (You are advised to enable this function to ensure security.)
|
true |
ssl_client_enable |
Indicates whether to enable the SSL authentication. (You are advised to enable this function to ensure security.)
|
true |
ssl_client_key_store |
Set this parameter based on the specific storage location. |
${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/ms_cChat.jks |
ssl_client_trust_key_store |
Set this parameter based on the specific storage location. |
${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Flume-1.9.0/flume/conf/ms_cChatt.jks |
ssl_client_key_store_password |
Specifies the keystore password. Set this parameter based on the actual situation of certificate creation (the plaintext key used to generate the certificate). Enter the value of password obtained in 6.c. |
- |
ssl_client_trust_key_store_password |
Specifies the trustkeystore password. Set this parameter based on the actual situation of certificate creation (the plaintext key used to generate the trust list). Enter the value of password obtained in 6.c. |
- |
ssl_need_client_auth |
Indicates whether to enable the client authentication. (You are advised to enable this function to ensure security.)
|
true |