Hosted data storage configuration |
SuperMap iPortal 11i(2023) 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 > Server Management > Hosting Server> Hosted Data Configuration to operate. The hosted data storage supports binary storage and relational 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 > Server Management > Hosting Server> Hosted Data Configuration, 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.
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 > Server Management > Hosting Server> Hosted Data Configuration, 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 > Server Management > Hosting Server> Hosted Data Configuration, 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 HBase, 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 > Server Management > Hosting Server> Hosted Data Configuration, 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.