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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.8 kB
          Arpit Gupta
        2. HDFS-4541.patch
          0.7 kB
          Arpit Gupta

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment