"seqdirectory" command fails to notice -Ddefault.fs.name
--------------------------------------------------------

                 Key: MAHOUT-574
                 URL: https://issues.apache.org/jira/browse/MAHOUT-574
             Project: Mahout
          Issue Type: Improvement
          Components: Utils
    Affects Versions: 0.4
            Reporter: Dmitriy Lyubimov
             Fix For: 0.5


Have problem targeting Filesystem used with utility. If hadoop setup is 
present, there's no way to force the utility to process using local filesystem 
(or, i guess, vice versa): 

{code}
bin/mahout seqdirectory -Dmapred.job.tracker=local -Dfs.default.name=file:/// 
-c UTF-8 -i /home/dmitriy/projects/testcollections/reuters-extracted/ -o 
/home/dmitriy/projects/testcollections/reuters-seqfiles
Running on hadoop, using HADOOP_HOME=/home/dmitriy/tools/hadoop
No HADOOP_CONF_DIR set, using /home/dmitriy/tools/hadoop/conf
11/01/03 15:16:13 ERROR text.SequenceFilesFromDirectory: Exception
org.apache.commons.cli2.OptionException: Unexpected -Dfs.default.name=file:/// 
while processing Options

        at org.apache.commons.cli2.commandline.Parser.parse(Parser.java:99)
        at 
org.apache.mahout.text.SequenceFilesFromDirectory.main(SequenceFilesFromDirectory.java:201)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
        at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
        at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:183)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
{code}
The reason seems to be in the fact that this job is not a Tool and hence does 
not recognize any hadoop params. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to