来自 CLI 的 Streamsets 版本
Streamsets version from CLI
我目前正在编写代码,通过 CLI 在本地安装流集扩展。我想写的检查之一是确保扩展适用于本地安装的流集版本。
当我尝试从 CLI 查询版本时,这就是我 运行 进入的内容。
:) streamsets --version
Invalid sub-command
streamsets <SUB_COMMAND> [<SUB_COMMAND_ARGUMENTS>]
Sub-commands:
dc: Starts the Data Collector
create-dc: Creates new instance of Data Collector
cli: Data Collector CLI
jks-cs: Java Keystore Credential Store
stagelibs: Data Collector Stage library installer
show-vault-id: Shows the user-id to authorize in Vault
setup-mapr: Enables the MapR stage library for the detected
MapR installation.
:( streamsets cli --version
Found unexpected parameters: [--version]
) streamsets dc --version
Invalid option(s)
streamsets dc <OPTIONS>
Options:
-verbose : prints out Data Collector detailed environment settings
-exec : starts Data Collector JVM within the same process of the script
-skipenvsourcing : skips the sourcing of the libexec/sdc-env.sh file
除了遍历文件系统并找到 VERSION
文件之外,我如何确定安装了哪个版本的流集?
您可以使用 CLI 的 ping
命令获取数据收集器的信息,包括版本:
$ streamsets cli -U http://localhost:18630 ping
{
"info" : {
"built.date" : "2018-06-13T23:02Z",
"version" : "3.4.0-SNAPSHOT",
"built.repo.sha" : "9f803ed0f5167bbb91af2493b20c9a20b566106f",
"source.md5.checksum" : "1d59dbb2281a974f4b192a28efe7624c",
"built.by" : "pat"
},
"version" : "3.4.0-SNAPSHOT",
"builtDate" : "2018-06-13T23:02Z",
"builtBy" : "pat",
"builtRepoSha" : "9f803ed0f5167bbb91af2493b20c9a20b566106f",
"sourceMd5Checksum" : "1d59dbb2281a974f4b192a28efe7624c"
}
system info
是 ping
的同义词
这(尚未)记录在案。我将打开一个 Jira 文档来执行此操作。
我目前正在编写代码,通过 CLI 在本地安装流集扩展。我想写的检查之一是确保扩展适用于本地安装的流集版本。
当我尝试从 CLI 查询版本时,这就是我 运行 进入的内容。
:) streamsets --version
Invalid sub-command
streamsets <SUB_COMMAND> [<SUB_COMMAND_ARGUMENTS>]
Sub-commands:
dc: Starts the Data Collector
create-dc: Creates new instance of Data Collector
cli: Data Collector CLI
jks-cs: Java Keystore Credential Store
stagelibs: Data Collector Stage library installer
show-vault-id: Shows the user-id to authorize in Vault
setup-mapr: Enables the MapR stage library for the detected
MapR installation.
:( streamsets cli --version
Found unexpected parameters: [--version]
) streamsets dc --version
Invalid option(s)
streamsets dc <OPTIONS>
Options:
-verbose : prints out Data Collector detailed environment settings
-exec : starts Data Collector JVM within the same process of the script
-skipenvsourcing : skips the sourcing of the libexec/sdc-env.sh file
除了遍历文件系统并找到 VERSION
文件之外,我如何确定安装了哪个版本的流集?
您可以使用 CLI 的 ping
命令获取数据收集器的信息,包括版本:
$ streamsets cli -U http://localhost:18630 ping
{
"info" : {
"built.date" : "2018-06-13T23:02Z",
"version" : "3.4.0-SNAPSHOT",
"built.repo.sha" : "9f803ed0f5167bbb91af2493b20c9a20b566106f",
"source.md5.checksum" : "1d59dbb2281a974f4b192a28efe7624c",
"built.by" : "pat"
},
"version" : "3.4.0-SNAPSHOT",
"builtDate" : "2018-06-13T23:02Z",
"builtBy" : "pat",
"builtRepoSha" : "9f803ed0f5167bbb91af2493b20c9a20b566106f",
"sourceMd5Checksum" : "1d59dbb2281a974f4b192a28efe7624c"
}
system info
是 ping
这(尚未)记录在案。我将打开一个 Jira 文档来执行此操作。