From a7755e0387ce87c1af6a8a3bf15dd9fd7fc591dc Mon Sep 17 00:00:00 2001 From: Bharath Sankaranarayan Date: Wed, 20 Feb 2019 15:31:50 -0800 Subject: [PATCH] Updated MLeap Sample --- .../app-deploy/{hello-mleap => mleap}/README.md | 15 +++++++++------ .../app-deploy/{hello-mleap => mleap}/frame.json | 0 .../{hello-mleap => mleap}/run-spec.yaml | 2 +- .../app-deploy/{hello-mleap => mleap}/spec.yaml | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) rename samples/features/sql-big-data-cluster/app-deploy/{hello-mleap => mleap}/README.md (53%) rename samples/features/sql-big-data-cluster/app-deploy/{hello-mleap => mleap}/frame.json (100%) rename samples/features/sql-big-data-cluster/app-deploy/{hello-mleap => mleap}/run-spec.yaml (64%) rename samples/features/sql-big-data-cluster/app-deploy/{hello-mleap => mleap}/spec.yaml (68%) diff --git a/samples/features/sql-big-data-cluster/app-deploy/hello-mleap/README.md b/samples/features/sql-big-data-cluster/app-deploy/mleap/README.md similarity index 53% rename from samples/features/sql-big-data-cluster/app-deploy/hello-mleap/README.md rename to samples/features/sql-big-data-cluster/app-deploy/mleap/README.md index fef5b7a0..7adbf88f 100644 --- a/samples/features/sql-big-data-cluster/app-deploy/hello-mleap/README.md +++ b/samples/features/sql-big-data-cluster/app-deploy/mleap/README.md @@ -1,19 +1,22 @@ -# Application `hello-mleap/v1` +# The README will help you deploy a mleap application and consume the same. + +# Application `mleap/v1` + -> Generated by: `mssqlctl` ## Deploy Application ```bash > mssqlctl login --entrypoint http://host:port --u --p -> mssqlctl app create --spec ./hello-mleap +> mssqlctl app create --spec ./mleap ``` ## Consume Application +# The following command will work if you use the sample ```bash -> mssqlctl app run --name hello-mleap --version v1 --inputs leap-frame=@ +> mssqlctl app run --name mleap --version v1 --inputs mleap-frame=@frame.json ``` ## Application `spec.yaml` @@ -22,7 +25,7 @@ All your apps should be specified in a YAML file like this - it tells the CLI what to deploy onto your cluster: ```yaml -name: hello-mleap +name: mleap version: v1 runtime: Mleap bundleFileName: model.lr.zip @@ -30,5 +33,5 @@ replicas: 2 poolsize: 2 ``` -You can use this generated `/hello-mleap/spec.yaml` as a starting point to modify the +You can use this generated `/mleap/spec.yaml` as a starting point to modify the application as you see fit. diff --git a/samples/features/sql-big-data-cluster/app-deploy/hello-mleap/frame.json b/samples/features/sql-big-data-cluster/app-deploy/mleap/frame.json similarity index 100% rename from samples/features/sql-big-data-cluster/app-deploy/hello-mleap/frame.json rename to samples/features/sql-big-data-cluster/app-deploy/mleap/frame.json diff --git a/samples/features/sql-big-data-cluster/app-deploy/hello-mleap/run-spec.yaml b/samples/features/sql-big-data-cluster/app-deploy/mleap/run-spec.yaml similarity index 64% rename from samples/features/sql-big-data-cluster/app-deploy/hello-mleap/run-spec.yaml rename to samples/features/sql-big-data-cluster/app-deploy/mleap/run-spec.yaml index 9263fdf6..0aefeec4 100644 --- a/samples/features/sql-big-data-cluster/app-deploy/hello-mleap/run-spec.yaml +++ b/samples/features/sql-big-data-cluster/app-deploy/mleap/run-spec.yaml @@ -1,3 +1,3 @@ -name: hello-mleap +name: mleap version: v1 inputs: ./frame.json \ No newline at end of file diff --git a/samples/features/sql-big-data-cluster/app-deploy/hello-mleap/spec.yaml b/samples/features/sql-big-data-cluster/app-deploy/mleap/spec.yaml similarity index 68% rename from samples/features/sql-big-data-cluster/app-deploy/hello-mleap/spec.yaml rename to samples/features/sql-big-data-cluster/app-deploy/mleap/spec.yaml index be88007e..9b27bbe6 100644 --- a/samples/features/sql-big-data-cluster/app-deploy/hello-mleap/spec.yaml +++ b/samples/features/sql-big-data-cluster/app-deploy/mleap/spec.yaml @@ -1,5 +1,5 @@ -name: hello-mleap1 -version: v1 +name: mleap +version: v2 runtime: Mleap bundleFileName: model.lr.zip replicas: 2