Issue Details (XML | Word | Printable)

Key: HADOOP-5937
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Ravi Phulari
Reporter: Ravi Phulari
Votes: 0
Watchers: 2
Operations

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

Correct info message "Use hadoop dfs -safemode option" to " Use hdfs dfsadmin -safemode option" .

Created: 29/May/09 01:22 AM   Updated: 08/Jul/09 04:43 PM
Return to search
Component/s: None
Affects Version/s: 0.20.0
Fix Version/s: 0.20.1, 0.21.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-5937.patch 2009-05-29 01:47 AM Ravi Phulari 0.7 kB
Text File Licensed for inclusion in ASF works HADOOPv20-5937.patch 2009-06-08 08:51 PM Ravi Phulari 0.7 kB
Issue Links:
Duplicate
 
Reference
 

Hadoop Flags: Reviewed
Resolution Date: 08/Jun/09 09:39 PM


 Description  « Hide
Safemode error message

Use "hadoop dfs -safemode leave" to turn safe mode off.

should be corrected as

Use "hdfs dfsadmin -safemode leave" to turn safe mode off.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ravi Phulari added a comment - 29/May/09 01:47 AM
No code changes made , only changes in information message .
No unit tests added as there are no addition or code changes .

Jakob Homan added a comment - 29/May/09 07:06 PM
+1. Looks good.

Hadoop QA added a comment - 30/May/09 08:03 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12409333/HADOOP-5937.patch
against trunk revision 780114.

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

-1 core tests. The patch failed 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/436/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/436/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/436/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/436/console

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 01/Jun/09 06:27 PM
The failed tests are not related.

I have committed this. Thanks, Ravi!


Ramya R added a comment - 08/Jun/09 06:42 AM
I think the above patch should not be applied to branch 20 as bin/hdfs is supported only after the project split. Hence opened HADOOP:5990.

Tsz Wo (Nicholas), SZE added a comment - 08/Jun/09 05:40 PM
Ramya, you are right. 0.20 needs a different message. Thanks for looking at this. I will revert the patch committed to 0.20.

Ravi, could you post a new patch for 0.20?


Ravi Phulari added a comment - 08/Jun/09 08:53 PM
Thanks for correction Ramya , Nicholas please consider this patch for Hadoop 20 .

Ravi Phulari added a comment - 08/Jun/09 09:36 PM
Manually tested this patch on command line.
hoaxhost:branch-0.20 rphulari$ bin/hadoop dfsadmin -safemode enter
Safe mode is ON
hoaxhost:branch-0.20 rphulari$ bin/hadoop jar build/hadoop-0.20.1-dev-examples.jar wordcount dt op
org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /Users/rphulari/tmpForHadoop/hadoop-rphulari/mapred/system/job_200906081432_0002. Name node is in safe mode.
Use "hadoop dfsadmin -safemode leave" to turn safe mode off.
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.deleteInternal(FSNamesystem.java:1679)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.delete(FSNamesystem.java:1659)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.delete(NameNode.java:517)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        ....
hoaxhost:branch-0.20 rphulari$ bin/hadoop dfsadmin -safemode leave
Safe mode is OFF

Tsz Wo (Nicholas), SZE added a comment - 08/Jun/09 09:39 PM
I have committed the 0.20 patch. Thanks, Ravi!

Hadoop QA added a comment - 08/Jun/09 11:28 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12410163/HADOOPv20-5937.patch
against trunk revision 782708.

+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 patch. The patch command could not apply the patch.

Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/482/console

This message is automatically generated.