vmware-archive / sre-test

Greenplum - Open Source SRE test project.
2 stars 0 forks source link

Update minio server configuration properties in minio-site.xml #275

Open venkata-cg opened 2 years ago

venkata-cg commented 2 years ago

Ref:https://gpdb.docs.pivotal.io/pxf/6-2/using/s3_objstore_cfg.html#minio_cfg Administering PXF->Configuring PXF->Configuring Connectors to Minio and S3 Object Stores->Minio Server Configuration

Here the document lists the server configuration properties to be replaced in the template configuration file for Minio $PXF_HOME/templates/minio-site.xml. The table needs to be updated with the below details.

The Minio account access key ID replace with The Minio account Root user (MINIO_ROOT_USER) The secret key associated with the Minio access key ID replace with The Minio Root password (MINIO_ROOT_PASSWORD)

The template file(minio-site.xml) also needs to be updated.

<property>
         <name>fs.s3a.access.key</name>
         <value>YOUR_AWS_ACCESS_KEY_ID</value>
     </property>
     <property>
         <name>fs.s3a.secret.key</name>
         <value>YOUR_AWS_SECRET_ACCESS_KEY</value>
     </property>

The property values YOUR_AWS_ACCESS_KEY_ID and YOUR_AWS_SECRET_ACCESS_KEY needs to be replaced by MINIO_ROOT_USER and MINIO_ROOT_PASSWORD.

when starting MinIO server we get the below message indicating the correct parameter names to be used.

Dec 30 05:50:29 <minio_ip> systemd[1]: Starting Minio...
Dec 30 05:50:29 <minio_ip>systemd[1]: Started Minio.
Dec 30 05:50:44 <minio_ip> minio[6857]: WARNING: MINIO_ACCESS_KEY and MINIO_SECRET_KEY are deprecated.
Dec 30 05:50:44 <minio_ip> minio[6857]: Please use MINIO_ROOT_USER and MINIO_ROOT_PASSWORD

[centos@ip-192-168-1-10 bin]$ ./minio --version minio version RELEASE.2021-12-20T22-07-16Z

lisakowen commented 2 years ago

doc update addressed in https://github.com/greenplum-db/pxf/pull/791