Chef infra 安装Impala时出错
我正试图按照本网站的说明安装黑斑羚: 但是这个错误正在出现,我不能继续,有人能帮我吗 Obs:有人知道是否可以从ambari或hue安装吗 先谢谢你Chef infra 安装Impala时出错,chef-infra,chef-recipe,impala,Chef Infra,Chef Recipe,Impala,我正试图按照本网站的说明安装黑斑羚: 但是这个错误正在出现,我不能继续,有人能帮我吗 Obs:有人知道是否可以从ambari或hue安装吗 先谢谢你 Installing Cookbook Gems: Compiling Cookbooks... ================================================================================ Recipe Compile Error in /root/impala-setup/c
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /root/impala-setup/cookbooks/python/attributes/default.rb
================================================================================
NoMethodError
-------------
undefined method `platform' for #<Chef::Node::Attribute:0x00000004b13420>
Cookbook Trace:
---------------
/root/impala-setup/cookbooks/python/attributes/default.rb:24:in `from_file'
Relevant File Content:
----------------------
/root/impala-setup/cookbooks/python/attributes/default.rb:
17: # See the License for the specific language governing permissions and
18: # limitations under the License.
19: #
20:
21: default['python']['install_method'] = 'package'
22:
23: if default['python']['install_method'] == 'package'
24>> case platform
25: when "smartos"
26: default['python']['prefix_dir'] = '/opt/local'
27: else
28: default['python']['prefix_dir'] = '/usr'
29: end
30: else
31: default['python']['prefix_dir'] = '/usr/local'
32: end
33:
System Info:
------------
chef_version=13.0.118
platform=ubuntu
platform_version=14.04
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
program_name=chef-solo worker: ppid=7000;start=12:50:46;
executable=/opt/chef/bin/chef-solo
Running handlers:
[2017-04-18T12:50:48+02:00] ERROR: Running exception handlers
[2017-04-18T12:50:48+02:00] ERROR: Running exception handlers
Running handlers complete
[2017-04-18T12:50:48+02:00] ERROR: Exception handlers complete
[2017-04-18T12:50:48+02:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 02 seconds
[2017-04-18T12:50:48+02:00] FATAL: Stacktrace dumped to /root/impala-setup/chef-stacktrace.out
[2017-04-18T12:50:48+02:00] FATAL: Stacktrace dumped to /root/impala-setup/chef-stacktrace.out
[2017-04-18T12:50:48+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-04-18T12:50:48+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-04-18T12:50:48+02:00] ERROR: undefined method `platform' for #<Chef::Node::Attribute:0x00000004b13420>
[2017-04-18T12:50:48+02:00] ERROR: undefined method `platform' for #<Chef::Node::Attribute:0x00000004b13420>
[2017-04-18T12:50:48+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2017-04-18T12:50:48+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
安装Cookbook Gems:
编辑食谱。。。
================================================================================
/root/impala setup/cookbooks/python/attributes/default.rb中的配方编译错误
================================================================================
命名者
-------------
未定义的方法“平台”#
食谱跟踪:
---------------
/root/impala setup/cookbooks/python/attributes/default.rb:24:in`from_file'
相关文件内容:
----------------------
/root/impala setup/cookbooks/python/attributes/default.rb:
17:#请参阅许可证,了解管理权限和权限的特定语言
18:#许可证下的限制。
19: #
20:
21:默认值['python']['install_method']='package'
22:
23:如果默认值为['python']['install_method']=='package'
24>>案例平台
25:什么时候“smartos”
26:默认值['python']['prefix_dir']='/opt/local'
27:其他
28:默认值['python']['prefix_dir']='/usr'
29:完
30:还有吗
31:默认值['python']['prefix_dir']='/usr/local'
32:完
33:
系统信息:
------------
chef_版本=13.0.118
平台=ubuntu
平台_版本=14.04
ruby=ruby 2.4.1p111(2017-03-22修订版58053)[x86_64-linux]
项目名称=厨师独奏工人:ppid=7000;开始=12:50:46;
可执行文件=/opt/chef/bin/chef solo
正在运行的处理程序:
[2017-04-18T12:50:48+02:00]错误:正在运行异常处理程序
[2017-04-18T12:50:48+02:00]错误:正在运行异常处理程序
正在运行的处理程序已完成
[2017-04-18T12:50:48+02:00]错误:异常处理程序已完成
[2017-04-18T12:50:48+02:00]错误:异常处理程序已完成
Chef客户端失败。0个资源在02秒内更新
[2017-04-18T12:50:48+02:00]致命:Stacktrace转储到/root/impala setup/chef-Stacktrace.out
[2017-04-18T12:50:48+02:00]致命:Stacktrace转储到/root/impala setup/chef-Stacktrace.out
[2017-04-18T12:50:48+02:00]致命:如果您提交错误报告,请提供stacktrace.out文件的内容
[2017-04-18T12:50:48+02:00]致命:如果您提交错误报告,请提供stacktrace.out文件的内容
[2017-04-18T12:50:48+02:00]错误:未定义的“平台”方法#
[2017-04-18T12:50:48+02:00]错误:未定义的“平台”方法#
[2017-04-18T12:50:48+02:00]致命:Chef::异常::ChildConverge错误:Chef运行进程退出失败(退出代码1)
[2017-04-18T12:50:48+02:00]致命:Chef::异常::ChildConverge错误:Chef运行进程退出失败(退出代码1)
错误是由于错误访问节点属性造成的
逻辑案例平台
使用不正确。例如,属性文件中的上述属性是错误的:-
if python['install_method'] == 'package'
case platform
when "smartos"
default['python']['prefix_dir'] = '/opt/local'
else
default['python']['prefix_dir'] = '/usr'
end
else
default['python']['prefix_dir'] = '/usr/local'
end
而且,它应该如下所示,因为平台
是一个节点属性:-
if python['install_method'] == 'package'
case node['platform']
when "smartos"
default['python']['prefix_dir'] = '/opt/local'
else
default['python']['prefix_dir'] = '/usr'
end
else
default['python']['prefix_dir'] = '/usr/local'
end
谢谢,但是现在错误是:/root/impala setup/cookbooks/python/attributes/default.rb:39>>default['python']['configure_options']=%W{--prefix={python['prefix_dir']}我是安装了一个错误的版本还是有问题?你从哪里得到这本python食谱的?另外,如果没有完整的stacktrace,很难判断错误。我正在尝试安装impala。。。我从哪里得到完整的stacktrace?我没有关于黑斑羚的信息。。。但在stacktrace中,我指的是所有的错误日志,而不是其中的一个片段。