Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18567

Cannot start Oozie if WebHDFS is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0, 2.5.0, 2.4.2
    • ambari-server
    • None

    Description

      If WebHDFS is disabled, Oozie cannot be started due to missing import in service script.

        File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py", line 145, in oozie_service
          hdfs_share_dir_exists = shell.call(format("{kinit_if_needed} hadoop --config {hadoop_conf_dir} dfs -ls {hdfs_share_dir} | awk 'BEGIN {{count=0;}} /share/ {{count++}} END {{if (count > 0) {{exit 0}} else {{exit 1}}}}'"),
      NameError: global name 'shell' is not defined
      

      Attachments

        1. AMBARI-18567.patch
          2 kB
          Attila Doroszlai

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: