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

Livy2 server startup failure if no webhdfs enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0, 2.5.1
    • 3.0.0, 2.5.2
    • None
    • None

    Description

      Livy2 server startup failure if no webhdfs enabled. The problem happened when creating a cluster using Cloudbreak on Azure with default WASB filesystem.

      The following exception is thrown:

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/livy2_server.py", line 148, in <module>
          LivyServer().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 314, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/livy2_server.py", line 59, in start
          self.wait_for_dfs_directories_created([params.entity_groupfs_store_dir, params.entity_groupfs_active_dir])
        File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/livy2_server.py", line 91, in wait_for_dfs_directories_created
          self.wait_for_dfs_directory_created(dir_path, ignored_dfs_dirs)
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/decorator.py", line 48, in wrapper
          return function(*args, **kwargs)
        File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/livy2_server.py", line 120, in wait_for_dfs_directory_created
          dfs_ret_code = shell.call(format("hdfs --config {hadoop_conf_dir} dfs -test -d " + dir_path), user=params.livy_user)[0]
      AttributeError: 'module' object has no attribute 'livy_user'
      

      Attachments

        1. ambari-21576.patch
          1 kB
          Ferenc Schneider

        Activity

          People

            Unassigned Unassigned
            fschneider Ferenc Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: