From f1070230d146518f42334ac01b8ec32daf18ac0b Mon Sep 17 00:00:00 2001 From: Allen Wittenauer Date: Thu, 12 Feb 2015 13:44:51 -0800 Subject: [PATCH] YARN-2796. deprecate sbin/yarn-daemon.sh (aw) --- hadoop-yarn-project/CHANGES.txt | 2 ++ hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 1ff1fcb3887..8bc614d64a8 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -15,6 +15,8 @@ Trunk - Unreleased YARN-2437. start-yarn.sh/stop-yarn should give info (Varun Saxena via aw) + YARN-2796. deprecate sbin/yarn-daemon.sh (aw) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh b/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh index b15448bdbcd..75294fe2dff 100644 --- a/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh +++ b/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh @@ -42,5 +42,8 @@ fi daemonmode=$1 shift +hadoop_error "WARNING: Use of this script to ${daemonmode} YARN daemons is deprecated." +hadoop_error "WARNING: Attempting to execute replacement \"yarn --daemon ${daemonmode}\" instead." + exec "${HADOOP_YARN_HOME}/bin/yarn" \ --config "${HADOOP_CONF_DIR}" --daemon "${daemonmode}" "$@"