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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3-alpha
    • 2.1.0-beta
    • datanode, security
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: