Ask Your Question
1

Python SDK issue: cannot set stage name and description

asked 2019-05-23 16:07:29 -0500

Jmbertoncelli gravatar image

updated 2019-05-24 00:53:50 -0500

metadaddy gravatar image

Hello, I cannot find how to set a stage name and description using the Python SDK.

Example would be welcome.

Thank you

JM

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2019-07-03 14:22:07 -0500

Dima gravatar image

As of the 3.5.0 release of the StreamSets SDK for Python, you should be able to

mystage.description = 'Some other string'
edit flag offensive delete link more
0

answered 2019-05-24 00:53:37 -0500

metadaddy gravatar image

updated 2019-07-03 14:24:07 -0500

You can set them like this:

mystage = pipeline_builder.add_stage('Some Stage')

mystage.label = 'Some String'
mystage._data['uiInfo']['description'] = 'Some other string'

The latter is more friendly in the 3.5.0 release of the StreamSets SDK for Python. See @Dima's answer.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-05-23 16:07:29 -0500

Seen: 9,847 times

Last updated: Jul 03