You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org> on 2011/01/04 02:18:45 UTC

[jira] Created: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

"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.


Re: [jira] Commented: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by Ted Dunning <te...@gmail.com>.
Naughty Jeff.

On Fri, Jan 28, 2011 at 10:32 PM, Dmitriy Lyubimov (JIRA)
<ji...@apache.org>wrote:

> Jeff seems to have already committed the equivalent of that change without
> specifying an issue:
>

[jira] Reopened: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Lyubimov reopened MAHOUT-574:
-------------------------------------


I guess it needs to stay opened to be considered?..

> "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
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Resolved: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Sean Owen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved MAHOUT-574.
------------------------------

    Resolution: Fixed

You opened the issue, then resolved your own issue, though it wasn't fixed? MAHOUT-587 resolves it in any event. But you're reopening this one... because it's fixed?

> "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
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Commented: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986128#action_12986128 ] 

Dmitriy Lyubimov commented on MAHOUT-574:
-----------------------------------------

mahout 587 is about seq2sparse, if i read it correctly. This one is about seqdirectory per our earlier discussion with Jeff on the mailing list. 

> "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
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Commented: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988402#action_12988402 ] 

Dmitriy Lyubimov commented on MAHOUT-574:
-----------------------------------------

Jeff seems to have already committed the equivalent of that change without specifying an issue: 

{code}
commit 6eea6d91e47dcb128f420bba1f7eea26fef58732
Author: Jeff Eastman <je...@apache.org>
Date:   Tue Jan 4 00:02:06 2011 +0000

    :Moved SequenceFilesFromDirectory under AbstractJob so that -D arguments wor

    git-svn-id: https://svn.apache.org/repos/asf/mahout/trunk@1054835 13f79535-4
{code}

so i assume that's done

> "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
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Reopened: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Sean Owen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen reopened MAHOUT-574:
------------------------------

      Assignee: Sean Owen

OK understood. Can you re-create the patch? It's out of sync with head at the moment. 

> "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
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Resolved: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Lyubimov resolved MAHOUT-574.
-------------------------------------

    Resolution: Fixed

seems working.

> "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
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Issue Comment Edited: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977063#action_12977063 ] 

Dmitriy Lyubimov edited comment on MAHOUT-574 at 1/3/11 8:53 PM:
-----------------------------------------------------------------

seems working.

PS. git patch (use -p1)

      was (Author: dlyubimov2):
    seems working.
  
> "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
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Resolved: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Lyubimov resolved MAHOUT-574.
-------------------------------------

    Resolution: Fixed

> "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
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Updated: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Lyubimov updated MAHOUT-574:
------------------------------------

    Attachment: MAHOUT-574.patch

Resolved by converting  into a Tool.

> "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
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-574.patch
>
>
> 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.


[jira] Updated: (MAHOUT-574) "seqdirectory" command fails to notice -Ddefault.fs.name

Posted by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Lyubimov updated MAHOUT-574:
------------------------------------

    Priority: Minor  (was: Major)

> "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
>            Priority: Minor
>             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.