Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4541

set hadoop.log.dir and hadoop.id.str when starting secure datanode so it writes the logs to the correct dir by default

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 2.1.0-beta
    • Component/s: datanode, security
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      currently in hadoop-config.sh we set the following

      HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.dir=$HADOOP_LOG_DIR"
      HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.id.str=$HADOOP_IDENT_STRING"
      

      however when this file is sourced we dont know whether we are starting a secure data node.

      In the hdfs script when we determine whether we are starting secure data node or not we should also update HADOOP_OPTS

        Attachments

        1. HDFS-4541.patch
          0.7 kB
          Arpit Gupta
        2. HDFS-4541.patch
          0.8 kB
          Arpit Gupta

          Activity

            People

            • Assignee:
              arpitgupta Arpit Gupta
              Reporter:
              arpitgupta Arpit Gupta
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: