[jira] [Commented] (HADOOP-8888) add the ability to suppress the deprecated warnings when using hadoop cli

2012-10-17 Thread Harsh J (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13478048#comment-13478048
 ] 

Harsh J commented on HADOOP-:
-

Hi Arpit,

I've not seen a pressing need for this yet, given that the messages are 
informative enough. So I'm ok if we're not doing this.

Maybe it would be worth it in future, for the code, to have like a single 
deprecation log channel, toggle-able at the global, package and class levels.

Same could be done for scripts I think.

 add the ability to suppress the deprecated warnings when using hadoop cli
 -

 Key: HADOOP-
 URL: https://issues.apache.org/jira/browse/HADOOP-
 Project: Hadoop Common
  Issue Type: Improvement
Affects Versions: 3.0.0
Reporter: Arpit Gupta
Assignee: Arpit Gupta

 some this similar to what HADOOP_HOME_WARN_SUPPRESS is used for in branch-1
 May be we can introduce
 HADOOP_DEPRECATED_WARN_SUPPRESS
 which if set to yes will suppress the various warnings that are thrown.
 For example commands like
 {code}
 hadoop dfs
 hadoop jar
 {code}
 etc will print out deprecated warnings.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-8888) add the ability to suppress the deprecated warnings when using hadoop cli

2012-10-16 Thread Arpit Gupta (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13477457#comment-13477457
 ] 

Arpit Gupta commented on HADOOP-:
-

I am going to close this as wont fix. We seem to be throwing deprecated 
warnings in our shell scripts as well as java code (Commands.java). To do this 
for both i will have to add another config in common configuration to suppress 
these warnings. I dont feel that is some thing we should do for this.

If people feel they would like this i can certainly generate the patch.

 add the ability to suppress the deprecated warnings when using hadoop cli
 -

 Key: HADOOP-
 URL: https://issues.apache.org/jira/browse/HADOOP-
 Project: Hadoop Common
  Issue Type: Improvement
Affects Versions: 3.0.0
Reporter: Arpit Gupta
Assignee: Arpit Gupta

 some this similar to what HADOOP_HOME_WARN_SUPPRESS is used for in branch-1
 May be we can introduce
 HADOOP_DEPRECATED_WARN_SUPPRESS
 which if set to yes will suppress the various warnings that are thrown.
 For example commands like
 {code}
 hadoop dfs
 hadoop jar
 {code}
 etc will print out deprecated warnings.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-8888) add the ability to suppress the deprecated warnings when using hadoop cli

2012-10-12 Thread Arpit Gupta (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13475076#comment-13475076
 ] 

Arpit Gupta commented on HADOOP-:
-

@Harsh

These are not bad config references. This when a user uses hadoop dfs|jar etc 
commands on trunk they would get a deprecated warning. What i am suggesting is 
that by default the warnings should come up. But for what ever reason if I as a 
user want to keep using the same command this would provide me the ability to 
suppress those.

 add the ability to suppress the deprecated warnings when using hadoop cli
 -

 Key: HADOOP-
 URL: https://issues.apache.org/jira/browse/HADOOP-
 Project: Hadoop Common
  Issue Type: Improvement
Affects Versions: 3.0.0
Reporter: Arpit Gupta
Assignee: Arpit Gupta

 some this similar to what HADOOP_HOME_WARN_SUPPRESS is used for in branch-1
 May be we can introduce
 HADOOP_DEPRECATED_WARN_SUPPRESS
 which if set to yes will suppress the various warnings that are thrown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-8888) add the ability to suppress the deprecated warnings when using hadoop cli

2012-10-12 Thread Harsh J (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13475087#comment-13475087
 ] 

Harsh J commented on HADOOP-:
-

Oh I see by deprecated you meant the scripts and not the configs. I am sorry 
then - am fine with doing that so long as the default is not suppressive 
behavior. Thanks for clarifying Arpit!

 add the ability to suppress the deprecated warnings when using hadoop cli
 -

 Key: HADOOP-
 URL: https://issues.apache.org/jira/browse/HADOOP-
 Project: Hadoop Common
  Issue Type: Improvement
Affects Versions: 3.0.0
Reporter: Arpit Gupta
Assignee: Arpit Gupta

 some this similar to what HADOOP_HOME_WARN_SUPPRESS is used for in branch-1
 May be we can introduce
 HADOOP_DEPRECATED_WARN_SUPPRESS
 which if set to yes will suppress the various warnings that are thrown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-8888) add the ability to suppress the deprecated warnings when using hadoop cli

2012-10-06 Thread Harsh J (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13471078#comment-13471078
 ] 

Harsh J commented on HADOOP-:
-

Am not liking this idea, personally.

We ought to fix bad config references not suppress them. For instance, I'd gone 
through a few logs of startup to remove unnecessary warnings regarding 
deprecation and what not for HDFS recently, same should be done for this - why 
can't that be carried out?

This toggle will make users find them and get more lazier and then someday bite 
them. We warn for a reason?

 add the ability to suppress the deprecated warnings when using hadoop cli
 -

 Key: HADOOP-
 URL: https://issues.apache.org/jira/browse/HADOOP-
 Project: Hadoop Common
  Issue Type: Improvement
Affects Versions: 3.0.0
Reporter: Arpit Gupta
Assignee: Arpit Gupta

 some this similar to what HADOOP_HOME_WARN_SUPPRESS is used for in branch-1
 May be we can introduce
 HADOOP_DEPRECATED_WARN_SUPPRESS
 which if set to yes will suppress the various warnings that are thrown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira