Unexpected response '404' downloading spring-cloud-dataflow-shell-2.11.7.jar
search cancel

Unexpected response '404' downloading spring-cloud-dataflow-shell-2.11.7.jar

book

Article ID: 406089

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

Using the Spring Cloud Data Flow for Cloud Foundry CLI plugin

Executing cf dataflow-shell <MY_INSTANCE> returns the an error.

Unexpected response '404' downloading from 'https://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-dataflow-shell/2.11.7/spring-cloud-dataflow-shell-2.11.7.jar'

Environment

Spring Cloud Data Flow for Cloud Foundry v1.14.5+

Tanzu Platform for Cloud Foundry

 

Resolution

The cf CLI plugin spring-cloud-dataflow-for-pcf-cli-plugin (cf dataflow-shell) has been archived since March 2022. It has been deprecated and no longer supported. 

 

The only way is to use the shell manually. Following are the steps.

1.Download the jar. Is this example we will use v2.11.7

The version 2.11.7 of the spring-cloud-dataflow-shell JAR is available in the enterprise repository packages.broadcom.com/.../2.11.7/

Please follow the https://techdocs.broadcom.com/us/en/vmware-tanzu/spring/tanzu-spring/commercial/spring-tanzu/guide-artifact-repository-administrators.html#access-enterprise-subscription instructions for the username and token. 

2. Get the dataflow server's FQDN (DATAFLOW_FQDN)

Execute:
     cf service <MY_DATAFLOW_INSTANCE>

Example:


$ cf service my-data-flow

Service instance: my-data-flow
Showing info of service data-flow in org myorg / space dev as user...

name:            my-data-flow
service:         p-dataflow
bound apps:
tags:
plan:            standard
description:     Deploys Spring Cloud Data Flow servers to orchestrate data pipelines
documentation:
dashboard:       https://p-dataflow.apps.example.com/instances/12345678-abcd-abcd-abcd-1234567890ab/dashboard

Showing status of last operation from service data-flow...

status:    create succeeded
message:   Created
started:   2018-05-17T14:43:38Z
updated:   2018-05-17T14:49:43Z

 

DATAFLOW_FQDN is the dashboard's domain name (URL minus the path following the domain)

 

3. From the directory containing the shell jar file, run the dataflow-shell with the command

java \
    -jar spring-cloud-dataflow-shell-2.11.7.jar \
    --dataflow.skip-ssl-validation=true \
    --dataflow.uri="<DATAFLOW_FQDN>" \
    --dataflow.credentials-provider-command="cf oauth-token" 

 

Reference:
https://techdocs.broadcom.com/us/en/vmware-tanzu/spring/spring-cloud-data-flow-for-cloud-foundry/1-14/scdf-tanzu/using-the-shell.html