Apache storm streamparse向本地主机提交问题
当我尝试向集群提交streamparse拓扑时(这里我使用localhost作为streamparse的conf.json文件中的nimbus和worker),我得到了这个错误Apache storm streamparse向本地主机提交问题,apache-storm,Apache Storm,当我尝试向集群提交streamparse拓扑时(这里我使用localhost作为streamparse的conf.json文件中的nimbus和worker),我得到了这个错误 (homeenv)nandaraj@nandaraj-ThinkCentre-Edge72:~/streamparse/wordcount$ sparse submit -n wordcount -e prod [localhost] Executing task '_create_or_update_virtualen
(homeenv)nandaraj@nandaraj-ThinkCentre-Edge72:~/streamparse/wordcount$ sparse submit -n wordcount -e prod
[localhost] Executing task '_create_or_update_virtualenv'
Fatal error: Needed to prompt for a connection or sudo password (host: localhost), but input would be ambiguous in parallel mode
Aborting.
Needed to prompt for a connection or sudo password (host: localhost), but input would be ambiguous in parallel mode
Fatal error: One or more hosts failed while executing task '_create_or_update_virtualenv'
Aborting.
One or more hosts failed while executing task '_create_or_update_virtualenv'
我遇到了和你一样的问题,我自己解决了。
可能您在config.json中配置的“用户”是“storm”或其他不在主机中的内容,因此更改为“root”。默认情况下,streamparse使用ssh进行通信,因此您需要在配置中提供用户和密码 您可以执行以下操作来解决此问题。 请检查config.json
{
"serializer": "json",
"topology_specs": "topologies/",
"virtualenv_specs": "virtualenvs/",
"envs": {
"prod": {
"user": "testuser",
"ssh_password": "password",
"nimbus": "localhost",
"workers": ["localhost"],
"log": {
"path": "/var/log",
"max_bytes": 1000000,
"backup_count": 10,
"level": "info"
},
"virtualenv_root": "/work/virtualenv"
}
}
}
“用户”和“ssh_密码”必须在操作系统中有效。
就我而言,我一直在乌班图这样做。
您可以像这样检查ssh服务
sudo service ssh status
如果ssh服务未启动,则必须首先启动它
sudo apt-get install openssh-server
sudo service ssh start