Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11460

Deprecate shell vars

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 3.0.0-alpha1
    • scripts
    • Hide
      <!-- markdown -->

      | Old | New |
      |:---- |:---- |
      | HADOOP\_HDFS\_LOG\_DIR | HADOOP\_LOG\_DIR |
      | HADOOP\_HDFS\_LOGFILE | HADOOP\_LOGFILE |
      | HADOOP\_HDFS\_NICENESS | HADOOP\_NICENESS |
      | HADOOP\_HDFS\_STOP\_TIMEOUT | HADOOP\_STOP\_TIMEOUT |
      | HADOOP\_HDFS\_PID\_DIR | HADOOP\_PID\_DIR |
      | HADOOP\_HDFS\_ROOT\_LOGGER | HADOOP\_ROOT\_LOGGER |
      | HADOOP\_HDFS\_IDENT\_STRING | HADOOP\_IDENT\_STRING |
      | HADOOP\_MAPRED\_LOG\_DIR | HADOOP\_LOG\_DIR |
      | HADOOP\_MAPRED\_LOGFILE | HADOOP\_LOGFILE |
      | HADOOP\_MAPRED\_NICENESS | HADOOP\_NICENESS |
      | HADOOP\_MAPRED\_STOP\_TIMEOUT | HADOOP\_STOP\_TIMEOUT |
      | HADOOP\_MAPRED\_PID\_DIR | HADOOP\_PID\_DIR |
      | HADOOP\_MAPRED\_ROOT\_LOGGER | HADOOP\_ROOT\_LOGGER |
      | HADOOP\_MAPRED\_IDENT\_STRING | HADOOP\_IDENT\_STRING |
      | YARN\_CONF\_DIR | HADOOP\_CONF\_DIR |
      | YARN\_LOG\_DIR | HADOOP\_LOG\_DIR |
      | YARN\_LOGFILE | HADOOP\_LOGFILE |
      | YARN\_NICENESS | HADOOP\_NICENESS |
      | YARN\_STOP\_TIMEOUT | HADOOP\_STOP\_TIMEOUT |
      | YARN\_PID\_DIR | HADOOP\_PID\_DIR |
      | YARN\_ROOT\_LOGGER | HADOOP\_ROOT\_LOGGER |
      | YARN\_IDENT\_STRING | HADOOP\_IDENT\_STRING |
      | YARN\_OPTS | HADOOP\_OPTS |
      | YARN\_SLAVES | HADOOP\_SLAVES |
      | YARN\_USER\_CLASSPATH | HADOOP\_CLASSPATH |
      | YARN\_USER\_CLASSPATH\_FIRST | HADOOP\_USER\_CLASSPATH\_FIRST |
      | KMS\_CONFIG | HADOOP\_CONF\_DIR |
      | KMS\_LOG | HADOOP\_LOG\_DIR |
      Show
      <!-- markdown --> | Old | New | |:---- |:---- | | HADOOP\_HDFS\_LOG\_DIR | HADOOP\_LOG\_DIR | | HADOOP\_HDFS\_LOGFILE | HADOOP\_LOGFILE | | HADOOP\_HDFS\_NICENESS | HADOOP\_NICENESS | | HADOOP\_HDFS\_STOP\_TIMEOUT | HADOOP\_STOP\_TIMEOUT | | HADOOP\_HDFS\_PID\_DIR | HADOOP\_PID\_DIR | | HADOOP\_HDFS\_ROOT\_LOGGER | HADOOP\_ROOT\_LOGGER | | HADOOP\_HDFS\_IDENT\_STRING | HADOOP\_IDENT\_STRING | | HADOOP\_MAPRED\_LOG\_DIR | HADOOP\_LOG\_DIR | | HADOOP\_MAPRED\_LOGFILE | HADOOP\_LOGFILE | | HADOOP\_MAPRED\_NICENESS | HADOOP\_NICENESS | | HADOOP\_MAPRED\_STOP\_TIMEOUT | HADOOP\_STOP\_TIMEOUT | | HADOOP\_MAPRED\_PID\_DIR | HADOOP\_PID\_DIR | | HADOOP\_MAPRED\_ROOT\_LOGGER | HADOOP\_ROOT\_LOGGER | | HADOOP\_MAPRED\_IDENT\_STRING | HADOOP\_IDENT\_STRING | | YARN\_CONF\_DIR | HADOOP\_CONF\_DIR | | YARN\_LOG\_DIR | HADOOP\_LOG\_DIR | | YARN\_LOGFILE | HADOOP\_LOGFILE | | YARN\_NICENESS | HADOOP\_NICENESS | | YARN\_STOP\_TIMEOUT | HADOOP\_STOP\_TIMEOUT | | YARN\_PID\_DIR | HADOOP\_PID\_DIR | | YARN\_ROOT\_LOGGER | HADOOP\_ROOT\_LOGGER | | YARN\_IDENT\_STRING | HADOOP\_IDENT\_STRING | | YARN\_OPTS | HADOOP\_OPTS | | YARN\_SLAVES | HADOOP\_SLAVES | | YARN\_USER\_CLASSPATH | HADOOP\_CLASSPATH | | YARN\_USER\_CLASSPATH\_FIRST | HADOOP\_USER\_CLASSPATH\_FIRST | | KMS\_CONFIG | HADOOP\_CONF\_DIR | | KMS\_LOG | HADOOP\_LOG\_DIR |

    Description

      It is a very common shell pattern in 3.x to effectively replace sub-project specific vars with generics. We should have a function that does this replacement and provides a warning to the end user that the old shell var is deprecated. Additionally, we should use this shell function to deprecate the shell vars that are holdovers already.

      Attachments

        1. HADOOP-11460-00.patch
          7 kB
          Allen Wittenauer
        2. HADOOP-11460-01.patch
          18 kB
          Allen Wittenauer
        3. HADOOP-11460-02.patch
          24 kB
          Allen Wittenauer
        4. HADOOP-11460-03.patch
          26 kB
          John Smith
        5. HADOOP-11460-04.patch
          26 kB
          John Smith

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pocky John Smith
            aw Allen Wittenauer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment