From 12bf1ee5f54280651e514f93586051050b36edf5 Mon Sep 17 00:00:00 2001 From: Fabio Buso Date: Fri, 22 Jan 2021 12:28:37 +0100 Subject: [PATCH] [HOPSWORKS-2197] Add ADLS connector support (#221) --- .../logicalclocks/hsfs/StorageConnector.java | 44 +++++- .../hsfs/StorageConnectorType.java | 3 +- .../logicalclocks/hsfs/TrainingDataset.java | 11 +- .../hsfs/engine/SparkEngine.java | 110 ++++++++------ .../hsfs/engine/TrainingDatasetEngine.java | 4 - .../com/logicalclocks/hsfs/engine/Utils.java | 12 ++ .../logicalclocks/hsfs/metadata/Option.java | 34 +++++ python/hsfs/engine/spark.py | 22 ++- python/hsfs/storage_connector.py | 139 +++++++++++++++--- python/hsfs/training_dataset.py | 11 +- 10 files changed, 292 insertions(+), 98 deletions(-) create mode 100644 java/src/main/java/com/logicalclocks/hsfs/metadata/Option.java diff --git a/java/src/main/java/com/logicalclocks/hsfs/StorageConnector.java b/java/src/main/java/com/logicalclocks/hsfs/StorageConnector.java index 467811035c..232ee2b139 100644 --- a/java/src/main/java/com/logicalclocks/hsfs/StorageConnector.java +++ b/java/src/main/java/com/logicalclocks/hsfs/StorageConnector.java @@ -17,6 +17,7 @@ package com.logicalclocks.hsfs; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.logicalclocks.hsfs.metadata.Option; import com.logicalclocks.hsfs.util.Constants; import lombok.AllArgsConstructor; import lombok.Getter; @@ -28,6 +29,7 @@ import java.util.Arrays; import java.util.Date; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -120,18 +122,48 @@ public class StorageConnector { @Setter private String arguments; + @Getter + @Setter + private Integer generation; + + @Getter + @Setter + private String directoryId; + + @Getter + @Setter + private String applicationId; + + @Getter + @Setter + private String serviceCredentials; + + @Getter + @Setter + private String accountName; + + @Getter + @Setter + private String containerName; + + @Getter + @Setter + private List