Issue Details (XML | Word | Printable)

Key: HADOOP-4783
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Amareshwari Sriramadasu
Reporter: Hemanth Yamijala
Votes: 0
Watchers: 2
Operations

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

History files are given world readable permissions.

Created: 05/Dec/08 07:55 AM   Updated: 08/Jul/09 04:53 PM
Return to search
Component/s: None
Affects Version/s: 0.19.0
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch-4783-1.txt 2009-03-04 06:14 AM Amareshwari Sriramadasu 4 kB
Text File Licensed for inclusion in ASF works patch-4783-2.txt 2009-03-13 07:39 AM Amareshwari Sriramadasu 3 kB
Text File Licensed for inclusion in ASF works patch-4783-2.txt 2009-03-13 04:21 AM Amareshwari Sriramadasu 4 kB
Text File Licensed for inclusion in ASF works patch-4783.txt 2009-02-27 11:14 AM Amareshwari Sriramadasu 3 kB

Hadoop Flags: Reviewed, Incompatible change
Release Note: Changed history directory permissions to 750 and history file permissions to 740.
Resolution Date: 15/Mar/09 10:32 AM


 Description  « Hide
It is found that history files are being created with permissions 0777. On shared clusters this is opening up too much. However, there is a requirement to allow Chukwa to read history files. (See HADOOP-4705). This issue is to set up appropriate permissions for the files to be as restrictive as required, while still fixing the problem for Chukwa.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nigel Daley added a comment - 05/Jan/09 10:19 PM
Hemanth, since HADOOP-4782 is a blocker for 0.20, why isn't this issue too? They seem to go together.

Hemanth Yamijala added a comment - 06/Jan/09 03:49 AM
Yes, I think it should be a blocker. Marking as such.

Amareshwari Sriramadasu added a comment - 27/Feb/09 08:58 AM
I would propose we have 0710 permission for history directory and 0740 permission for history files, sothat clients like Chukwa and Hadoop-vaidya would read history files. Thoughts?

Amareshwari Sriramadasu added a comment - 27/Feb/09 11:14 AM
patch changing the permissiond properly

Amareshwari Sriramadasu added a comment - 27/Feb/09 11:16 AM
test-patch result:
     [exec]
     [exec] +1 overall.
     [exec]
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec]
     [exec]     +1 tests included.  The patch appears to include 3 new or modified tests.
     [exec]
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning messages.
     [exec]
     [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
     [exec]
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec]
     [exec]     +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
     [exec]
     [exec]     +1 release audit.  The applied patch does not increase the total number of release audit warnings.
     [exec]
     [exec]

unit tests passed on my machine.


Hadoop QA added a comment - 01/Mar/09 05:51 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12401101/patch-4783.txt
against trunk revision 748861.

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

+1 tests included. The patch appears to include 3 new or modified tests.

+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 release audit. The applied patch does not increase the total number of release audit warnings.

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

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

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

This message is automatically generated.


Jothi Padmanabhan added a comment - 03/Mar/09 11:37 AM
conf.xml should have 0740 permissions too.

Amareshwari Sriramadasu added a comment - 04/Mar/09 06:14 AM
Patch with review comments incorporated.

Amareshwari Sriramadasu added a comment - 04/Mar/09 07:02 AM
test-patch result:
[exec]
[exec] +1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]
[exec] +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
[exec]
[exec] +1 release audit. The applied patch does not increase the total number of release audit warnings.
[exec]

All unit tests passed on my machine


Jothi Padmanabhan added a comment - 04/Mar/09 07:15 AM
Patch looks good.

Hadoop QA added a comment - 05/Mar/09 07:17 AM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12401371/patch-4783-1.txt
against trunk revision 750237.

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

+1 tests included. The patch appears to include 3 new or modified tests.

+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 release audit. The applied patch does not increase the total number of release audit warnings.

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

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

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

This message is automatically generated.


Hemanth Yamijala added a comment - 13/Mar/09 04:02 AM
I had an offline discussion with Rajiv on this. We felt that for the time being 740 for files and 750 for the history directory should be sufficient.

Amareshwari Sriramadasu added a comment - 13/Mar/09 04:21 AM
Patch chaging the history directory permissions to 750

Jothi Padmanabhan added a comment - 13/Mar/09 04:34 AM
+1

Amareshwari Sriramadasu added a comment - 13/Mar/09 04:36 AM
The same patch applies to branch 0.20 without the testcase changes, since TestJobHistory does not exist in 0.20

Amareshwari Sriramadasu added a comment - 13/Mar/09 07:40 AM
Patch updated with trunk

Hadoop QA added a comment - 13/Mar/09 07:47 AM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12402112/patch-4783-2.txt
against trunk revision 753052.

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

+1 tests included. The patch appears to include 3 new or modified tests.

+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 release audit. The applied patch does not increase the total number of release audit warnings.

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

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

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

This message is automatically generated.


Amareshwari Sriramadasu added a comment - 13/Mar/09 08:06 AM
resubmitting to hudson

Hadoop QA added a comment - 13/Mar/09 08:07 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12402118/patch-4783-2.txt
against trunk revision 753113.

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

+1 tests included. The patch appears to include 3 new or modified tests.

+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 release audit. The applied patch does not increase the total number of release audit warnings.

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

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

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

This message is automatically generated.


Hemanth Yamijala added a comment - 15/Mar/09 07:08 AM
Code changes look good to me. +1

Hemanth Yamijala added a comment - 15/Mar/09 07:10 AM
Also, the test case failure seems unrelated to this patch. It is in testProxyFilter.

Hemanth Yamijala added a comment - 15/Mar/09 10:32 AM
I just committed this to trunk and branch 0.20. The patch applied cleanly to the branch as well, I guess because HADOOP-4191 is committed now to the branch.

Thanks, Amareshwari !


Hudson added a comment - 15/Mar/09 03:18 PM
Integrated in Hadoop-trunk #780 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/780/)
. Change permissions on history files on the jobtracker to be only group readable instead of world readable. Contributed by Amareshwari Sriramadasu.