[
https://issues.apache.org/jira/browse/AMBARI-8715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247101#comment-14247101
]
Hadoop QA commented on AMBARI-8715:
-----------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12687282/AMBARI-8715.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:red}-1 tests included{color}. The patch doesn't appear to include
any new or modified tests.
Please justify why no new tests are needed for this
patch.
Also please list what manual steps were performed to
verify this patch.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 core tests{color}. The patch passed unit tests in .
Test results:
https://builds.apache.org/job/Ambari-trunk-test-patch/938//testReport/
Console output:
https://builds.apache.org/job/Ambari-trunk-test-patch/938//console
This message is automatically generated.
> 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
> Fix For: 1.7.0
>
> 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)