Vivek Sharma created AMBARI-23369: ------------------------------------- Summary: Livy server fails to start after Ambari upgrade due to missing argument for nameservice Key: AMBARI-23369 URL: https://issues.apache.org/jira/browse/AMBARI-23369 Project: Ambari Issue Type: Bug Components: ambari-server Affects Versions: 2.7.0 Reporter: Vivek Sharma Fix For: 2.7.0
*STR* # Deployed a cluster with HDP-2.6.4 and Ambari-2.6.1 # Upgrade Ambari to 2.7.0.0-202 # Try to start Spark service *Result* Spark livy server start fails with: {code:java} Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/livy2_server.py", line 144, in LivyServer().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, 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/ambari-agent/lib/resource_management/libraries/functions/decorator.py", line 54, in wrapper return function(*args, **kwargs) File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/livy2_server.py", line 115, in wait_for_dfs_directory_created util = WebHDFSUtil(params.hdfs_site, params.hdfs_user, params.security_enabled) TypeError: __init__() takes at least 5 arguments (4 given) {code} The issue is because a new 'nameservice' argument is added to WebHDFSUtil constructor The problem needs a fix in both livy_server and livy2_server scripts, as the below call is common in these two scripts {code:java} util = WebHDFSUtil(params.hdfs_site, params.hdfs_user, params.security_enabled){code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)