[
https://issues.apache.org/jira/browse/AMBARI-23181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sandor Molnar resolved AMBARI-23181.
------------------------------------
Resolution: Fixed
> Express Upgrade to HDP-3.0 failed on history server stop
> --------------------------------------------------------
>
> Key: AMBARI-23181
> URL: https://issues.apache.org/jira/browse/AMBARI-23181
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.7.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Critical
> Fix For: 2.7.0
>
>
> Upgrading a cluster with YARN+MR2 installed from HDP 2.6.4 to HDP 3.0.0 fails
> with the following error:
>
> {code:java}
> Traceback (most recent call last):
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/historyserver.py",
> line 132, in <module>
> HistoryServer().execute()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 376, in execute
> method(env)
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 953, in restart
> self.stop(env, upgrade_type=upgrade_type)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/historyserver.py",
> line 49, in stop
> service('historyserver', action='stop', serviceName='mapreduce')
> File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py",
> line 89, in thunk
> return fn(*args, **kwargs)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/service.py",
> line 99, in service
> Execute(daemon_cmd, user=usr)
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 166, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 160, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 124, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 262, in action_run
> tries=self.resource.tries, try_sleep=self.resource.try_sleep)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 72, in inner
> result = function(command, **kwargs)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 102, in checked_call
> tries=tries, try_sleep=try_sleep,
> timeout_kill_strategy=timeout_kill_strategy)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 150, in _call_wrapper
> result = _call(command, **kwargs_copy)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 303, in _call
> raise ExecutionFailed(err_msg, code, out, err)
> resource_management.core.exceptions.ExecutionFailed: Execution of 'export
> HADOOP_LIBEXEC_DIR=/usr/hdp/3.0.0.0-820/hadoop/libexec &&
> /usr/hdp/3.0.0.0-820/hadoop-mapreduce/sbin/mr-jobhistory-daemon.sh --config
> /usr/hdp/3.0.0.0-820/hadoop/conf stop historyserver' returned 1. WARNING:
> YARN_CONF_DIR has been replaced by HADOOP_CONF_DIR. Using value of
> YARN_CONF_DIR.
> WARNING: YARN_LOG_DIR has been replaced by HADOOP_LOG_DIR. Using value of
> YARN_LOG_DIR.
> WARNING: YARN_LOGFILE has been replaced by HADOOP_LOGFILE. Using value of
> YARN_LOGFILE.
> WARNING: YARN_PID_DIR has been replaced by HADOOP_PID_DIR. Using value of
> YARN_PID_DIR.
> WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.
> WARNING: Use of this script to stop the MR JobHistory daemon is deprecated.
> WARNING: Attempting to execute replacement "mapred --daemon stop" instead.
> ERROR: Cannot find configuration directory
> "/usr/hdp/2.6.4.0-91/hadoop-yarn/conf"
> Usage: mapred [OPTIONS] SUBCOMMAND [SUBCOMMAND OPTIONS]
> or mapred [OPTIONS] CLASSNAME [CLASSNAME OPTIONS]
> where CLASSNAME is a user-provided Java class
> OPTIONS is none or any of:
> tput: No value for $TERM and no -T specified
> --config dir Hadoop config directory
> --debug turn on shell script debug mode
> --help usage information
> SUBCOMMAND is one of:
> Admin Commands:
> tput: No value for $TERM and no -T specified
> frameworkuploader mapreduce framework upload
> hsadmin job history server admin interface
> Client Commands:
> tput: No value for $TERM and no -T specified
> classpath prints the class path needed for running mapreduce
> subcommands
> envvars display computed Hadoop environment variables
> job manipulate MapReduce jobs
> minicluster CLI MiniCluster
> pipes run a Pipes job
> queue get information regarding JobQueues
> sampler sampler
> version print the version
> Daemon Commands:
> tput: No value for $TERM and no -T specified
> historyserver run job history servers as a standalone daemon
> SUBCOMMAND may print help when invoked w/o parameters or with -h.
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)