You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Robert Levas (JIRA)" <ji...@apache.org> on 2015/01/07 12:01:35 UTC

[jira] [Created] (AMBARI-9020) Ambari agent script should not kinit with Oozie service credentials on behalf of the Oozie service

Robert Levas created AMBARI-9020:
------------------------------------

             Summary: Ambari agent script should not kinit with Oozie service credentials on behalf of the Oozie service
                 Key: AMBARI-9020
                 URL: https://issues.apache.org/jira/browse/AMBARI-9020
             Project: Ambari
          Issue Type: Bug
          Components: stacks
    Affects Versions: 2.0.0
            Reporter: Robert Levas
             Fix For: 2.0.0


Ambari agent script should not kinit with Oozie service credentials on behalf of the Oozie service.

This is occurring in 

{code:title=oozie_service.py (around line 40)}
    cmd2 =  format("{kinit_if_needed} {put_shared_lib_to_hdfs_cmd} ; hadoop --config {hadoop_conf_dir} dfs -chmod -R 755 {oozie_hdfs_user_dir}/share")
{code}

{code:title=oozie_service.py (around line 60)}
    Execute( cmd2,
      user = params.oozie_user,
      not_if = format("{kinit_if_needed} hadoop --config {hadoop_conf_dir} dfs -ls /user/oozie/share | awk 'BEGIN {{count=0;}} /share/ {{count++}} END {{if (count > 0) {{exit 0}} else {{exit 1}}}}'"),
      path = params.execute_path
    )
{code}



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