Hosted data storage configuration |
SuperMap iPortal 11i(2024) provides the administrator the visual hosted data storage configuration page. To configure the hosted data storage, log in to the portal home page, click Management > Site Configuration > Data Storage to operate. The hosted data storage supports binary storage, relational storage and GPA shared storage. This section below will introduce in detail how to configure the hosted data storage.
Binary storage methods include file storage (FILE), FTP storage, and SuperMap iServer DataStore storage. File storage (FILE) is used by default.
The data uploaded to the iPortal uses file storage (FILE) by default, and the default storage path is: [SuperMap iPortal installation directory]/webapps/iportal/WEB-INF/iportaldata/uploadeddata folder. You can modify the storage path as needed, or use the default storage path directly. The supported hosting server version for file storage is SuperMap iServer 7C SP1 and above. The following will detail how to modify the data storage path:
Log in to the portal home page as an iPortal administrator, click Management > Site Configuration > Data Storage, and set the file storage path in the "Binary Storage Configuration" tab;
Storage: Select FILE;
File Path: Fill in the storage path, for example: D:/uploadeddata;
After completing the above configuration, you can click the "Validate" button to verify it. If the configuration is valid, the system will give a prompt message like: "The settings are valid and you can connect to the data storage server". After the validation, click the "Save" button to finish.
When iPortal and iServer are configured with shared storage, it supports publishing services directly with data based on shared storage, without the intermediate process of publishing data,
Configure the shared storage directory, for example: /path/to/workDir, please refer to: Shared directory configuration;
Configure the iportal-storage.xml configuration file in the ([SuperMap iPortal installation directory]\webapps\iportal\WEB-INF) folder:
<application>
<storage>
<fileClass>FILE</fileClass>
<basePath>/path/to/workDir</basePath>
</storage>
</application>
Configure the iserver-system.xml configuration file in the ([SuperMap iServer installation directory]\webapps\iserver\WEB-INF) folder:
<fileManagerWorkDir>/path/to/workDir</fileManagerWorkDir>
After the configuration is complete, uploading data to publish as a service in iPortal can increase the speed of service publishing.
SuperMap iPortal supports hosted data sharing through FTP server. The data files uploaded to the portal are supported to store in the FTP server, to realize the data sharing between iPortal and multiple iServer server nodes, and be obtained by designated hosting iServer for service publishing.
If you don't have an available FTP server, then you need to set up one as shared storage for the hosted data, which should have large storage, and the iPortal and iServer nodes can connect to it.
Here we take win7 system as an example to introduce how to build an FTP server:
After setting up the FTP server, you also need to perform the following FTP storage configuration in iPortal:
Log in to the portal homepage as an iPortal administrator, click Management > Site Configuration > Data Storage, and set the FTP hosted data storage configuration in the "Binary Storage Configuration" tab;
After completing the above configuration, you can click the "Validate" button to verify it. If the configuration is valid, the system will give a prompt message like: "The settings are valid and you can connect to the data storage server". After the validation, click the "Save" button to finish.
Note: If you're using SuperMap iPortal 8C SP2, and the specified hosting server is SuperMap iServer 8C or 8C SP1, after completing the above FTP storage configuration, you also need to perform the compatibility configuration:
Manually modify the configuration file iportal-storage.xml of the hosting iServer used to publish services, which locates in the [SuperMap iServer installation directory]/webapps/iserver/WEB-INF directory. Comment off or delete the item for setting storage disk root directory shown as the following code:
<bean id="storage" class="com.supermap.iportal.web.utils.filestorage.FileStorageImpl">
<property name="basePath" value="./WEB-INF/iportaldata/uploadeddata"></property>
</bean>
Open the comment of the FTP storage configuration information, set the FTP address, port, and access account and password, which must be consistent with the configuration information on the "Hosted Data Storage Configuration" page. For example:
<bean id="storage" class="com.supermap.iportal.web.utils.filestorage.FTPStorageImpl">
<property name="ftpServerHost" value="192.168.120.144"></property>
<property name="ftpServerPort" value="21"></property>
<property name="ftpServerAccount" value="icloud"></property>
<property name="ftpServerPassword" value="icloud"></property>
</bean>
The data uploaded to the iPortal supports storing in the iServer DataStore in binary format. iServer DataStore is an application that needs to be associated with SuperMap iServer. Therefore, before enabling DataStore storage, please make sure that you have configured the iServer server associated with the DataStore. For the specific configuration process of iServer DataStore, please refer to: DataStore Configuration and Management. After the iServer DataStore is configured and started successfully, the following configuration needs to be done in iPortal.
Log in to the portal homepage as an iPortal administrator, click Management > Site Configuration > Data Storage, and set the DataStore hosted data storage configuration in the "Binary Storage Configuration" tab;
Storage Method: select DATASTORE;
iServer address: Fill in the service address of the iServer associated with the DataStore, for example: http://{ip}:8090/iserver;
iServer Manager Account: Fill in the administrator username of the iServer that is associated with the DataStore;
iServer Manager Password: Fill in the administrator password of the iServer that is associated with the DataStore.
After completing the above configuration, you can click the "Validate" button to verify it. If the configuration is valid, the system will give a prompt message like: "The settings are valid and you can connect to the data storage server". After the validation, click the "Save" button to finish.
SuperMap iPortal 9D (2019) and later support relational storage. After the relational storage is enabled, the uploaded Excel, CSV, GeoJSON and other data can be published as services. For the service types that can be published, please refer to the data. And at this time, the data will be stored in relational storage preferentially. But note that, before enabling relational storage, please make sure that your hosting iServer has been associated with the iServer DataStore (you need to check the “relational data” option when associating), or you have registered PostgreSQL, PostGIS, HDFS and other spatial databases in the hosting iServer(you need to check the "Allow Editing" option when registering).
The following will introduce in detail how to configure relational storage in iPortal:
Log in to the portal homepage as an iPortal administrator, click Management > Site Configuration > Data Storage, and set the relational storage configuration in the "Relational Storage Configuration" tab;
Is cloud native: Whether the iServer that provides relational data storage capability is a cloud native environment.
iServer address: Fill in the service address of the iServer associated with the DataStore, for example: http://{ip}:8090/iserver;
iServer Manager Account: Fill in the administrator username of the iServer that provides relational data storage capabilities;
iServer Manager Password: Fill in the administrator password of the iServer that provides relational data storage capabilities.
After completing the above configuration, you can click the "Validate" button to verify it. If the configuration is valid, the system will give a prompt message like: "The settings are valid and you can connect to the data storage server". After the validation, click the "Save" button to finish.
After configuring the hosted data storage, the users of iPortal can upload data on the "My Data" page. If the uploaded data needs to be published as services, you also need to specify one or more GIS servers added in iPortal as hosting servers on the "Add server" page.
Note: After you change the file storage path, FTP server, or DataStore storage, the uploaded data will not appear in the portal. Please carefully change the file storage path, FTP server, and DataStore storage.
SuperMap iPortal 11i(2023) and above supports GPA shared storage. You can configure a shared storage for the portal and the hosting server. Both the portal and the hosting server can access the storage, and the data used for processing automation services will be stored here.
The following will introduce in detail how to configure GPA shared storage in iPortal:
Log in to the portal home page as an iPortal administrator, click Administration > Site Configuration > Data Storage, enter the Data Storage page, and then select "GPA Shared Storage" in the Click "GPA Shared Storage" tab to configure GPA shared storage;
"Hosting Server": Select the registered server.
"Hosting Server Shared Storage Path": Specify a directory of the computer where the hosting server is located to be used for storing data used for processing automation services. This path and the portal shared storage path must point to the same directory;
"Portal Shared Storage Path": Specify a directory on the computer where the iPortal is located to store data used by the Processing Automation service. This path must point to the same directory as the shared storage path of the hosting server.
After completing the above configurations, click the "Save" button, if the configuration is valid, the system will give you a prompt message: "The operation is successful".
After the GPA shared storage is configured, when you set the parameters for the tools in the model on the Processing Automation Modeling screen, you select the file locally or from the portal, click Execute, and the data is stored in the shared storage path between the portal and the server. If you click Execute without configuring GPA shared storage, the execution log will indicate that "No data shared directory is configured" and the model execution fails. Meanwhile, you can modify the GPA shared storage configuration as needed during the iPortal process, and then click "Save". Click "Delete" to clear the current configuration.
SuperMap iPortal 11i(2024) supports data meta information storage. You can configure the POSTGIS database to store the meta information of data.
The following will introduce in detail how to configure data meta information storage in iPortal:
Log in to the portal home page as an iPortal administrator, click Administration > Site Configuration > Data Storage, enter the Data Storage page, and configure the data meta information storage in the Data Meta Information storage tab;
Server Address: fill in the service address of the database in the format of 1. IP address, such as: 192.168.1.1, 2. host address, such as: supermap.com. suggest you add an empty database, if you use a non-empty database, you should confirm that you can correctly create the data source;
Port: fill in the port of the database;
Database name: fill in the name of the database that will be used;
Username: the username of the owner of this database ;
Password: the password of the database owner;
Schema: the default is public, need to create the database set with the same schema name.
After completing the above configurations, click the "Save" button, if the configuration is valid, the system will give you a prompt message: "The operation is successful".