我在部署 juju hadoop charm 时遇到了问题。
juju bootstrap 运行良好,但是当我使用时juju deploy hadoop hadoop-master
,出现安装错误。
juju 状态给我:
machines:
0:
agent-state: running
dns-name: localhost
instance-id: local
instance-state: running
services:
hadoop-master:
charm: cs:precise/hadoop-5
relations: {}
units:
hadoop-master/0:
agent-state: install-error
machine: 0
public-address: xx.x.x.xxx
这是我的 juju 调试日志:
2013-01-29 07:35:44,689 unit:hadoop-master/0: hook.output INFO: ldconfig deferred processing now taking place
2013-01-29 07:35:45,208 unit:hadoop-master/0: hook.output INFO: Errors were encountered while processing:
grub-pc
2013-01-29 07:35:45,220 unit:hadoop-master/0: hook.output INFO: E: Sub-process /usr/bin/dpkg returned an error code (1)
2013-01-29 07:35:45,223 unit:hadoop-master/0: hook.output DEBUG: hook install exited, exit code Traceback (most recent call last):
Failure: juju.errors.CharmInvocationError: Error processing '/var/lib/juju/units/hadoop-master-0/charm/hooks/install': exit code 100.
.
2013-01-29 07:35:45,223 unit:hadoop-master/0: hook.executor DEBUG: Hook error: /var/lib/juju/units/hadoop-master-0/charm/hooks/install Error processing '/var/lib/juju/units/hadoop-master-0/charm/hooks/install': exit code 100.
2013-01-29 07:35:45,224 unit:hadoop-master/0: statemachine DEBUG: unitworkflowstate: executing error transition error_install, Error processing '/var/lib/juju/units/hadoop-master-0/charm/hooks/install': exit code 100.
2013-01-29 07:35:45,582 unit:hadoop-master/0: statemachine DEBUG: unitworkflowstate: transition error_install (None -> install_error) {}
2013-01-29 07:35:45,630 unit:hadoop-master/0: statemachine DEBUG: unitworkflowstate: transition complete error_install (state install_error) {}
2013-01-29 07:35:45,659 unit:hadoop-master/0: juju.agents.unit DEBUG: Configuration Changed
2013-01-29 07:35:45,659 unit:hadoop-master/0: juju.agents.unit DEBUG: Configuration updated on service in a non-started state
2013-01-29 07:35:45,730 unit:hadoop-master/0: juju.agents.unit INFO: No upgrade flag set.
有什么解决办法?
答案1
发布者用户127018(OP)在他的问题中:
解决方案:我正在回答我的问题。我可以通过添加一行来解决这个问题
~/.juju/environments.yaml
:juju-origin: proposed
修复已发布LP Bug #1060404。