[ 
https://issues.apache.org/jira/browse/HADOOP-13335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15362984#comment-15362984
 ] 

Allen Wittenauer edited comment on HADOOP-13335 at 7/5/16 6:42 PM:
-------------------------------------------------------------------

hadoop jar does not include any of the following yarn content that is normally 
initialized during the yarn-config.sh bootstrap:

* anything defined in yarn-env.sh
* some YARN\_\*\_DIR
* some YARN\_\*\_OPT and YARN\_\*\_OPTS
* YARN\_\*\_CLASSPATH

If anything wants to talk to yarn in any way/shape/form and use hadoop's 
bootstrap code, they really, really, really should be using yarn jar.  
Otherwise there is a risk that some things may get mis-configured.  We won't be 
able to clean this up until 4.x.  (3.x finally deprecates a lot of this 
craziness from the project split back that happened in 0.22...)


was (Author: aw):
hadoop jar does not include any of the following yarn content that is normally 
initialized during the yarn-config.sh bootstrap:

* anything defined in yarn-env.sh
* some YARN_*_DIR
* some YARN_*_OPT and YARN_*_OPTS
* YARN_*_CLASSPATH

If anything wants to talk to yarn in any way/shape/form and use hadoop's 
bootstrap code, they really, really, really should be using yarn jar.  
Otherwise there is a risk that some things may get mis-configured.  We won't be 
able to clean this up until 4.x.  (3.x finally deprecates a lot of this 
craziness from the project split back that happened in 0.22...)

> Add an option to suppress the 'use yarn jar' warning or remove it
> -----------------------------------------------------------------
>
>                 Key: HADOOP-13335
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13335
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.7.0
>            Reporter: Siddharth Seth
>
> https://issues.apache.org/jira/browse/HADOOP-11257 added a 'deprecation' 
> warning for 'hadoop jar'.
> hadoop jar is used for a lot more that starting jobs. As an example - hive 
> uses it to start all it's services (HiveServer2, the hive client, beeline 
> etc).
> Using 'yarn jar' for to start these services / tools doesn't make a lot of 
> sense - there's no relation to yarn other than requiring the classpath to 
> include yarn libraries.
> I'd propose reverting the changes where this message is printed if YARN 
> variables are set (leave it in the help message), or adding a mechanism which 
> would allow users to suppress this WARNING.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to