You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ab...@apache.org on 2005/11/23 13:09:22 UTC
svn commit: r348417 - in /lucene/nutch/branches/mapred: bin/nutch
src/java/org/apache/nutch/fs/NDFSShell.java
src/java/org/apache/nutch/fs/TestClient.java
Author: ab
Date: Wed Nov 23 04:09:07 2005
New Revision: 348417
URL: http://svn.apache.org/viewcvs?rev=348417&view=rev
Log:
Rename the TestClient to NDFSShell. Modify the bin/nutch script accordingly.
Added:
lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NDFSShell.java
- copied, changed from r348401, lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/TestClient.java
Removed:
lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/TestClient.java
Modified:
lucene/nutch/branches/mapred/bin/nutch
Modified: lucene/nutch/branches/mapred/bin/nutch
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/bin/nutch?rev=348417&r1=348416&r2=348417&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/bin/nutch (original)
+++ lucene/nutch/branches/mapred/bin/nutch Wed Nov 23 04:09:07 2005
@@ -149,7 +149,7 @@
elif [ "$COMMAND" = "datanode" ] ; then
CLASS='org.apache.nutch.ndfs.DataNode'
elif [ "$COMMAND" = "ndfs" ] ; then
- CLASS=org.apache.nutch.fs.TestClient
+ CLASS=org.apache.nutch.fs.NDFSShell
elif [ "$COMMAND" = "jobtracker" ] ; then
CLASS=org.apache.nutch.mapred.JobTracker
elif [ "$COMMAND" = "tasktracker" ] ; then
Copied: lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NDFSShell.java (from r348401, lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/TestClient.java)
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NDFSShell.java?p2=lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NDFSShell.java&p1=lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/TestClient.java&r1=348401&r2=348417&rev=348417&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/TestClient.java (original)
+++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NDFSShell.java Wed Nov 23 04:09:07 2005
@@ -29,12 +29,12 @@
*
* @author Mike Cafarella
**************************************************/
-public class TestClient {
+public class NDFSShell {
NutchFileSystem nfs;
/**
*/
- public TestClient(NutchFileSystem nfs) {
+ public NDFSShell(NutchFileSystem nfs) {
this.nfs = nfs;
}
@@ -216,7 +216,7 @@
*/
public static void main(String argv[]) throws IOException {
if (argv.length < 1) {
- System.out.println("Usage: java NDFSClient [-local | -ndfs <namenode:port>]" +
+ System.out.println("Usage: java NDFSShell [-local | -ndfs <namenode:port>]" +
" [-ls <path>] [-du <path>] [-mv <src> <dst>] [-cp <src> <dst>] [-rm <src>]" +
" [-put <localsrc> <dst>] [-copyFromLocal <localsrc> <dst>] [-moveFromLocal <localsrc> <dst>]" +
" [-get <src> <localdst>] [-copyToLocal <src> <localdst>] [-moveToLocal <src> <localdst>]" +
@@ -227,7 +227,7 @@
int i = 0;
NutchFileSystem nfs = NutchFileSystem.parseArgs(argv, i);
try {
- TestClient tc = new TestClient(nfs);
+ NDFSShell tc = new NDFSShell(nfs);
String cmd = argv[i++];
if ("-put".equals(cmd) || "-copyFromLocal".equals(cmd)) {