Issue Details (XML | Word | Printable)

Key: HADOOP-4454
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Rama, Ramasamy
Reporter: Rama, Ramasamy
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Support comments in 'slaves' file

Created: 18/Oct/08 12:51 AM   Updated: 23/Apr/09 07:17 PM
Return to search
Component/s: conf, scripts
Affects Version/s: 0.17.2
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works comments_in_slaves.diff 2008-10-18 01:21 AM Rama, Ramasamy 0.4 kB

Hadoop Flags: Reviewed
Release Note: Changed processing of conf/slaves file to allow # to begin a comment.
Resolution Date: 26/Oct/08 06:47 AM


 Description  « Hide
Support comments in 'slaves' file.
Comments start with '#' (start of line or inline )

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Rama, Ramasamy added a comment - 18/Oct/08 01:21 AM
sed "s/#.*$//;/^$/d" : Remove anything after '#' and delete empty lines

dhruba borthakur added a comment - 20/Oct/08 04:26 AM
I am not sure whether to mark this JIRA as an "incompatible" change or not. If a slaves file previously had an entry of the type:

machine.xxx.com#bad

then slaves.sh would fail while trying to connect to this machine because whereas with this patch slaves.sh will correctly interpret the machine name as machine.xxx.com and work correctly.


Hadoop QA added a comment - 20/Oct/08 07:43 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12392400/comments_in_slaves.diff
against trunk revision 706338.

+1 @author. The patch does not contain any @author tags.

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+1 javadoc. The javadoc tool did not generate any warning messages.

+1 javac. The applied patch does not increase the total number of javac compiler warnings.

+1 findbugs. The patch does not introduce any new Findbugs warnings.

+1 Eclipse classpath. The patch retains Eclipse classpath integrity.

-1 core tests. The patch failed core unit tests.

+1 contrib tests. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3497/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3497/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3497/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3497/console

This message is automatically generated.


Owen O'Malley added a comment - 26/Oct/08 06:47 AM
I just committed this. Thanks, Rama!

I view this as a compatible change, since there are no legal hostnames with hash.


Hudson added a comment - 27/Oct/08 02:30 PM