HOW TO

Register a big data file share using ArcGIS API for Python

Last Published: April 25, 2020

Summary

ArcGIS Enterprise can be used alongside ArcGIS GeoAnalytics Server to process and analyze big data. With ArcGIS Enterprise, a big data file share can be created in a portal to reference feature data on an active ArcGIS GeoAnalytics Server. It provides a distributed computing framework that powers a collection of analysis tools for analyzing large volumes of data.

Therefore, the big data file share can be registered to connect with ArcGIS Server and Portal for ArcGIS to provide the server with a list of locations where the data is stored. Refer to ArcGIS Server: Register your data with ArcGIS Server using Server Manager for steps to register a big data file share.

It is also possible to register a big data file share using Python. With the add_bigdata() function, the script can be edited to register different portals with different big data file shares available.

Procedure

The following steps describe how to register a big data file share using ArcGIS API for Python:

  1. Import the necessary modules.
from arcgis.gis import GIS
from arcgis.gis.server import Server
  1. Create a connection to ArcGIS Server and Portal for ArcGIS.
server_url = 'https://<machine>.<domain>.com:6443/arcgis/admin'
gis = GIS('https://test.domain.com/portal', '<username>', '<password>')
ga_server = Server(server_url, gis)
  1. Create the DataStoreManager object.
ga_server.datastores
  1. Specify the name and path for the big data file share to be added.
name = 'Test'
path = r'\\\\TEST\\SharedData\\BigDataExample'
ga_server.datastores.add_bigdata(name, path, 'fileShare')
The following is a sample of the full script.
from arcgis.gis import GIS
from arcgis.gis.server import Server

server_url = 'https://test.esri.com:6443/arcgis/admin'
gis = GIS('https://test.domain.com/portal', 'portaladmin', 'portal.admin')
ga_server = Server(server_url, gis)

ga_server.datastores
name = 'Test'
path = r'\\\\TEST\\SharedData\\BigDataExample'
ga_server.datastores.add_bigdata(name, path, 'fileShare')

Article ID: 000019301

Software:
  • ArcGIS Server
  • ArcGIS API for Python 1 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options