Setting a Base File Store Path for File Uploads

By default, if a user creates a file-based data source and uploads the source file (such as a CSV, XML, or JSON file) to Anzo from their computer, the file is copied to the server's data directory, <install_path>/Anzo/Server/data/userUploads. When the file is in the server installation path and not the shared file store it is not accessible by applications like AnzoGraph or Spark. In addition, other users cannot publish pipelines for that data source because they typically do not have access to the file. Source files that are routinely updated and re-ingested should be hosted on the shared file store.

Follow the instructions below to configure Anzo to copy uploaded files to a location on the file store.

  1. If necessary, create a directory on the shared file store that you can designate as the base location for saving uploaded files.
  2. In the Administration application, expand the Servers menu and click Advanced Configuration. Click I understand and accept the risk.
  3. Search for the Anzo File Upload bundle and view its details.
  4. Click the Services tab and expand the com.cambridgesemantics.anzo.fileupload.FileUploadServlet service.
  5. Click Add Property next to the service name. Anzo opens the Add Property dialog box.

  6. In the Name field, specify com.cambridgesemantics.fileupload.baseUploadPath, and then set the Value to the location on the file store where uploaded files should be saved. The base directory that you specify must exist on the file store. For example:

  7. Click Save to add the new property. And restart Anzo to apply the configuration changes.

When the base upload path is configured, source files that are uploaded from a user's computer will be saved to the location that you specified.

Related Topics