Documentation

Documentation

    ›Getting started

    Overview

    • About Lentiq
    • Lentiq introduction
    • What is a Data Pool?
    • What is a Project?
    • Lentiq Architecture

    Getting started

    • Deploying on GCP
    • Deploying on AWS
    • Creating a data pool
    • Upload data to Lentiq
    • Deploy applications and clusters
    • How to connect a notebook to Spark?
    • Publishing notebooks

    User Guide

    • Data Management
    • Applications
    • Sharing data between data pools
    • Glossary

    Upload data to Lentiq via SFTP

    Lentiq has multiple data ingestion options tailored to different data volumes.

    1. Ingest your smaller files using our file browser interface upload or drag and drop options, allowing your to ingest up to 5 GB of data.
    2. Ingest bigger files using a simple cURL command from your Unix-based terminal:
    curl -X PUT -H "Content-Type: multipart/form-data" -H "X-DestinationPath: <enter-your-destination-path>" -H "Authorization: APIKEY <insert-your-api-key>" -F "file=@authentication.log" https://api.lentiq.com/api/v1/datamanagement/obj/upload/b/<enter-your-data-pool-name>.<enter-your-project-name>
    
    • <enter-your-destination-path> - example /destination.csv
    • <insert-your-api-key> - your API key can be retrieved from the User settings > API credentials menu.
    • <enter-your-data-pool-name> - the name of your data pool.
    • <enter-your-project-name> - the name of your project.
    1. Ingest bigger files using a SFTP client through our SFTP Proxy application.

    Prerequisites

    You need to have a data pool and a project up and running on Lentiq in order to create a SFTP application, and you need to have a project quota that can allow you to add a new application.

    We recommend to keep your SFTP Proxy application up and running only for the timeframe during which you upload your data.

    Creating a new SFTP Proxy application

    1. Go to the Application view.

    2. Click SFTP Proxy in the application list on the left. Click the SFTP Proxy application icon

    3. Configure the name of the application, the CPU and RAM resources that will be allocated to it. SFTP Proxy application resources

    4. After the SFTP Proxy application has been created, check the SFTP Proxy connection URL from the SFTP Proxy application widget. SFTP Proxy application connectivity

    5. Make sure your IP has been added to the data pool's firewall. You can check this in the Data Pool settings, under the Firewall tab. SFTP Proxy firewall

    Firewall rule

    Setup your local SFTP client and upload the data

    In order to connect to the remote SFTP Proxy application you need to have a SFTP client configured. The setup is different depending on the local operating system.

    MacOS / Unix based operating systems

    On MacOS/Unix based operating systems you can use the Terminal application or any other SFTP client. You should have SFTP installed by default. If you don't, make sure you install it before proceeding. It is usually embedded in the SSH/OPENSSH operating system packages.

    Once you have the client installed you can use your Lentiq user account email address and SFTP Proxy connection string to connect your local SFTP client to the remote SFTP Proxy and begin uploading your data.

    1. Create the initial SFTP connection SFTP connection

    2. Enter the API key. You can find your Lentiq API key in the user settings menu. User settings menu

    3. Copy your API key and paste it into the terminal: API credentials

    4. Once connected to the SFTP Proxy you can explore the commands exposed by the service. SFTP Proxy commands

    5. Upload a local file to the remote object storage system. SFTP upload

    6. Check to see if the file was uploaded successfully. SFTP upload check

    7. You can also see the file in the Lentiq file browser. Lentiq file browser

    Windows

    On Windows you can use WinSCP or any other SFTP client. Make sure a client is installed before proceeding.

    Once you have the client installed you can use your Lentiq user account email address and SFTP Proxy connection string to connect your local SFTP client to the remote SFTP Proxy and begin uploading your data.

    1. Create the initial SFTP connection. SFTP connection

    2. Enter the API key. You can find the API key in the user settings menu. User settings menu

    3. Copy your API key and paste it into the SFTP client. API credentials

    4. Upload a local file to the remote object storage system.

    5. You can find the uploaded file using the Lentiq File Browser. Lentiq file browser

    ← Creating a data poolDeploy applications and clusters →
    • Prerequisites
    • Creating a new SFTP Proxy application
    • Setup your local SFTP client and upload the data
      • MacOS / Unix based operating systems
      • Windows
    Copyright © 2019 Lentiq