安装 Impala 时出错
Error installing Impala
我正尝试按照此网站的说明安装 impala:https://cwiki.apache.org/confluence/display/IMPALA/Building+Impala
但是出现这个错误,我无法继续,有人可以帮我吗?
Obs:有人知道是否可以从 ambari 或 hue 安装吗?
提前致谢
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)
该错误是由于错误地访问了节点属性而导致的。
逻辑case platform
使用不当。比如上面提到的属性文件中的属性是错误的:-
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
并且,它应该如下所示,因为 platform
是一个节点属性:-
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
我正尝试按照此网站的说明安装 impala:https://cwiki.apache.org/confluence/display/IMPALA/Building+Impala
但是出现这个错误,我无法继续,有人可以帮我吗?
Obs:有人知道是否可以从 ambari 或 hue 安装吗?
提前致谢
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)
该错误是由于错误地访问了节点属性而导致的。
逻辑case platform
使用不当。比如上面提到的属性文件中的属性是错误的:-
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
并且,它应该如下所示,因为 platform
是一个节点属性:-
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