ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez" <afernan...@hortonworks.com>
Subject Review Request 27121: Hiveserver2 and Webhcat fails to start in secure cluster
Date Fri, 24 Oct 2014 00:32:53 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27121/
-----------------------------------------------------------

Review request for Ambari, Andrew Onischuk, Jaimin Jetly, jun aoki, Jonathan Hurley, Sumit
Mohanty, Srimanth Gunturi, Sid Wagle, and Yusaku Sako.


Bugs: AMBARI-7942
    https://issues.apache.org/jira/browse/AMBARI-7942


Repository: ambari


Description
-------


Deploy a cluster with default configs (did not select Kafka, Slider and Knox)
After enabling security hive server2 and webhcat fails to start. 

```
2014-10-23 23:52:27,200 - Error while executing command 'start':
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 122, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py",
line 44, in start
    copy_tarballs_to_hdfs('tez', params.tez_user, params.hdfs_user)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/dynamic_variable_interpretation.py",
line 228, in copy_tarballs_to_hdfs
    user=component_user
  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 '{kinit_path_local} -kt {hdfs_user_keytab} {hdfs_principal_name};' returned
127. -bash: {kinit_path_local}: command not found
```


Diffs
-----

  ambari-common/src/main/python/resource_management/libraries/functions/dynamic_variable_interpretation.py
5112c45 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/webhcat.py
4eeff8b 

Diff: https://reviews.apache.org/r/27121/diff/


Testing
-------

Reproduced the issue on a cluster after enabling security.
Then copied the changed scripts, and was able to start all Hive Components, including WebHcat

Ran unit tests in ambari-server.

----------------------------------------------------------------------
Total run:669
Total errors:0
Total failures:0
OK


Thanks,

Alejandro Fernandez


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message