ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Klavins (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-8715) Server start script incorrectly uses rpm binary to determine hadoop version
Date Fri, 02 Oct 2015 09:22:26 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-8715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14940944#comment-14940944
] 

Peter Klavins commented on AMBARI-8715:
---------------------------------------

This issue is no longer valid, the code that was being patched has now been refactored into
other code that does not have the original vulnerability.

> Server start script incorrectly uses rpm binary to determine hadoop version
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-8715
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8715
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 1.7.0
>         Environment: Ubuntu 12.04
>            Reporter: Peter Klavins
>            Priority: Minor
>              Labels: ubuntu
>         Attachments: AMBARI-8715.patch
>
>
> Starting services fails on an Ambari deployed Ubuntu 12.04 cluster because scripts use
rpm to check for hadoop version, and rpm is not installed on Ubuntu 12.04.
> For example, starting hive gives this error (look at 'Fail' line for reference to rpm):
> 2014-12-15 11:37:26,909 - Error while executing command 'start':
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 123, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py",
line 43, in start
>     self.configure(env) # FOR SECURITY
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py",
line 38, in configure
>     hive(name='hiveserver2')
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive.py",
line 41, in hive
>     params.HdfsDirectory(None, action="create")
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
>     self.env.run()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
149, in run
>     self.run_action(resource, action)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
115, in run_action
>     provider_action()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_directory.py",
line 107, in action_create
>     not_if=format("su - {hdp_hdfs_user} -c 'export PATH=$PATH:{bin_dir} ; "
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
>     self.env.run()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
149, in run
>     self.run_action(resource, action)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
115, in run_action
>     provider_action()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 241, in action_run
>     raise ex
> Fail: Execution of 'hadoop --config /etc/hadoop/conf fs -mkdir `rpm -q hadoop | grep
-q "hadoop-1" || echo "-p"` /apps/hive/warehouse /user/hive && hadoop --config /etc/hadoop/conf
fs -chmod  777 /apps/hive/warehouse && hadoop --config /etc/hadoop/conf fs -chmod
 700 /user/hive && hadoop --config /etc/hadoop/conf fs -chown  hive /apps/hive/warehouse
/user/hive' returned 1. -su: rpm: command not found
> mkdir: Call From master.node/192.168.10.10 to master.node:8020 failed on connection exception:
java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
> mkdir: Call From master.node/192.168.10.10 to master.node:8020 failed on connection exception:
java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message